-
Notifications
You must be signed in to change notification settings - Fork 80
/
metric_data_details.go
61 lines (49 loc) · 3.54 KB
/
metric_data_details.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Monitoring API
//
// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm).
//
package monitoring
import (
"github.com/oracle/oci-go-sdk/v43/common"
)
// MetricDataDetails A metric object containing raw metric data points to be posted to the Monitoring service.
type MetricDataDetails struct {
// The source service or application emitting the metric.
// A valid namespace value starts with an alphabetical character and includes only alphanumeric characters and underscores. The "oci_" prefix is reserved.
// Avoid entering confidential information.
// Example: `my_namespace`
Namespace *string `mandatory:"true" json:"namespace"`
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to use for metrics.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The name of the metric.
// A valid name value starts with an alphabetical character and includes only alphanumeric characters, dots, underscores, hyphens, and dollar signs. The `oci_` prefix is reserved.
// Avoid entering confidential information.
// Example: `my_app.success_rate`
Name *string `mandatory:"true" json:"name"`
// Qualifiers provided in a metric definition. Available dimensions vary by metric namespace.
// Each dimension takes the form of a key-value pair.
// A valid dimension key includes only printable ASCII, excluding periods (.) and spaces. The character limit for a dimension key is 256.
// A valid dimension value includes only Unicode characters. The character limit for a dimension value is 256.
// Empty strings are not allowed for keys or values. Avoid entering confidential information.
// Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"`
Dimensions map[string]string `mandatory:"true" json:"dimensions"`
// A list of metric values with timestamps. At least one data point is required per call.
Datapoints []Datapoint `mandatory:"true" json:"datapoints"`
// Resource group to assign to the metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric.
// A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
// Avoid entering confidential information.
// Example: `frontend-fleet`
ResourceGroup *string `mandatory:"false" json:"resourceGroup"`
// Properties describing metrics. These are not part of the unique fields identifying the metric.
// Each metadata item takes the form of a key-value pair. The character limit for a metadata key is 256. The character limit for a metadata value is 256.
// Example: `"unit": "bytes"`
Metadata map[string]string `mandatory:"false" json:"metadata"`
}
func (m MetricDataDetails) String() string {
return common.PointerString(m)
}