Documentation ¶
Index ¶
Constants ¶
View Source
const ( OP_AVG = "avg" OP_SUM = "sum" OP_MAX = "max" OP_MIN = "min" )
Variables ¶
View Source
var L, _ = syslog.New(syslog.LOG_INFO, "SYCWAGENT")
View Source
var (
VERSION string
)
View Source
var W sync.WaitGroup
Functions ¶
Types ¶
type AgentConf ¶
func NewConf ¶
func NewConf() *AgentConf
Prepare a new agent configuration
The default parameters are
- REGION: eu-west-1
- ADDRESS: 127.0.0.1
- PORT: 1234
- LOOP: 60
func (*AgentConf) MergeWithFileAtPath ¶
Merge default configuration with a JSON configuration
type MetricData ¶
func (*MetricData) Datum ¶
func (h *MetricData) Datum() cloudwatch.MetricDatum
func (*MetricData) Key ¶
func (h *MetricData) Key() string
func (*MetricData) Update ¶
func (h *MetricData) Update(point *MetricData)
Click to show internal directories.
Click to hide internal directories.