-
Notifications
You must be signed in to change notification settings - Fork 51
/
model_metric.go
34 lines (32 loc) · 3.29 KB
/
model_metric.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
/*
* Metrics Metadata API
*
* API for creating, retrieving, updating, and deleting metric names and MTS metadata.<br> **NOTE:*() Although you can't set custom properties or tags for a metric, you *can* retrieve them for metrics and metric time series (**MTS**).
*
* API version: 3.2.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package metrics_metadata
// Metadata for an individual result of the metrics metadata query
type Metric struct {
// Name of the metric that has the retrieved metadata
Name string `json:"name,omitempty"`
// Description of the metric that has the retrieved metadata. You can use up to 1024 UTF-8 characters.
Description string `json:"description,omitempty"`
// Metric type of the metric that has the retrieved metadata. The possible values are \"GAUGE\", \"COUNTER\", and \"CUMULATIVE_COUNTER\".
Type string `json:"type,omitempty"`
// Dimension metadata for the result object, in the form of a JSON object (dictionary). Each property is a dimension name and dimension value. Dimension names and values have these requirements: <br> **Name:** * UTF-8 string, maximum length of 128 characters (512 bytes) * Must start with an uppercase or lowercase letter. The rest of the name can contain letters, numbers, underscores (`_`) and hyphens (`-`). * Must not start with the underscore character (`_`) * Must not start with the prefix `sf_`, except for dimensions defined by SignalFx such as `sf_hires` * Must not start with the prefix `aws_` <br> **Value:** * String: Maximum length 256 UTF-8 characters (1024 bytes) * Integer or float: Maximum length 8192 bits (1024 bytes)
Dimensions map[string]interface{} `json:"dimensions,omitempty"`
// Custom property metadata for the result object, in the form of a JSON object (dictionary). Each property is a custom property name and value. Custom property names and values have these requirements <br> **Name:** * UTF-8 string, maximum length of 128 characters (512 bytes) * Must start with an uppercase or lowercase letter. The rest of the name can contain letters, numbers, underscores (`_`) and hyphens (`-`). * Must not start with the underscore character (`_`) <br> **Value:** * String: Maximum length 256 UTF-8 characters (1024 bytes) * Integer or float: Maximum length 8192 bits (1024 bytes)
CustomProperties map[string]string `json:"customProperties,omitempty"`
// Tag metadata in the response, in the form of a JSON array (a list) with one element for each tag. Each tag is a UTF-8 string, starting with an uppercase or lowercase alphabetic character. The maximum length is expressed in characters; if a string consists solely of single-byte UTF-8 entities, 1024 characters are available. <br>
Tags []string `json:"tags,omitempty"`
// The time that the metric was created, in Unix time UTC-relative
Created int64 `json:"created,omitempty"`
// SignalFx ID of the user who created the metric. If the value is \"AAAAAAAAAAA\", SignalFx created the metric.
Creator string `json:"creator,omitempty"`
// The time that the metric was last updated, in Unix time UTC-relative
LastUpdated int64 `json:"lastUpdated,omitempty"`
// SignalFx ID of the user who last updated the metric. If the value is \"AAAAAAAAAAA\", SignalFx last updated the metric.
LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`
}