EvaluatedMetric

class oci.optimizer.models.EvaluatedMetric(**kwargs)

Bases: object

One of the metrics that will be evaluated by profiles using this profile level.

Methods:

__init__(**kwargs)

Initializes a new EvaluatedMetric object with values from keyword arguments.

Attributes:

name

[Required] Gets the name of this EvaluatedMetric.

statistic

[Required] Gets the statistic of this EvaluatedMetric.

target

Gets the target of this EvaluatedMetric.

threshold

[Required] Gets the threshold of this EvaluatedMetric.

__init__(**kwargs)

Initializes a new EvaluatedMetric object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • name (str) – The value to assign to the name property of this EvaluatedMetric.

  • statistic (str) – The value to assign to the statistic property of this EvaluatedMetric.

  • threshold (float) – The value to assign to the threshold property of this EvaluatedMetric.

  • target (float) – The value to assign to the target property of this EvaluatedMetric.

property name

[Required] Gets the name of this EvaluatedMetric. The name of the metric (e.g., CpuUtilization).

Returns

The name of this EvaluatedMetric.

Return type

str

property statistic

[Required] Gets the statistic of this EvaluatedMetric. The name of the statistic (e.g., p95).

Returns

The statistic of this EvaluatedMetric.

Return type

str

property target

Gets the target of this EvaluatedMetric. Optional. The metric value that the recommendation will target.

Returns

The target of this EvaluatedMetric.

Return type

float

property threshold

[Required] Gets the threshold of this EvaluatedMetric. The threshold that must be crossed for the recommendation to appear.

Returns

The threshold of this EvaluatedMetric.

Return type

float