Class HaMetricDefinition
The metric definition for HA and backup metrics.
Inherited Members
Namespace: Oci.DatabasemanagementService.Models
Assembly: OCI.DotNetSDK.Databasemanagement.dll
Syntax
public class HaMetricDefinition
Properties
Dimensions
Declaration
[Required(ErrorMessage = "Dimensions is required.")]
[JsonProperty(PropertyName = "dimensions")]
public Dictionary<string, string> Dimensions { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | 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"} |
Remarks
Required
Metadata
Declaration
[Required(ErrorMessage = "Metadata is required.")]
[JsonProperty(PropertyName = "metadata")]
public Dictionary<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | The metadata qualifiers provided in the definition of the returned metric. Available metadata vary by metric. |
Remarks
Required
MetricName
Declaration
[Required(ErrorMessage = "MetricName is required.")]
[JsonProperty(PropertyName = "metricName")]
public string MetricName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the metric. |
Remarks
Required
Timestamp
Declaration
[Required(ErrorMessage = "Timestamp is required.")]
[JsonProperty(PropertyName = "timestamp")]
public DateTime? Timestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The data point date and time in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'". |
Remarks
Required
Value
Declaration
[Required(ErrorMessage = "Value is required.")]
[JsonProperty(PropertyName = "value")]
public double Value { get; set; }
Property Value
Type | Description |
---|---|
double | The target value of the metric. |
Remarks
Required