Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchHosts ¶ added in v0.0.3
type MatchHosts []string
func (MatchHosts) Contain ¶ added in v0.0.3
func (mh MatchHosts) Contain(host string) bool
Contain checks if host includes or not
type ReceiverConfig ¶
type ReceiverConfig struct {
CloudWatchRegion string `json:"cloud_watch_region"`
CloudWatchClusterName string `json:"cloud_watch_cluster_name"`
AWSAccessKeyID string `json:"aws_access_key_id"`
AWSSecretAccessKey string `json:"aws_secret_access_key"`
HTTPRequestTimeoutMillisecond uint32 `json:"http_request_timeout_millisecond"`
MetricNamespace string `json:"metric_namespace"`
MetricName string `json:"metric_name"`
}
ReceiverConfig represents config for receiver
func LoadReceiverConfig ¶
func LoadReceiverConfig(data []byte) (*ReceiverConfig, error)
LoadReceiverConfig parses data argument and returns ReceiverConfig
func (ReceiverConfig) MarshalEasyJSON ¶
func (v ReceiverConfig) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ReceiverConfig) MarshalJSON ¶
func (v ReceiverConfig) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ReceiverConfig) UnmarshalEasyJSON ¶
func (v *ReceiverConfig) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ReceiverConfig) UnmarshalJSON ¶
func (v *ReceiverConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SenderConfig ¶
type SenderConfig struct {
ReceiverVMID string `json:"receiver_vm_id"`
MatchHosts MatchHosts `json:"match_hosts"`
}
SenderConfig represents config for sender
func LoadSenderConfig ¶
func LoadSenderConfig(data []byte) (*SenderConfig, error)
LoadSenderConfig parses data argument and returns SenderConfig
func (SenderConfig) MarshalEasyJSON ¶
func (v SenderConfig) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SenderConfig) MarshalJSON ¶
func (v SenderConfig) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SenderConfig) UnmarshalEasyJSON ¶
func (v *SenderConfig) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SenderConfig) UnmarshalJSON ¶
func (v *SenderConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface