Documentation ¶
Index ¶
Constants ¶
View Source
const ( MonitorHost = "monitor.api.qcloud.com" MonitorPath = "/v2/index.php" )
View Source
const ( NameSpaceQceDocker = "qce/docker" NameSpaceQceCvm = "qce/cvm" QCloudMonitorAPITimeTemplate = "2006-01-02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchGetMonitorDataArgs ¶
type BatchGetMonitorDataArgs struct { Namespace string `qcloud_arg:"namespace"` MetricName string `qcloud_arg:"metricName"` Batch []Batch `qcloud_arg:"batch"` Period *int `qcloud_arg:"period,omitempty"` StartTime *QCloudMonitorAPITime `qcloud_arg:"startTime,omitempty"` EndTime *QCloudMonitorAPITime `qcloud_arg:"endTime,omitempty"` }
type BatchGetMonitorDataResponse ¶
type BatchGetMonitorDataResponse struct { StartTime QCloudMonitorAPITime `json:"startTime"` EndTime QCloudMonitorAPITime `json:"endTime"` MetricName string `json:"metricName"` Period int `json:"period"` DataPoints map[string][]*float64 `json:"dataPoints"` }
type Client ¶
func NewClientFromEnv ¶
func (*Client) BatchGetMonitorData ¶
func (client *Client) BatchGetMonitorData(args *BatchGetMonitorDataArgs) (*BatchGetMonitorDataResponse, error)
func (*Client) GetMonitorData ¶
func (client *Client) GetMonitorData(args *GetMonitorDataArgs) (*GetMonitorDataResponse, error)
type GetMonitorDataArgs ¶
type GetMonitorDataArgs struct { Namespace string `qcloud_arg:"namespace"` MetricName string `qcloud_arg:"metricName"` Dimensions []Dimension `qcloud_arg:"dimensions"` Period *int `qcloud_arg:"period,omitempty"` StartTime *QCloudMonitorAPITime `qcloud_arg:"startTime,omitempty"` EndTime *QCloudMonitorAPITime `qcloud_arg:"endTime,omitempty"` }
type GetMonitorDataResponse ¶
type GetMonitorDataResponse struct { StartTime QCloudMonitorAPITime `json:"startTime"` EndTime QCloudMonitorAPITime `json:"endTime"` MetricName string `json:"metricName"` Period int `json:"period"` DataPoints []*float64 `json:"dataPoints"` }
type QCloudMonitorAPITime ¶
func (*QCloudMonitorAPITime) EncodeStructWithPrefix ¶
func (*QCloudMonitorAPITime) MarshalJSON ¶
func (qmat *QCloudMonitorAPITime) MarshalJSON() ([]byte, error)
func (*QCloudMonitorAPITime) UnmarshalJSON ¶
func (qmat *QCloudMonitorAPITime) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.