HaMetricDefinition¶
-
class
oci.database_management.models.
HaMetricDefinition
(**kwargs)¶ Bases:
object
The metric definition for HA and backup metrics.
Methods
__init__
(**kwargs)Initializes a new HaMetricDefinition object with values from keyword arguments. Attributes
dimensions
[Required] Gets the dimensions of this HaMetricDefinition. metadata
[Required] Gets the metadata of this HaMetricDefinition. metric_name
[Required] Gets the metric_name of this HaMetricDefinition. timestamp
[Required] Gets the timestamp of this HaMetricDefinition. value
[Required] Gets the value of this HaMetricDefinition. -
__init__
(**kwargs)¶ Initializes a new HaMetricDefinition object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - metric_name (str) – The value to assign to the metric_name property of this HaMetricDefinition.
- metadata (dict(str, str)) – The value to assign to the metadata property of this HaMetricDefinition.
- dimensions (dict(str, str)) – The value to assign to the dimensions property of this HaMetricDefinition.
- timestamp (datetime) – The value to assign to the timestamp property of this HaMetricDefinition.
- value (float) – The value to assign to the value property of this HaMetricDefinition.
-
dimensions
¶ [Required] Gets the dimensions of this HaMetricDefinition. The dimension qualifiers provided in the definition of the returned metric. Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. Example: {“resourceId”: “ocid1.instance.region1.phx.exampleuniqueID”}
Returns: The dimensions of this HaMetricDefinition. Return type: dict(str, str)
-
metadata
¶ [Required] Gets the metadata of this HaMetricDefinition. The metadata qualifiers provided in the definition of the returned metric. Available metadata vary by metric.
Returns: The metadata of this HaMetricDefinition. Return type: dict(str, str)
-
metric_name
¶ [Required] Gets the metric_name of this HaMetricDefinition. The name of the metric.
Returns: The metric_name of this HaMetricDefinition. Return type: str
-
timestamp
¶ [Required] Gets the timestamp of this HaMetricDefinition. The data point date and time in UTC in ISO-8601 format, which is “yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.
Returns: The timestamp of this HaMetricDefinition. Return type: datetime
-
value
¶ [Required] Gets the value of this HaMetricDefinition. The target value of the metric.
Returns: The value of this HaMetricDefinition. Return type: float
-