Interface BackendCustomMetricOrBuilder (1.70.0)

public interface BackendCustomMetricOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDryRun()

public abstract boolean getDryRun()

If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.

optional bool dry_run = 323854839;

Returns
Type Description
boolean

The dryRun.

getMaxUtilization()

public abstract float getMaxUtilization()

Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0].

optional float max_utilization = 148192199;

Returns
Type Description
float

The maxUtilization.

getName()

public abstract String getName()

Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

hasDryRun()

public abstract boolean hasDryRun()

If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.

optional bool dry_run = 323854839;

Returns
Type Description
boolean

Whether the dryRun field is set.

hasMaxUtilization()

public abstract boolean hasMaxUtilization()

Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0].

optional float max_utilization = 148192199;

Returns
Type Description
boolean

Whether the maxUtilization field is set.

hasName()

public abstract boolean hasName()

Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.