1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4// Monitoring API 5// 6// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. 7// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. 8// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). 9// 10 11package monitoring 12 13import ( 14 "github.com/oracle/oci-go-sdk/common" 15) 16 17// Metric The properties that define a metric. 18// For information about metrics, see Metrics Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#MetricsOverview). 19type Metric struct { 20 21 // The name of the metric. 22 // Example: `CpuUtilization` 23 Name *string `mandatory:"false" json:"name"` 24 25 // The source service or application emitting the metric. 26 // Example: `oci_computeagent` 27 Namespace *string `mandatory:"false" json:"namespace"` 28 29 // Resource group provided with the posted metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric. 30 // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). 31 // Avoid entering confidential information. 32 // Example: `frontend-fleet` 33 ResourceGroup *string `mandatory:"false" json:"resourceGroup"` 34 35 // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing 36 // the resources monitored by the metric. 37 CompartmentId *string `mandatory:"false" json:"compartmentId"` 38 39 // Qualifiers provided in a metric definition. Available dimensions vary by metric namespace. 40 // Each dimension takes the form of a key-value pair. 41 // Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"` 42 Dimensions map[string]string `mandatory:"false" json:"dimensions"` 43} 44 45func (m Metric) String() string { 46 return common.PointerString(m) 47} 48