Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTopicTSDBSet = "roles.tsdb.set" EventTopicTSDBInc = "roles.tsdb.inc" EventTopicTSDBWrite = "roles.tsdb.write" EventTopicTSDBBeforeWrite = "roles.tsdb.before_write" )
View Source
const ( KeyRole = "tsdb" KeySystem = "system" )
Variables ¶
View Source
var File_protobuf_role_tsdb_record_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type APIMetricsGetInput ¶ added in v0.9.3
type APIMetricsGetInput struct { Role APIMetricsRole `query:"role" required:"true"` Category string `query:"category"` Node string `query:"node"` Since *time.Time `query:"since" description:"Optionally set a start time for which to return datapoints after"` }
type APIMetricsGetOutput ¶
type APIMetricsGetOutput struct {
Records []APIMetricsRecord `json:"records" required:"true"`
}
type APIMetricsRecord ¶
type APIMetricsRole ¶ added in v0.9.3
type APIMetricsRole string
func (APIMetricsRole) Enum ¶ added in v0.9.3
func (APIMetricsRole) Enum() []interface{}
type MetricsRecord ¶ added in v0.17.2
type MetricsRecord struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*MetricsRecord) Descriptor
deprecated
added in
v0.17.2
func (*MetricsRecord) Descriptor() ([]byte, []int)
Deprecated: Use MetricsRecord.ProtoReflect.Descriptor instead.
func (*MetricsRecord) GetValue ¶ added in v0.17.2
func (x *MetricsRecord) GetValue() int64
func (*MetricsRecord) ProtoMessage ¶ added in v0.17.2
func (*MetricsRecord) ProtoMessage()
func (*MetricsRecord) ProtoReflect ¶ added in v0.17.2
func (x *MetricsRecord) ProtoReflect() protoreflect.Message
func (*MetricsRecord) Reset ¶ added in v0.17.2
func (x *MetricsRecord) Reset()
func (*MetricsRecord) String ¶ added in v0.17.2
func (x *MetricsRecord) String() string
Click to show internal directories.
Click to hide internal directories.