Class CustomMetric
Definition of the Custom Metric.
Inherited Members
Namespace: Oci.ApmtracesService.Models
Assembly: OCI.DotNetSDK.Apmtraces.dll
Syntax
public class CustomMetric
Properties
Compartment
Declaration
[JsonProperty(PropertyName = "compartment")]
public string Compartment { get; set; }
Property Value
Type | Description |
---|---|
string | Compartment of the Monitoring Service. It defaults to the APM domain's compartment if not specified. If specified, the necessary OCI policies should be set to allow APM to write to that compartment. |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | Description of the Custom Metric. |
IsAnomalyDetectionEnabled
Declaration
[JsonProperty(PropertyName = "isAnomalyDetectionEnabled")]
public bool? IsAnomalyDetectionEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | Indicates whether anomaly Detection should be performed on the generated metric. |
IsMetricPublished
Declaration
[JsonProperty(PropertyName = "isMetricPublished")]
public bool? IsMetricPublished { get; set; }
Property Value
Type | Description |
---|---|
bool? | Used in conjunction with the dry run header. When the dry run header is set and the isPublishMetric flag is set to true, the scheduled query is not created, but validations happen to check if the right OCI policies have been set to write to the specified namespace/compartment. |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name of the Custom Metric. |
Remarks
Required
Namespace
Declaration
[JsonProperty(PropertyName = "namespace")]
public string Namespace { get; set; }
Property Value
Type | Description |
---|---|
string | Namespace in the Custom Metric. It defaults to |
ResourceGroup
Declaration
[JsonProperty(PropertyName = "resourceGroup")]
public string ResourceGroup { get; set; }
Property Value
Type | Description |
---|---|
string | Resource Group of the Custom Metric. |
Unit
Declaration
[JsonProperty(PropertyName = "unit")]
public string Unit { get; set; }
Property Value
Type | Description |
---|---|
string | Unit in which the metric value is reported. For example 'ms'. |