Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidMetaTypes = map[MetaType]bool{ MetaTypeLogic: true, MetaTypeSharedpool: true, }
ValidMetaTypes contains all valid meta types
Functions ¶
This section is empty.
Types ¶
type MetaData ¶
type MetaData struct {
ClusterID string `json:"cluster_id"` // cluster ID
Type MetaType `json:"type"` // metadata type (logic or sharedpool)
Category string `json:"category,omitempty"` // service category (optional)
ModifyTS int64 `json:"modify_ts"` // modification timestamp
Metadata map[string]interface{} `json:"metadata"` // metadata content
}
MetaData metadata structure
type MeteringData ¶
type MeteringData struct {
Timestamp int64 `json:"timestamp"` // minute-level timestamp
Category string `json:"category"` // service category identifier
SelfID string `json:"self_id"` // component ID
Data []map[string]interface{} `json:"data"` // logical cluster metering data list
}
MeteringData metering data structure
type MeteringValue ¶
type MeteringValue struct {
Value uint64 `json:"value"` // the numeric value
Unit string `json:"unit"` // the unit of measurement
}
MeteringValue represents a single metering value with its unit
Click to show internal directories.
Click to hide internal directories.