Show / Hide Table of Contents

Class CustomMetric

Definition of the Custom Metric.

Inheritance
object
CustomMetric
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 oracle_apm_custom if not specified. If specified, the necessary OCI policies should be set to allow APM to write to that namespace.

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'.

In this article
Back to top