compute
v1
|
#include <autoscaling_policy_custom_metric_utilization.h>
Public Member Functions | |
AutoscalingPolicyCustomMetricUtilization (const Json::Value &storage) | |
AutoscalingPolicyCustomMetricUtilization (Json::Value *storage) | |
virtual | ~AutoscalingPolicyCustomMetricUtilization () |
const StringPiece | GetTypeName () const |
bool | has_metric () const |
void | clear_metric () |
const StringPiece | get_metric () const |
void | set_metric (const StringPiece &value) |
bool | has_utilization_target () const |
void | clear_utilization_target () |
double | get_utilization_target () const |
void | set_utilization_target (double value) |
bool | has_utilization_target_type () const |
void | clear_utilization_target_type () |
const StringPiece | get_utilization_target_type () const |
void | set_utilization_target_type (const StringPiece &value) |
Static Public Member Functions | |
static AutoscalingPolicyCustomMetricUtilization * | New () |
Custom utilization metric policy.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'metric
' attribute.
|
inline |
Clears the 'utilizationTarget
' attribute.
|
inline |
Clears the 'utilizationTargetType
' attribute.
|
inline |
Get the value of the 'metric
' attribute.
|
inline |
Get the value of the 'utilizationTarget
' attribute.
|
inline |
Get the value of the 'utilizationTargetType
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'metric
' attribute was set.
metric
' attribute was set.
|
inline |
Determine if the 'utilizationTarget
' attribute was set.
utilizationTarget
' attribute was set.
|
inline |
Determine if the 'utilizationTargetType
' attribute was set.
utilizationTargetType
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'metric
' attribute.
The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.
The metric must have a value type of INT64 or DOUBLE.
[in] | value | The new value. |
|
inline |
Change the 'utilizationTarget
' attribute.
The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.
For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
[in] | value | The new value. |
|
inline |
Change the 'utilizationTargetType
' attribute.
Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
[in] | value | The new value. |