Documentation
¶
Index ¶
- type API
- func (api *API) CreateGraphDefs(payloads []CreateGraphDefsPayload) error
- func (api *API) CreateHost(name string, meta map[string]interface{}, interfaces []map[string]interface{}, ...) (string, error)
- func (api *API) FindHost(id string) (*Host, error)
- func (api *API) PostMetricsValues(metricsValues [](*CreatingMetricsValue)) error
- func (api *API) UpdateHost(hostID string, hostSpec map[string]interface{}) error
- type CreateGraphDefsPayload
- type CreateGraphDefsPayloadMetric
- type CreatingMetricsValue
- type Host
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API XXX
func (*API) CreateGraphDefs ¶ added in v0.10.0
func (api *API) CreateGraphDefs(payloads []CreateGraphDefsPayload) error
CreateGraphDefs XXX
func (*API) CreateHost ¶
func (api *API) CreateHost(name string, meta map[string]interface{}, interfaces []map[string]interface{}, roleFullnames []string) (string, error)
CreateHost XXX
func (*API) PostMetricsValues ¶
func (api *API) PostMetricsValues(metricsValues [](*CreatingMetricsValue)) error
PostMetricsValues XXX
type CreateGraphDefsPayload ¶ added in v0.10.0
type CreateGraphDefsPayload struct {
Name string `json:"name"`
DisplayName string `json:"displayName"`
Unit string `json:"unit"`
Metrics []CreateGraphDefsPayloadMetric `json:"metrics"`
}
CreateGraphDefsPayload XXX
type CreateGraphDefsPayloadMetric ¶ added in v0.10.0
type CreateGraphDefsPayloadMetric struct {
Name string `json:"name"`
DisplayName string `json:"displayName"`
IsStacked bool `json:"isStacked"`
}
CreateGraphDefsPayloadMetric XXX
type CreatingMetricsValue ¶
type CreatingMetricsValue struct {
HostID string `json:"hostId"`
Name string `json:"name"`
Time float64 `json:"time"`
Value interface{} `json:"value"`
}
CreatingMetricsValue XXX
Click to show internal directories.
Click to hide internal directories.