dimensions

package
v1.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilterTypes = struct {
	Entity FilterType
	String FilterType
}{
	"ENTITY",
	"STRING",
}

FilterTypes offers the known enum values

View Source
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) Schema

func (me *BaseDimension) Schema() map[string]*schema.Schema

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) Schema

func (me Dimensions) Schema() map[string]*schema.Schema

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 (me *Entity) MarshalJSON() ([]byte, error)

func (*Entity) Schema

func (me *Entity) Schema() map[string]*schema.Schema

func (*Entity) UnmarshalHCL

func (me *Entity) UnmarshalHCL(decoder hcl.Decoder) error

func (*Entity) UnmarshalJSON

func (me *Entity) UnmarshalJSON(data []byte) error

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

func (*Filter) Schema

func (me *Filter) Schema() map[string]*schema.Schema

func (*Filter) UnmarshalHCL

func (me *Filter) UnmarshalHCL(decoder hcl.Decoder) 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 Operator

type Operator string

Operator The operator to match on.

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

func (*String) MarshalJSON

func (me *String) MarshalJSON() ([]byte, error)

func (*String) Schema

func (me *String) Schema() map[string]*schema.Schema

func (*String) UnmarshalHCL

func (me *String) UnmarshalHCL(decoder hcl.Decoder) error

func (*String) UnmarshalJSON

func (me *String) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL