Documentation ¶
Index ¶
- Constants
- type EaseMonitorMetrics
- func (emm *EaseMonitorMetrics) Category() supervisor.ObjectCategory
- func (emm *EaseMonitorMetrics) Close()
- func (emm *EaseMonitorMetrics) DefaultSpec() interface{}
- func (emm *EaseMonitorMetrics) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
- func (emm *EaseMonitorMetrics) Init(superSpec *supervisor.Spec)
- func (emm *EaseMonitorMetrics) Kind() string
- func (emm *EaseMonitorMetrics) Status() *supervisor.Status
- type GlobalFields
- type KafkaSpec
- type RequestMetrics
- type Spec
- type Status
- type StatusCodeMetrics
Constants ¶
const (
// Kind is EaseMonitorMetrics kind.
Kind = "EaseMonitorMetrics"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EaseMonitorMetrics ¶
type EaseMonitorMetrics struct {
// contains filtered or unexported fields
}
EaseMonitorMetrics is Object EaseMonitorMetrics.
func (*EaseMonitorMetrics) Category ¶
func (emm *EaseMonitorMetrics) Category() supervisor.ObjectCategory
Category returns the category of EaseMonitorMetrics.
func (*EaseMonitorMetrics) Close ¶
func (emm *EaseMonitorMetrics) Close()
Close closes EaseMonitorMetrics.
func (*EaseMonitorMetrics) DefaultSpec ¶
func (emm *EaseMonitorMetrics) DefaultSpec() interface{}
DefaultSpec returns the default spec of EaseMonitorMetrics.
func (*EaseMonitorMetrics) Inherit ¶
func (emm *EaseMonitorMetrics) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
Inherit inherits previous generation of EaseMonitorMetrics.
func (*EaseMonitorMetrics) Init ¶
func (emm *EaseMonitorMetrics) Init(superSpec *supervisor.Spec)
Init initializes EaseMonitorMetrics.
func (*EaseMonitorMetrics) Kind ¶
func (emm *EaseMonitorMetrics) Kind() string
Kind returns the kind of EaseMonitorMetrics.
func (*EaseMonitorMetrics) Status ¶
func (emm *EaseMonitorMetrics) Status() *supervisor.Status
Status returns status of EtcdServiceRegister.
type GlobalFields ¶
type GlobalFields struct { Timestamp int64 `json:"timestamp"` Category string `json:"category"` HostName string `json:"host_name"` HostIpv4 string `json:"host_ipv4"` System string `json:"system"` Service string `json:"service"` Type string `json:"type"` Resource string `json:"resource"` URL string `json:"url,omitempty"` }
GlobalFields is the global fields of EaseMonitor metrics.
type KafkaSpec ¶
type KafkaSpec struct { Brokers []string `yaml:"brokers" jsonschema:"required,uniqueItems=true"` Topic string `yaml:"topic" jsonschema:"required"` }
KafkaSpec is the spec for kafka producer.
type RequestMetrics ¶
type RequestMetrics struct { GlobalFields Count uint64 `json:"cnt"` M1 float64 `json:"m1"` M5 float64 `json:"m5"` M15 float64 `json:"m15"` ErrCount uint64 `json:"errcnt"` M1Err float64 `json:"m1err"` M5Err float64 `json:"m5err"` M15Err float64 `json:"m15err"` M1ErrPercent float64 `json:"m1errpct"` M5ErrPercent float64 `json:"m5errpct"` M15ErrPercent float64 `json:"m15errpct"` Min uint64 `json:"min"` Max uint64 `json:"max"` Mean uint64 `json:"mean"` P25 float64 `json:"p25"` P50 float64 `json:"p50"` P75 float64 `json:"p75"` P95 float64 `json:"p95"` P98 float64 `json:"p98"` P99 float64 `json:"p99"` P999 float64 `json:"p999"` ReqSize uint64 `json:"reqsize"` RespSize uint64 `json:"respsize"` }
RequestMetrics is the metrics of http request.
type Spec ¶
type Spec struct {
Kafka *KafkaSpec `yaml:"kafka" jsonschema:"required"`
}
Spec describes the EaseMonitorMetrics.
type Status ¶
type Status struct {
Health string `json:"health"`
}
Status is the status of EaseMonitorMetrics.
type StatusCodeMetrics ¶
type StatusCodeMetrics struct { GlobalFields Code int `json:"code"` Count uint64 `json:"cnt"` }
StatusCodeMetrics is the metrics of http status code.