Documentation
¶
Index ¶
- func MetadataDecoder(raw json.RawMessage) (getter.Getter, error)
- func NewProbe(ctx probes.Context, bundle *probe.Bundle) (probe.Handler, error)
- func Register()
- type CPUInfo
- func (obj *CPUInfo) GetField(key string) (interface{}, error)
- func (obj *CPUInfo) GetFieldBool(key string) (bool, error)
- func (obj *CPUInfo) GetFieldInt64(key string) (int64, error)
- func (obj *CPUInfo) GetFieldKeys() []string
- func (obj *CPUInfo) GetFieldString(key string) (string, error)
- func (v CPUInfo) MarshalEasyJSON(w *jwriter.Writer)
- func (v CPUInfo) MarshalJSON() ([]byte, error)
- func (obj *CPUInfo) MatchBool(key string, predicate getter.BoolPredicate) bool
- func (obj *CPUInfo) MatchInt64(key string, predicate getter.Int64Predicate) bool
- func (obj *CPUInfo) MatchString(key string, predicate getter.StringPredicate) bool
- func (v *CPUInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CPUInfo) UnmarshalJSON(data []byte) error
- type CPUInfos
- func (obj *CPUInfos) GetField(key string) (interface{}, error)
- func (obj *CPUInfos) GetFieldBool(key string) (bool, error)
- func (obj *CPUInfos) GetFieldInt64(key string) (int64, error)
- func (obj *CPUInfos) GetFieldKeys() []string
- func (obj *CPUInfos) GetFieldString(key string) (string, error)
- func (v CPUInfos) MarshalEasyJSON(w *jwriter.Writer)
- func (v CPUInfos) MarshalJSON() ([]byte, error)
- func (obj *CPUInfos) MatchBool(key string, predicate getter.BoolPredicate) bool
- func (obj *CPUInfos) MatchInt64(key string, predicate getter.Int64Predicate) bool
- func (obj *CPUInfos) MatchString(key string, predicate getter.StringPredicate) bool
- func (v *CPUInfos) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CPUInfos) UnmarshalJSON(data []byte) error
- type Probe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataDecoder ¶
func MetadataDecoder(raw json.RawMessage) (getter.Getter, error)
MetadataDecoder implements a json message raw decoder
Types ¶
type CPUInfo ¶
type CPUInfo struct { CPU int64 `json:"CPU,omitempty"` VendorID string `json:"VendorID,omitempty"` Family string `json:"Family,omitempty"` Model string `json:"Model,omitempty"` Stepping int64 `json:"Stepping,omitempty"` PhysicalID string `json:"PhysicalID,omitempty"` CoreID string `json:"CoreID,omitempty"` Cores int64 `json:"Cores,omitempty"` ModelName string `json:"ModelName,omitempty"` Mhz int64 `json:"Mhz,omitempty"` CacheSize int64 `json:"CacheSize,omitempty"` Microcode string `json:"Microcode,omitempty"` }
CPUInfo defines host information easyjson:json gendecoder
func (*CPUInfo) GetFieldKeys ¶
func (CPUInfo) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CPUInfo) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CPUInfo) MatchBool ¶
func (obj *CPUInfo) MatchBool(key string, predicate getter.BoolPredicate) bool
func (*CPUInfo) MatchInt64 ¶
func (obj *CPUInfo) MatchInt64(key string, predicate getter.Int64Predicate) bool
func (*CPUInfo) MatchString ¶
func (obj *CPUInfo) MatchString(key string, predicate getter.StringPredicate) bool
func (*CPUInfo) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CPUInfo) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CPUInfos ¶
type CPUInfos []*CPUInfo
easyjson:json gendecoder
func (*CPUInfos) GetFieldKeys ¶
func (CPUInfos) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (CPUInfos) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*CPUInfos) MatchBool ¶
func (obj *CPUInfos) MatchBool(key string, predicate getter.BoolPredicate) bool
func (*CPUInfos) MatchInt64 ¶
func (obj *CPUInfos) MatchInt64(key string, predicate getter.Int64Predicate) bool
func (*CPUInfos) MatchString ¶
func (obj *CPUInfos) MatchString(key string, predicate getter.StringPredicate) bool
func (*CPUInfos) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CPUInfos) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.