Documentation ¶
Index ¶
- Variables
- type BaseDimension
- func (me *BaseDimension) GetType() FilterType
- func (me *BaseDimension) MarshalHCL(properties hcl.Properties) error
- func (me *BaseDimension) MarshalJSON() ([]byte, error)
- func (me *BaseDimension) Schema() map[string]*schema.Schema
- func (me *BaseDimension) UnmarshalHCL(decoder hcl.Decoder) error
- func (me *BaseDimension) UnmarshalJSON(data []byte) error
- type Dimension
- type Dimensions
- type Entity
- func (me *Entity) GetType() FilterType
- func (me *Entity) MarshalHCL(properties hcl.Properties) error
- func (me *Entity) MarshalJSON() ([]byte, error)
- func (me *Entity) Schema() map[string]*schema.Schema
- func (me *Entity) UnmarshalHCL(decoder hcl.Decoder) error
- func (me *Entity) UnmarshalJSON(data []byte) error
- type Filter
- type FilterType
- type Operator
- type String
- func (me *String) GetType() FilterType
- func (me *String) MarshalHCL(properties hcl.Properties) error
- func (me *String) MarshalJSON() ([]byte, error)
- func (me *String) Schema() map[string]*schema.Schema
- func (me *String) UnmarshalHCL(decoder hcl.Decoder) error
- func (me *String) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var FilterTypes = struct { Entity FilterType String FilterType }{ "ENTITY", "STRING", }
FilterTypes offers the known enum values
var Operators = struct { Equals Operator }{ "EQUALS", }
Operators offers the known enum values
Functions ¶
This section is empty.
Types ¶
type BaseDimension ¶
type BaseDimension struct { FilterType FilterType `json:"filterType"` // Defines the actual set of fields depending on the value. See one of the following objects: * `ENTITY` -> MetricEventEntityDimensions * `STRING` -> MetricEventStringDimensions Key *string `json:"key,omitempty"` // The dimensions key on the metric. Name *string `json:"name,omitempty"` // No documentation available Index *int `json:"index,omitempty"` // No documentation available Unknowns map[string]json.RawMessage `json:"-"` }
BaseDimension A single filter for the metrics dimensions. This is the base version of the filter, depending on the type, the actual JSON may contain additional fields.
func (*BaseDimension) GetType ¶
func (me *BaseDimension) GetType() FilterType
func (*BaseDimension) MarshalHCL ¶
func (me *BaseDimension) MarshalHCL(properties hcl.Properties) error
func (*BaseDimension) MarshalJSON ¶
func (me *BaseDimension) MarshalJSON() ([]byte, error)
func (*BaseDimension) UnmarshalHCL ¶
func (me *BaseDimension) UnmarshalHCL(decoder hcl.Decoder) error
func (*BaseDimension) UnmarshalJSON ¶
func (me *BaseDimension) UnmarshalJSON(data []byte) error
type Dimension ¶
type Dimension interface {
GetType() FilterType
}
MetricEventDimension A single filter for the metrics dimensions. This is the base version of the filter, depending on the type, the actual JSON may contain additional fields.
type Dimensions ¶
type Dimensions []Dimension
func (Dimensions) MarshalHCL ¶
func (me Dimensions) MarshalHCL(properties hcl.Properties) error
func (*Dimensions) UnmarshalHCL ¶
func (me *Dimensions) UnmarshalHCL(decoder hcl.Decoder) error
func (*Dimensions) UnmarshalJSON ¶
func (me *Dimensions) UnmarshalJSON(data []byte) error
type Entity ¶
type Entity struct { BaseDimension NameFilter *Filter `json:"nameFilter"` // A filter for a string value based on the given operator. }
Entity A filter for the metrics entity dimensions.
func (*Entity) GetType ¶
func (me *Entity) GetType() FilterType
func (*Entity) MarshalHCL ¶
func (me *Entity) MarshalHCL(properties hcl.Properties) error
func (*Entity) MarshalJSON ¶
func (*Entity) UnmarshalJSON ¶
type Filter ¶
type Filter struct { Operator Operator `json:"operator"` // The operator to match on. Value string `json:"value"` // The value to match on. }
Filter A filter for a string value based on the given operator.
func (*Filter) MarshalHCL ¶
func (me *Filter) MarshalHCL(properties hcl.Properties) error
type FilterType ¶
type FilterType string
DimensionFilterType Defines the actual set of fields depending on the value. See one of the following objects: * `ENTITY` -> MetricEventEntityDimensions * `STRING` -> MetricEventStringDimensions
type String ¶
type String struct { BaseDimension TextFilter *Filter `json:"textFilter"` // A filter for a string value based on the given operator. }
String A filter for the metrics string dimensions.
func (*String) GetType ¶
func (me *String) GetType() FilterType
func (*String) MarshalHCL ¶
func (me *String) MarshalHCL(properties hcl.Properties) error