HaMetricDefinition¶
- class oci.database_management.models.HaMetricDefinition(**kwargs)¶
Bases:
objectThe metric definition for HA and backup metrics.
Methods:
__init__(**kwargs)Initializes a new HaMetricDefinition object with values from keyword arguments.
Attributes:
[Required] Gets the dimensions of this HaMetricDefinition.
[Required] Gets the metadata of this HaMetricDefinition.
[Required] Gets the metric_name of this HaMetricDefinition.
[Required] Gets the timestamp of this HaMetricDefinition.
[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.
- property 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)
- property 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)
- property 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
- property 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
- property value¶
[Required] Gets the value of this HaMetricDefinition. The target value of the metric.
- Returns
The value of this HaMetricDefinition.
- Return type
float