Documentation
¶
Index ¶
Constants ¶
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" )
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 ¶
MarshalBinary interface implementation
func (*DataPoint) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Entity) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Message) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Metric) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Payload) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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