-
Notifications
You must be signed in to change notification settings - Fork 48
/
model_dimension_key_value_model.go
32 lines (30 loc) · 3.28 KB
/
model_dimension_key_value_model.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
// The request and response body for the GET or PUT methods of the `/dimension/{key}/{value}` endpoint.
type DimensionKeyValueModel struct {
// A dimension name (key) for an existing dimension: * For a GET response, this value is the dimension name retrieved by the request. * For a PUT request, this value is the dimension you want to update. The PUT response echoes the request body. The section [Dimension Criteria](https://developers.signalfx.com/metrics/metrics_metadata_overview.html#_dimension_criteria) lists the requirements for dimensions.
Key string `json:"key,omitempty"`
// A dimension value for an existing dimension.
Value map[string]interface{} `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: <br> * For a GET response, this value contains the existing custom properties. * For a PUT *request*, use this property to update custom properties for the dimension. The PUT *response* returns all of the custom properties for the specified dimension. The section [Custom Properties Criteria](https://developers.signalfx.com/metrics/metrics_metadata_overview.html#_custom_properties_criteria) lists the requirements for custom properties.
CustomProperties map[string]string `json:"customProperties,omitempty"`
// The tags for the dimension: * For a GET response, this value contains the tags. * For a PUT request, use this property to update tags for the dimension. The PUT response returns all of the tags for the specified dimension. The section [Tags Criteria](https://developers.signalfx.com/metrics/metrics_metadata_overview.html#_tags_criteria) lists the requirements for tags.
Tags []string `json:"tags,omitempty"`
// A SignalFx user ID:<br> * For a GET request: The user that created the dimension. * For a PUT request, the ID of the user that's making the request; the response echoes the request value.
Creator string `json:"creator,omitempty"`
// Creation timestamp, in Unix time UTC-relative:<br> * For a GET request: time when the dimension was first created * For a PUT request: timestamp to set as the creation time; the response echoes the request value.
Created int64 `json:"created,omitempty"`
// A SignalFx user ID:<br> * For a GET request: The user that last updated the dimension. * For a PUT request, the ID of the user that's making the request; the response echoes the request value.
LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`
// Last updated timestamp, in Unix time UTC-relative:<br> * For a GET request: time when the dimension was updated * For a PUT request: timestamp to set as the update time; the response echoes the request value.
LastUpdated int64 `json:"lastUpdated,omitempty"`
}