-
Notifications
You must be signed in to change notification settings - Fork 48
/
model_dimension.go
32 lines (30 loc) · 2.93 KB
/
model_dimension.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
/*
* 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
// A JSON object (dictionary) that contains the metadata for a single dimension that matched the query
type Dimension struct {
// The dimension name (key) for the dimension. Dimension names have these requirements: <br> * 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_`
Key string `json:"key,omitempty"`
// The dimension value for the dimension. Dimension values have these requirements: <br> * String: Maximum length 256 UTF-8 characters (1024 bytes) * Integer or float: Maximum length 8192 bits (1024 bytes)
Value string `json:"value,omitempty"`
// The description for the dimension. You can use up to 1024 UTF-8 characters.
Description string `json:"description,omitempty"`
// The custom properties for the dimension, in the form of a JSON object (dictionary) containing custom property key-value pairs. Custom property names and values have these requirements: <br> **Name:** <br> * 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:** <br> * 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"`
// The tags for the dimension, in the form of an array that contains one string for each tag. <br> 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> **NOTE:** You can't have more than 50 tags per MTS
Tags []string `json:"tags,omitempty"`
// The SignalFx user ID of the user that created the dimension.
Creator string `json:"creator,omitempty"`
// Dimension creation timestamp, in Unix time UTC-relative
Created int64 `json:"created,omitempty"`
// The SignalFx user ID of the user that last updated the dimension.
LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`
// Last updated timestamp, in Unix time UTC-relative
LastUpdated int64 `json:"lastUpdated,omitempty"`
}