Documentation
¶
Overview ¶
Package easemonitor provides the common fields and interfaces for EaseMonitor metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonFields ¶
type CommonFields 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"`
}
CommonFields is the common fields of all EaseMonitor metrics.
type Metrics ¶
type Metrics struct {
CommonFields
OtherFields interface{}
}
Metrics is an EaseMonitor metrics.
func (*Metrics) MarshalJSON ¶
MarshalJSON implements json.Marshaler
Click to show internal directories.
Click to hide internal directories.