Documentation ¶
Index ¶
- Constants
- 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 ¶
View Source
const ( UnitSeconds string = "Seconds" UnitMicroseconds string = "Microseconds" UnitMilliseconds string = "Milliseconds" UnitBytes string = "Bytes" UnitKilobytes string = "Kilobytes" UnitMegabytes string = "Megabytes" UnitGigabytes string = "Gigabytes" UnitTerabytes string = "Terabytes" UnitBits string = "Bits" UnitKilobits string = "Kilobits" UnitMegabits string = "Megabits" UnitGigabits string = "Gigabits" UnitTerabits string = "Terabits" UnitPercent string = "Percent" UnitCount string = "Count" UnitBytesPerSecond string = "Bytes/Second" UnitKilobytesPerSecond string = "Kilobytes/Second" UnitMegabytesPerSecond string = "Megabytes/Second" UnitGigabytesPerSecond string = "Gigabytes/Second" UnitTerabytesPerSecond string = "Terabytes/Second" UnitBitsPerSecond string = "Bits/Second" UnitKilobitsPerSecond string = "Kilobits/Second" UnitMegabitsPerSecond string = "Megabits/Second" UnitGigabitsPerSecond string = "Gigabits/Second" UnitTerabitsPerSecond string = "Terabits/Second" UnitCountPerSecond string = "Count/Second" UnitNone string = "None" )
View Source
const ( StatisticDatapointAverage string = "Average" StatisticDatapointSum string = "Sum" StatisticDatapointSampleCount string = "SampleCount" StatisticDatapointMaximum string = "Maximum" StatisticDatapointMinimum string = "Minimum" )
View Source
const ( ComparisonOperatorLessThanThreshold string = "LessThanThreshold" ComparisonOperatorLessThanOrEqualToThreshold string = "LessThanOrEqualToThreshold" ComparisonOperatorGreaterThanThreshold string = "GreaterThanThreshold" ComparisonOperatorGreaterThanOrEqualToThreshold string = "GreaterThanOrEqualToThreshold" )
View Source
const (
MetricNameCPUUtilization = "CPUUtilization"
)
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.