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) Do(req *http.Request) (resp *http.Response, err error)
- func (api *API) FindHost(id string) (*Host, error)
- func (api *API) PostMetricsValues(metricsValues [](*CreatingMetricsValue)) error
- func (api *API) UpdateHost(hostId string, name string, meta map[string]interface{}, ...) error
- type CreateGraphDefsPayload
- type CreateGraphDefsPayloadMetric
- type CreatingMetricsValue
- type Host
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) CreateGraphDefs ¶ added in v0.10.0
func (api *API) CreateGraphDefs(payloads []CreateGraphDefsPayload) error
func (*API) CreateHost ¶
func (*API) PostMetricsValues ¶
func (api *API) PostMetricsValues(metricsValues [](*CreatingMetricsValue)) error
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"` }
type CreateGraphDefsPayloadMetric ¶ added in v0.10.0
type CreatingMetricsValue ¶
Click to show internal directories.
Click to hide internal directories.