Documentation
¶
Index ¶
- type PowerStore
- func (ps PowerStore) DetectMetricNames(resType string, resID string, rollup bool) []string
- func (ps PowerStore) Get(uri string, headers map[string]string, params map[string]string) (*resty.Response, error)
- func (ps PowerStore) GetLatestMetric(resType string, resID string, rollup bool) map[string]float64
- func (ps PowerStore) ListResources(resType string) []map[string]string
- func (ps *PowerStore) Logout()
- func (ps PowerStore) Post(uri string, body map[string]string) (*resty.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PowerStore ¶
type PowerStore struct { APIEndPoint string User string Password string // contains filtered or unexported fields }
PowerStore array object
func NewPowerStore ¶
func NewPowerStore(address, user, password string) *PowerStore
NewPowerStore init a PowerStore object
func (PowerStore) DetectMetricNames ¶
func (ps PowerStore) DetectMetricNames(resType string, resID string, rollup bool) []string
DetectMetricNames detect supported metrics
func (PowerStore) Get ¶
func (ps PowerStore) Get(uri string, headers map[string]string, params map[string]string) (*resty.Response, error)
Get PowerStore HTTP GET encapsulation
func (PowerStore) GetLatestMetric ¶
GetLatestMetric Get the latest metric
func (PowerStore) ListResources ¶
func (ps PowerStore) ListResources(resType string) []map[string]string
ListResources List PowerStore resources
Click to show internal directories.
Click to hide internal directories.