Documentation ¶
Index ¶
- Constants
- type Client
- type Datapoint
- type Dimension
- type GetMetricStatistics
- type GetMetricStatisticsResponse
- type GetMetricStatisticsResult
- type ListMetrics
- type ListMetricsOption
- type ListMetricsOptions
- type ListMetricsResponse
- type Metric
- type MetricData
- type PutMetricData
- type StatisticValues
- type Values
Constants ¶
View Source
const (
VERSION = "2010-08-01"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) ListMetrics ¶
func (client *Client) ListMetrics(funcs ...ListMetricsOption) (rsp *ListMetricsResponse, e error)
type Datapoint ¶
type Datapoint struct { Timestamp time.Time `xml:"Timestamp,omitempty"` Unit string `xml:"Unit,omitempty"` Sum float64 `xml:"Sum,omitempty"` Average float64 `xml:"Average,omitempty"` Maximum float64 `xml:"Maximum,omitempty"` Minimum float64 `xml:"Minimum,omitempty"` SampleCount float64 `xml:"SampleCount,omitempty"` }
type GetMetricStatistics ¶
type GetMetricStatistics struct { Dimensions []*Dimension EndTime time.Time MetricName string Namespace string Period int // min: 60, multiple of 60 StartTime time.Time Statistics []string // Average | Sum | SampleCount | Maximum | Minimum Unit string }
func (*GetMetricStatistics) Execute ¶
func (action *GetMetricStatistics) Execute(client *ec2.Client) (*GetMetricStatisticsResponse, error)
type GetMetricStatisticsResponse ¶
type GetMetricStatisticsResponse struct { XMLName xml.Name `xml:"GetMetricStatisticsResponse"` GetMetricStatisticsResult *GetMetricStatisticsResult `xml:"GetMetricStatisticsResult"` }
type ListMetrics ¶
type ListMetrics struct { Dimensions []*Dimension MetricName string Namespace string NextToken string }
func (*ListMetrics) Execute ¶
func (action *ListMetrics) Execute(client *ec2.Client) (*ListMetricsResponse, error)
type ListMetricsOption ¶
type ListMetricsOption func(*ListMetricsOptions)
func OptNextToken ¶
func OptNextToken(i string) ListMetricsOption
type ListMetricsOptions ¶
type ListMetricsOptions struct {
NextToken string
}
type ListMetricsResponse ¶
type MetricData ¶
type MetricData struct { Dimensions []*Dimension MetricName string StatisticValues *StatisticValues Timestamp time.Time Unit string Value float64 }
http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
type PutMetricData ¶
type PutMetricData struct { Namespace string MetricData []*MetricData }
http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html
type StatisticValues ¶
Click to show internal directories.
Click to hide internal directories.