Class Metric
Details of a metric which is part of this metric extension
Inherited Members
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class Metric
Properties
ComputeExpression
Declaration
[JsonProperty(PropertyName = "computeExpression")]
public string ComputeExpression { get; set; }
Property Value
Type | Description |
---|---|
string | Compute Expression to calculate the value of this metric |
DataType
Declaration
[Required(ErrorMessage = "DataType is required.")]
[JsonProperty(PropertyName = "dataType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Metric.DataTypeEnum? DataType { get; set; }
Property Value
Type | Description |
---|---|
Metric.DataTypeEnum? | Data type of value of this metric |
Remarks
Required
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | Display name of the metric. |
IsDimension
Declaration
[JsonProperty(PropertyName = "isDimension")]
public bool? IsDimension { get; set; }
Property Value
Type | Description |
---|---|
bool? | Current metric need to be included as dimension or not |
IsHidden
Declaration
[JsonProperty(PropertyName = "isHidden")]
public bool? IsHidden { get; set; }
Property Value
Type | Description |
---|---|
bool? | Flag to marks whether a metric has to be uploaded or not. When isHidden = false -> Metric is uploaded, isHidden = true -> Metric is NOT uploaded |
MetricCategory
Declaration
[JsonProperty(PropertyName = "metricCategory")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Metric.MetricCategoryEnum? MetricCategory { get; set; }
Property Value
Type | Description |
---|---|
Metric.MetricCategoryEnum? | Metric category |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name of the metric. |
Remarks
Required
Unit
Declaration
[JsonProperty(PropertyName = "unit")]
public string Unit { get; set; }
Property Value
Type | Description |
---|---|
string | Unit of metric value |