com.github.xds.data.orca.v3.OrcaLoadReportOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xds/data/orca/v3/orca_load_report.proto
package com.github.xds.data.orca.v3;
public interface OrcaLoadReportOrBuilder extends
// @@protoc_insertion_point(interface_extends:xds.data.orca.v3.OrcaLoadReport)
com.google.protobuf.MessageOrBuilder {
/**
*
* CPU utilization expressed as a fraction of available CPU resources. This
* should be derived from the latest sample or measurement. The value may be
* larger than 1.0 when the usage exceeds the reporter dependent notion of
* soft limits.
*
*
* double cpu_utilization = 1 [(.validate.rules) = { ... }
* @return The cpuUtilization.
*/
double getCpuUtilization();
/**
*
* Memory utilization expressed as a fraction of available memory
* resources. This should be derived from the latest sample or measurement.
*
*
* double mem_utilization = 2 [(.validate.rules) = { ... }
* @return The memUtilization.
*/
double getMemUtilization();
/**
*
* Total RPS being served by an endpoint. This should cover all services that an endpoint is
* responsible for.
* Deprecated -- use ``rps_fractional`` field instead.
*
*
* uint64 rps = 3 [deprecated = true];
* @deprecated xds.data.orca.v3.OrcaLoadReport.rps is deprecated.
* See xds/data/orca/v3/orca_load_report.proto;l=28
* @return The rps.
*/
@java.lang.Deprecated long getRps();
/**
*
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*
*
* map<string, double> request_cost = 4;
*/
int getRequestCostCount();
/**
*
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*
*
* map<string, double> request_cost = 4;
*/
boolean containsRequestCost(
java.lang.String key);
/**
* Use {@link #getRequestCostMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRequestCost();
/**
*
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*
*
* map<string, double> request_cost = 4;
*/
java.util.Map
getRequestCostMap();
/**
*
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*
*
* map<string, double> request_cost = 4;
*/
double getRequestCostOrDefault(
java.lang.String key,
double defaultValue);
/**
*
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*
*
* map<string, double> request_cost = 4;
*/
double getRequestCostOrThrow(
java.lang.String key);
/**
*
* Resource utilization values. Each value is expressed as a fraction of total resources
* available, derived from the latest sample or measurement.
*
*
* map<string, double> utilization = 5 [(.validate.rules) = { ... }
*/
int getUtilizationCount();
/**
*
* Resource utilization values. Each value is expressed as a fraction of total resources
* available, derived from the latest sample or measurement.
*
*
* map<string, double> utilization = 5 [(.validate.rules) = { ... }
*/
boolean containsUtilization(
java.lang.String key);
/**
* Use {@link #getUtilizationMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getUtilization();
/**
*
* Resource utilization values. Each value is expressed as a fraction of total resources
* available, derived from the latest sample or measurement.
*
*
* map<string, double> utilization = 5 [(.validate.rules) = { ... }
*/
java.util.Map
getUtilizationMap();
/**
*
* Resource utilization values. Each value is expressed as a fraction of total resources
* available, derived from the latest sample or measurement.
*
*
* map<string, double> utilization = 5 [(.validate.rules) = { ... }
*/
double getUtilizationOrDefault(
java.lang.String key,
double defaultValue);
/**
*
* Resource utilization values. Each value is expressed as a fraction of total resources
* available, derived from the latest sample or measurement.
*
*
* map<string, double> utilization = 5 [(.validate.rules) = { ... }
*/
double getUtilizationOrThrow(
java.lang.String key);
/**
*
* Total RPS being served by an endpoint. This should cover all services that an endpoint is
* responsible for.
*
*
* double rps_fractional = 6 [(.validate.rules) = { ... }
* @return The rpsFractional.
*/
double getRpsFractional();
/**
*
* Total EPS (errors/second) being served by an endpoint. This should cover
* all services that an endpoint is responsible for.
*
*
* double eps = 7 [(.validate.rules) = { ... }
* @return The eps.
*/
double getEps();
/**
*
* Application specific opaque metrics.
*
*
* map<string, double> named_metrics = 8;
*/
int getNamedMetricsCount();
/**
*
* Application specific opaque metrics.
*
*
* map<string, double> named_metrics = 8;
*/
boolean containsNamedMetrics(
java.lang.String key);
/**
* Use {@link #getNamedMetricsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getNamedMetrics();
/**
*
* Application specific opaque metrics.
*
*
* map<string, double> named_metrics = 8;
*/
java.util.Map
getNamedMetricsMap();
/**
*
* Application specific opaque metrics.
*
*
* map<string, double> named_metrics = 8;
*/
double getNamedMetricsOrDefault(
java.lang.String key,
double defaultValue);
/**
*
* Application specific opaque metrics.
*
*
* map<string, double> named_metrics = 8;
*/
double getNamedMetricsOrThrow(
java.lang.String key);
/**
*
* Application specific utilization expressed as a fraction of available
* resources. For example, an application may report the max of CPU and memory
* utilization for better load balancing if it is both CPU and memory bound.
* This should be derived from the latest sample or measurement.
* The value may be larger than 1.0 when the usage exceeds the reporter
* dependent notion of soft limits.
*
*
* double application_utilization = 9 [(.validate.rules) = { ... }
* @return The applicationUtilization.
*/
double getApplicationUtilization();
}