Metric

class oci.apm_config.models.Metric(**kwargs)

Bases: object

A metric is a quantitative measurement of an entity.

Methods

__init__(**kwargs) Initializes a new Metric object with values from keyword arguments.

Attributes

description Gets the description of this Metric.
name [Required] Gets the name of this Metric.
unit Gets the unit of this Metric.
value_source Gets the value_source of this Metric.
__init__(**kwargs)

Initializes a new Metric 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 Metric.
  • value_source (str) – The value to assign to the value_source property of this Metric.
  • unit (str) – The value to assign to the unit property of this Metric.
  • description (str) – The value to assign to the description property of this Metric.
description

Gets the description of this Metric. A description of the metric.

Returns:The description of this Metric.
Return type:str
name

[Required] Gets the name of this Metric. The name of the metric. This must be a known metric name.

Returns:The name of this Metric.
Return type:str
unit

Gets the unit of this Metric. The unit of the metric.

Returns:The unit of this Metric.
Return type:str
value_source

Gets the value_source of this Metric. This must not be set.

Returns:The value_source of this Metric.
Return type:str