Documentation ¶
Index ¶
- type AlarmAction
- type CloudWatch
- func (c *CloudWatch) GetMetricStatistics(req *GetMetricStatisticsRequest) (result *GetMetricStatisticsResponse, err error)
- func (c *CloudWatch) ListMetrics(req *ListMetricsRequest) (result *ListMetricsResponse, err error)
- func (c *CloudWatch) PutMetricAlarm(alarm *MetricAlarm) (result *aws.BaseResponse, err error)
- func (c *CloudWatch) PutMetricData(metrics []MetricDatum) (result *aws.BaseResponse, err error)
- func (c *CloudWatch) PutMetricDataNamespace(metrics []MetricDatum, namespace string) (result *aws.BaseResponse, err error)
- type Datapoint
- type Dimension
- type GetMetricStatisticsRequest
- type GetMetricStatisticsResponse
- type GetMetricStatisticsResult
- type ListMetricsRequest
- type ListMetricsResponse
- type ListMetricsResult
- type Metric
- type MetricAlarm
- type MetricDatum
- type StatisticSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmAction ¶
type AlarmAction struct {
ARN string
}
type CloudWatch ¶
type CloudWatch struct {
Service aws.AWSService
}
The CloudWatch type encapsulates all the CloudWatch operations in a region.
func NewCloudWatch ¶
func NewCloudWatch(auth aws.Auth, region aws.ServiceInfo) (*CloudWatch, error)
Create a new CloudWatch object for a given namespace
func (*CloudWatch) GetMetricStatistics ¶
func (c *CloudWatch) GetMetricStatistics(req *GetMetricStatisticsRequest) (result *GetMetricStatisticsResponse, err error)
Get statistics for specified metric
If the arguments are invalid or the server returns an error, the error will be set and the other values undefined.
func (*CloudWatch) ListMetrics ¶
func (c *CloudWatch) ListMetrics(req *ListMetricsRequest) (result *ListMetricsResponse, err error)
func (*CloudWatch) PutMetricAlarm ¶
func (c *CloudWatch) PutMetricAlarm(alarm *MetricAlarm) (result *aws.BaseResponse, err error)
func (*CloudWatch) PutMetricData ¶
func (c *CloudWatch) PutMetricData(metrics []MetricDatum) (result *aws.BaseResponse, err error)
func (*CloudWatch) PutMetricDataNamespace ¶
func (c *CloudWatch) PutMetricDataNamespace(metrics []MetricDatum, namespace string) (result *aws.BaseResponse, err error)
type GetMetricStatisticsResponse ¶
type GetMetricStatisticsResponse struct { GetMetricStatisticsResult GetMetricStatisticsResult ResponseMetadata aws.ResponseMetadata }
type ListMetricsRequest ¶
type ListMetricsResponse ¶
type ListMetricsResponse struct { ListMetricsResult ListMetricsResult ResponseMetadata aws.ResponseMetadata }
type ListMetricsResult ¶
type MetricAlarm ¶
type MetricAlarm struct { AlarmActions []AlarmAction AlarmDescription string AlarmName string ComparisonOperator string Dimensions []Dimension EvaluationPeriods int InsufficientDataActions []AlarmAction MetricName string Namespace string OkActions []AlarmAction Period int Statistic string Threshold float64 Unit string }
type MetricDatum ¶
Click to show internal directories.
Click to hide internal directories.