models

package
v0.0.0-...-eefc88d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DescriptorKindDOUBLE captures enum value "DOUBLE"
	DescriptorKindDOUBLE string = "DOUBLE"

	// DescriptorKindDOUBLEDISTRIBUTION captures enum value "DOUBLE_DISTRIBUTION"
	DescriptorKindDOUBLEDISTRIBUTION string = "DOUBLE_DISTRIBUTION"

	// DescriptorKindLONG captures enum value "LONG"
	DescriptorKindLONG string = "LONG"

	// DescriptorKindINTEGER captures enum value "INTEGER"
	DescriptorKindINTEGER string = "INTEGER"

	// DescriptorKindSTRING captures enum value "STRING"
	DescriptorKindSTRING string = "STRING"
)
View Source
const (

	// DescriptorTypeCOUNTER captures enum value "COUNTER"
	DescriptorTypeCOUNTER string = "COUNTER"

	// DescriptorTypeGAUGE captures enum value "GAUGE"
	DescriptorTypeGAUGE string = "GAUGE"

	// DescriptorTypeMETER captures enum value "METER"
	DescriptorTypeMETER string = "METER"

	// DescriptorTypeRATE captures enum value "RATE"
	DescriptorTypeRATE string = "RATE"

	// DescriptorTypeMONOTONIC captures enum value "MONOTONIC"
	DescriptorTypeMONOTONIC string = "MONOTONIC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPoint

type DataPoint struct {

	// count
	// Required: true
	Count *string `json:"count"`

	// current
	// Required: true
	Current *string `json:"current"`

	// max
	// Required: true
	Max *string `json:"max"`

	// min
	// Required: true
	Min *string `json:"min"`

	// sum
	// Required: true
	Sum *string `json:"sum"`

	// timestamp
	// Required: true
	Timestamp *string `json:"timestamp"`

	// value
	// Required: true
	Value *string `json:"value"`
}

DataPoint data point

swagger:model DataPoint

func (*DataPoint) MarshalBinary

func (m *DataPoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataPoint) UnmarshalBinary

func (m *DataPoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataPoint) Validate

func (m *DataPoint) Validate(formats strfmt.Registry) error

Validate validates this data point

type Descriptor

type Descriptor struct {

	// key
	// Required: true
	Key *string `json:"key"`

	// kind
	// Required: true
	// Enum: [DOUBLE DOUBLE_DISTRIBUTION LONG INTEGER STRING]
	Kind *string `json:"kind"`

	// type
	// Required: true
	// Enum: [COUNTER GAUGE METER RATE MONOTONIC]
	Type *string `json:"type"`
}

Descriptor descriptor

swagger:model Descriptor

func (*Descriptor) MarshalBinary

func (m *Descriptor) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Descriptor) UnmarshalBinary

func (m *Descriptor) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Descriptor) Validate

func (m *Descriptor) Validate(formats strfmt.Registry) error

Validate validates this descriptor

type Entity

type Entity struct {

	// attributes
	// Required: true
	Attributes Map `json:"attributes"`

	// metrics
	// Required: true
	Metrics []*Metric `json:"metrics"`

	// properties
	// Required: true
	Properties Map `json:"properties"`

	// type
	// Required: true
	Type *string `json:"type"`
}

Entity entity

swagger:model Entity

func (*Entity) MarshalBinary

func (m *Entity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Entity) UnmarshalBinary

func (m *Entity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Entity) Validate

func (m *Entity) Validate(formats strfmt.Registry) error

Validate validates this entity

type Error

type Error struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// message
	// Required: true
	Message *string `json:"message"`

	// path
	// Required: true
	Path *string `json:"path"`

	// status
	// Required: true
	Status *int32 `json:"status"`

	// timestamp
	// Required: true
	Timestamp *string `json:"timestamp"`
}

Error error

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Map

type Map map[string]string

Map map

swagger:model Map

func (Map) Validate

func (m Map) Validate(formats strfmt.Registry) error

Validate validates this map

type Message

type Message struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// status
	// Required: true
	Status *string `json:"status"`
}

Message message

swagger:model Message

func (*Message) MarshalBinary

func (m *Message) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Message) UnmarshalBinary

func (m *Message) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Message) Validate

func (m *Message) Validate(formats strfmt.Registry) error

Validate validates this message

type Metric

type Metric struct {

	// labels
	// Required: true
	Labels *Descriptor `json:"labels"`

	// points
	// Required: true
	Points []*DataPoint `json:"points"`
}

Metric metric

swagger:model Metric

func (*Metric) MarshalBinary

func (m *Metric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metric) UnmarshalBinary

func (m *Metric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metric) Validate

func (m *Metric) Validate(formats strfmt.Registry) error

Validate validates this metric

type Payload

type Payload struct {

	// entities
	// Required: true
	Entities []*Entity `json:"entities"`

	// labels
	// Required: true
	Labels Map `json:"labels"`

	// relationships
	// Required: true
	Relationships []*Relationship `json:"relationships"`
}

Payload payload

swagger:model Payload

func (*Payload) MarshalBinary

func (m *Payload) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Payload) UnmarshalBinary

func (m *Payload) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Payload) Validate

func (m *Payload) Validate(formats strfmt.Registry) error

Validate validates this payload

type Relationship

type Relationship struct {

	// child properties
	// Required: true
	ChildProperties Map `json:"childProperties"`

	// child type
	// Required: true
	ChildType *string `json:"childType"`

	// parent properties
	// Required: true
	ParentProperties Map `json:"parentProperties"`

	// parent type
	// Required: true
	ParentType *string `json:"parentType"`
}

Relationship relationship

swagger:model Relationship

func (*Relationship) MarshalBinary

func (m *Relationship) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Relationship) UnmarshalBinary

func (m *Relationship) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Relationship) Validate

func (m *Relationship) Validate(formats strfmt.Registry) error

Validate validates this relationship

Jump to

Keyboard shortcuts

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