Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClbMetric ¶
type ClbMetric struct {
// contains filtered or unexported fields
}
ClbMetric clb metrics
func (*ClbMetric) RegisterResource ¶
RegisterResource register resource to clb metric
type JSONStatus ¶
type JSONStatus struct {
// contains filtered or unexported fields
}
JSONStatus json status
func (*JSONStatus) Register ¶
func (js *JSONStatus) Register(container *restful.Container)
Register implements metric.Resource interface
type PromMetric ¶
type PromMetric struct { }
PromMetric metric for prometheus
func (*PromMetric) Register ¶
func (p *PromMetric) Register(container *restful.Container)
Register implements Resource interface
type Resource ¶
type Resource interface {
Register(container *restful.Container)
}
Resource for a kind of clb metric
func NewJSONStatus ¶
func NewJSONStatus(hf restful.RouteFunction) Resource
NewJSONStatus new json status object
func NewVersionMetric ¶
func NewVersionMetric() Resource
type VersionMetric ¶
type VersionMetric struct { }
func (*VersionMetric) Register ¶
func (vm *VersionMetric) Register(container *restful.Container)
Click to show internal directories.
Click to hide internal directories.