aws-sdk-cloudwatch 0.0.6 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-cloudwatch.rb +50 -0
- data/lib/aws-sdk-cloudwatch/alarm.rb +451 -0
- data/lib/aws-sdk-cloudwatch/client.rb +986 -0
- data/lib/aws-sdk-cloudwatch/client_api.rb +421 -0
- data/lib/aws-sdk-cloudwatch/customizations.rb +7 -0
- data/lib/aws-sdk-cloudwatch/errors.rb +23 -0
- data/lib/aws-sdk-cloudwatch/metric.rb +424 -0
- data/lib/aws-sdk-cloudwatch/resource.rb +123 -0
- data/lib/aws-sdk-cloudwatch/types.rb +1024 -0
- data/lib/aws-sdk-cloudwatch/waiters.rb +50 -0
- metadata +35 -106
- data/.gitignore +0 -4
- data/CHANGELOG +0 -6
- data/Gemfile +0 -18
- data/LICENSE.txt +0 -202
- data/NOTICE.txt +0 -2
- data/README.rdoc +0 -41
- data/Rakefile +0 -23
- data/aws-sdk-cloudwatch.gemspec +0 -36
- data/lib/aws/api_config/CloudWatch-2010-08-01.yml +0 -359
- data/lib/aws/cloud_watch.rb +0 -31
- data/lib/aws/cloud_watch/client.rb +0 -57
- data/lib/aws/cloud_watch/config.rb +0 -19
- data/lib/aws/cloud_watch/ec2.rb +0 -58
- data/lib/aws/cloud_watch/errors.rb +0 -23
- data/lib/aws/cloud_watch/metric.rb +0 -97
- data/lib/aws/cloud_watch/metric_base.rb +0 -100
- data/lib/aws/cloud_watch/metric_collection.rb +0 -48
- data/lib/aws/cloud_watch/request.rb +0 -30
- data/lib/aws/core/option_grammar/double.rb +0 -29
- data/licence.rb +0 -14
- data/spec/cloud_watch_client_spec.rb +0 -27
- data/spec/cloud_watch_ec2_spec.rb +0 -70
- data/spec/metric_base_spec.rb +0 -50
- data/spec/metric_collection_spec.rb +0 -46
- data/spec/metric_spec.rb +0 -159
@@ -0,0 +1,421 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module CloudWatch
|
10
|
+
# @api private
|
11
|
+
module ClientApi
|
12
|
+
|
13
|
+
include Seahorse::Model
|
14
|
+
|
15
|
+
ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix')
|
16
|
+
ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled')
|
17
|
+
AlarmArn = Shapes::StringShape.new(name: 'AlarmArn')
|
18
|
+
AlarmDescription = Shapes::StringShape.new(name: 'AlarmDescription')
|
19
|
+
AlarmHistoryItem = Shapes::StructureShape.new(name: 'AlarmHistoryItem')
|
20
|
+
AlarmHistoryItems = Shapes::ListShape.new(name: 'AlarmHistoryItems')
|
21
|
+
AlarmName = Shapes::StringShape.new(name: 'AlarmName')
|
22
|
+
AlarmNamePrefix = Shapes::StringShape.new(name: 'AlarmNamePrefix')
|
23
|
+
AlarmNames = Shapes::ListShape.new(name: 'AlarmNames')
|
24
|
+
AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage')
|
25
|
+
ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
|
26
|
+
Datapoint = Shapes::StructureShape.new(name: 'Datapoint')
|
27
|
+
DatapointValue = Shapes::FloatShape.new(name: 'DatapointValue')
|
28
|
+
DatapointValueMap = Shapes::MapShape.new(name: 'DatapointValueMap')
|
29
|
+
Datapoints = Shapes::ListShape.new(name: 'Datapoints')
|
30
|
+
DeleteAlarmsInput = Shapes::StructureShape.new(name: 'DeleteAlarmsInput')
|
31
|
+
DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
|
32
|
+
DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
|
33
|
+
DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
|
34
|
+
DescribeAlarmsForMetricOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricOutput')
|
35
|
+
DescribeAlarmsInput = Shapes::StructureShape.new(name: 'DescribeAlarmsInput')
|
36
|
+
DescribeAlarmsOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsOutput')
|
37
|
+
Dimension = Shapes::StructureShape.new(name: 'Dimension')
|
38
|
+
DimensionFilter = Shapes::StructureShape.new(name: 'DimensionFilter')
|
39
|
+
DimensionFilters = Shapes::ListShape.new(name: 'DimensionFilters')
|
40
|
+
DimensionName = Shapes::StringShape.new(name: 'DimensionName')
|
41
|
+
DimensionValue = Shapes::StringShape.new(name: 'DimensionValue')
|
42
|
+
Dimensions = Shapes::ListShape.new(name: 'Dimensions')
|
43
|
+
DisableAlarmActionsInput = Shapes::StructureShape.new(name: 'DisableAlarmActionsInput')
|
44
|
+
EnableAlarmActionsInput = Shapes::StructureShape.new(name: 'EnableAlarmActionsInput')
|
45
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
46
|
+
EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods')
|
47
|
+
ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
|
48
|
+
ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics')
|
49
|
+
FaultDescription = Shapes::StringShape.new(name: 'FaultDescription')
|
50
|
+
GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput')
|
51
|
+
GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput')
|
52
|
+
HistoryData = Shapes::StringShape.new(name: 'HistoryData')
|
53
|
+
HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType')
|
54
|
+
HistorySummary = Shapes::StringShape.new(name: 'HistorySummary')
|
55
|
+
InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault')
|
56
|
+
InvalidFormatFault = Shapes::StructureShape.new(name: 'InvalidFormatFault')
|
57
|
+
InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
|
58
|
+
InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
|
59
|
+
InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
|
60
|
+
LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
|
61
|
+
ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
|
62
|
+
ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
|
63
|
+
MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
|
64
|
+
Metric = Shapes::StructureShape.new(name: 'Metric')
|
65
|
+
MetricAlarm = Shapes::StructureShape.new(name: 'MetricAlarm')
|
66
|
+
MetricAlarms = Shapes::ListShape.new(name: 'MetricAlarms')
|
67
|
+
MetricData = Shapes::ListShape.new(name: 'MetricData')
|
68
|
+
MetricDatum = Shapes::StructureShape.new(name: 'MetricDatum')
|
69
|
+
MetricLabel = Shapes::StringShape.new(name: 'MetricLabel')
|
70
|
+
MetricName = Shapes::StringShape.new(name: 'MetricName')
|
71
|
+
Metrics = Shapes::ListShape.new(name: 'Metrics')
|
72
|
+
MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException')
|
73
|
+
Namespace = Shapes::StringShape.new(name: 'Namespace')
|
74
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
75
|
+
Period = Shapes::IntegerShape.new(name: 'Period')
|
76
|
+
PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
|
77
|
+
PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
|
78
|
+
ResourceList = Shapes::ListShape.new(name: 'ResourceList')
|
79
|
+
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
80
|
+
ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
|
81
|
+
SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
|
82
|
+
StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
|
83
|
+
StateReason = Shapes::StringShape.new(name: 'StateReason')
|
84
|
+
StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
|
85
|
+
StateValue = Shapes::StringShape.new(name: 'StateValue')
|
86
|
+
Statistic = Shapes::StringShape.new(name: 'Statistic')
|
87
|
+
StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet')
|
88
|
+
Statistics = Shapes::ListShape.new(name: 'Statistics')
|
89
|
+
Threshold = Shapes::FloatShape.new(name: 'Threshold')
|
90
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
91
|
+
|
92
|
+
AlarmHistoryItem.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
|
93
|
+
AlarmHistoryItem.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
94
|
+
AlarmHistoryItem.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
|
95
|
+
AlarmHistoryItem.add_member(:history_summary, Shapes::ShapeRef.new(shape: HistorySummary, location_name: "HistorySummary"))
|
96
|
+
AlarmHistoryItem.add_member(:history_data, Shapes::ShapeRef.new(shape: HistoryData, location_name: "HistoryData"))
|
97
|
+
AlarmHistoryItem.struct_class = Types::AlarmHistoryItem
|
98
|
+
|
99
|
+
AlarmHistoryItems.member = Shapes::ShapeRef.new(shape: AlarmHistoryItem)
|
100
|
+
|
101
|
+
AlarmNames.member = Shapes::ShapeRef.new(shape: AlarmName)
|
102
|
+
|
103
|
+
Datapoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
104
|
+
Datapoint.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "SampleCount"))
|
105
|
+
Datapoint.add_member(:average, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Average"))
|
106
|
+
Datapoint.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Sum"))
|
107
|
+
Datapoint.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Minimum"))
|
108
|
+
Datapoint.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Maximum"))
|
109
|
+
Datapoint.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
|
110
|
+
Datapoint.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: DatapointValueMap, location_name: "ExtendedStatistics"))
|
111
|
+
Datapoint.struct_class = Types::Datapoint
|
112
|
+
|
113
|
+
DatapointValueMap.key = Shapes::ShapeRef.new(shape: ExtendedStatistic)
|
114
|
+
DatapointValueMap.value = Shapes::ShapeRef.new(shape: DatapointValue)
|
115
|
+
|
116
|
+
Datapoints.member = Shapes::ShapeRef.new(shape: Datapoint)
|
117
|
+
|
118
|
+
DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
|
119
|
+
DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput
|
120
|
+
|
121
|
+
DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
|
122
|
+
DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
|
123
|
+
DescribeAlarmHistoryInput.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartDate"))
|
124
|
+
DescribeAlarmHistoryInput.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndDate"))
|
125
|
+
DescribeAlarmHistoryInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
|
126
|
+
DescribeAlarmHistoryInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
127
|
+
DescribeAlarmHistoryInput.struct_class = Types::DescribeAlarmHistoryInput
|
128
|
+
|
129
|
+
DescribeAlarmHistoryOutput.add_member(:alarm_history_items, Shapes::ShapeRef.new(shape: AlarmHistoryItems, location_name: "AlarmHistoryItems"))
|
130
|
+
DescribeAlarmHistoryOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
131
|
+
DescribeAlarmHistoryOutput.struct_class = Types::DescribeAlarmHistoryOutput
|
132
|
+
|
133
|
+
DescribeAlarmsForMetricInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
|
134
|
+
DescribeAlarmsForMetricInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
|
135
|
+
DescribeAlarmsForMetricInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
|
136
|
+
DescribeAlarmsForMetricInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
|
137
|
+
DescribeAlarmsForMetricInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
138
|
+
DescribeAlarmsForMetricInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
|
139
|
+
DescribeAlarmsForMetricInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
|
140
|
+
DescribeAlarmsForMetricInput.struct_class = Types::DescribeAlarmsForMetricInput
|
141
|
+
|
142
|
+
DescribeAlarmsForMetricOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms"))
|
143
|
+
DescribeAlarmsForMetricOutput.struct_class = Types::DescribeAlarmsForMetricOutput
|
144
|
+
|
145
|
+
DescribeAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, location_name: "AlarmNames"))
|
146
|
+
DescribeAlarmsInput.add_member(:alarm_name_prefix, Shapes::ShapeRef.new(shape: AlarmNamePrefix, location_name: "AlarmNamePrefix"))
|
147
|
+
DescribeAlarmsInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
|
148
|
+
DescribeAlarmsInput.add_member(:action_prefix, Shapes::ShapeRef.new(shape: ActionPrefix, location_name: "ActionPrefix"))
|
149
|
+
DescribeAlarmsInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
|
150
|
+
DescribeAlarmsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
151
|
+
DescribeAlarmsInput.struct_class = Types::DescribeAlarmsInput
|
152
|
+
|
153
|
+
DescribeAlarmsOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms"))
|
154
|
+
DescribeAlarmsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
155
|
+
DescribeAlarmsOutput.struct_class = Types::DescribeAlarmsOutput
|
156
|
+
|
157
|
+
Dimension.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name"))
|
158
|
+
Dimension.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, required: true, location_name: "Value"))
|
159
|
+
Dimension.struct_class = Types::Dimension
|
160
|
+
|
161
|
+
DimensionFilter.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name"))
|
162
|
+
DimensionFilter.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, location_name: "Value"))
|
163
|
+
DimensionFilter.struct_class = Types::DimensionFilter
|
164
|
+
|
165
|
+
DimensionFilters.member = Shapes::ShapeRef.new(shape: DimensionFilter)
|
166
|
+
|
167
|
+
Dimensions.member = Shapes::ShapeRef.new(shape: Dimension)
|
168
|
+
|
169
|
+
DisableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
|
170
|
+
DisableAlarmActionsInput.struct_class = Types::DisableAlarmActionsInput
|
171
|
+
|
172
|
+
EnableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
|
173
|
+
EnableAlarmActionsInput.struct_class = Types::EnableAlarmActionsInput
|
174
|
+
|
175
|
+
ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic)
|
176
|
+
|
177
|
+
GetMetricStatisticsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
|
178
|
+
GetMetricStatisticsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
|
179
|
+
GetMetricStatisticsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
180
|
+
GetMetricStatisticsInput.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
|
181
|
+
GetMetricStatisticsInput.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
|
182
|
+
GetMetricStatisticsInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
|
183
|
+
GetMetricStatisticsInput.add_member(:statistics, Shapes::ShapeRef.new(shape: Statistics, location_name: "Statistics"))
|
184
|
+
GetMetricStatisticsInput.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: ExtendedStatistics, location_name: "ExtendedStatistics"))
|
185
|
+
GetMetricStatisticsInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
|
186
|
+
GetMetricStatisticsInput.struct_class = Types::GetMetricStatisticsInput
|
187
|
+
|
188
|
+
GetMetricStatisticsOutput.add_member(:label, Shapes::ShapeRef.new(shape: MetricLabel, location_name: "Label"))
|
189
|
+
GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints"))
|
190
|
+
GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput
|
191
|
+
|
192
|
+
ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
|
193
|
+
ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
|
194
|
+
ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
|
195
|
+
ListMetricsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
196
|
+
ListMetricsInput.struct_class = Types::ListMetricsInput
|
197
|
+
|
198
|
+
ListMetricsOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
|
199
|
+
ListMetricsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
200
|
+
ListMetricsOutput.struct_class = Types::ListMetricsOutput
|
201
|
+
|
202
|
+
Metric.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
|
203
|
+
Metric.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
|
204
|
+
Metric.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
205
|
+
Metric.struct_class = Types::Metric
|
206
|
+
|
207
|
+
MetricAlarm.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
|
208
|
+
MetricAlarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "AlarmArn"))
|
209
|
+
MetricAlarm.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
|
210
|
+
MetricAlarm.add_member(:alarm_configuration_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AlarmConfigurationUpdatedTimestamp"))
|
211
|
+
MetricAlarm.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
|
212
|
+
MetricAlarm.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
|
213
|
+
MetricAlarm.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
|
214
|
+
MetricAlarm.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
|
215
|
+
MetricAlarm.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
|
216
|
+
MetricAlarm.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
|
217
|
+
MetricAlarm.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
|
218
|
+
MetricAlarm.add_member(:state_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateUpdatedTimestamp"))
|
219
|
+
MetricAlarm.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
|
220
|
+
MetricAlarm.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
|
221
|
+
MetricAlarm.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
|
222
|
+
MetricAlarm.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
|
223
|
+
MetricAlarm.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
224
|
+
MetricAlarm.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
|
225
|
+
MetricAlarm.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
|
226
|
+
MetricAlarm.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, location_name: "EvaluationPeriods"))
|
227
|
+
MetricAlarm.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, location_name: "Threshold"))
|
228
|
+
MetricAlarm.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, location_name: "ComparisonOperator"))
|
229
|
+
MetricAlarm.struct_class = Types::MetricAlarm
|
230
|
+
|
231
|
+
MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm)
|
232
|
+
|
233
|
+
MetricData.member = Shapes::ShapeRef.new(shape: MetricDatum)
|
234
|
+
|
235
|
+
MetricDatum.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
|
236
|
+
MetricDatum.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
237
|
+
MetricDatum.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
238
|
+
MetricDatum.add_member(:value, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Value"))
|
239
|
+
MetricDatum.add_member(:statistic_values, Shapes::ShapeRef.new(shape: StatisticSet, location_name: "StatisticValues"))
|
240
|
+
MetricDatum.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
|
241
|
+
MetricDatum.struct_class = Types::MetricDatum
|
242
|
+
|
243
|
+
Metrics.member = Shapes::ShapeRef.new(shape: Metric)
|
244
|
+
|
245
|
+
PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
|
246
|
+
PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
|
247
|
+
PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
|
248
|
+
PutMetricAlarmInput.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
|
249
|
+
PutMetricAlarmInput.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
|
250
|
+
PutMetricAlarmInput.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
|
251
|
+
PutMetricAlarmInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
|
252
|
+
PutMetricAlarmInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
|
253
|
+
PutMetricAlarmInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
|
254
|
+
PutMetricAlarmInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
|
255
|
+
PutMetricAlarmInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
256
|
+
PutMetricAlarmInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
|
257
|
+
PutMetricAlarmInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
|
258
|
+
PutMetricAlarmInput.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, required: true, location_name: "EvaluationPeriods"))
|
259
|
+
PutMetricAlarmInput.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, required: true, location_name: "Threshold"))
|
260
|
+
PutMetricAlarmInput.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
|
261
|
+
PutMetricAlarmInput.struct_class = Types::PutMetricAlarmInput
|
262
|
+
|
263
|
+
PutMetricDataInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
|
264
|
+
PutMetricDataInput.add_member(:metric_data, Shapes::ShapeRef.new(shape: MetricData, required: true, location_name: "MetricData"))
|
265
|
+
PutMetricDataInput.struct_class = Types::PutMetricDataInput
|
266
|
+
|
267
|
+
ResourceList.member = Shapes::ShapeRef.new(shape: ResourceName)
|
268
|
+
|
269
|
+
SetAlarmStateInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
|
270
|
+
SetAlarmStateInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, required: true, location_name: "StateValue"))
|
271
|
+
SetAlarmStateInput.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, required: true, location_name: "StateReason"))
|
272
|
+
SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
|
273
|
+
SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
|
274
|
+
|
275
|
+
StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "SampleCount"))
|
276
|
+
StatisticSet.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Sum"))
|
277
|
+
StatisticSet.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Minimum"))
|
278
|
+
StatisticSet.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Maximum"))
|
279
|
+
StatisticSet.struct_class = Types::StatisticSet
|
280
|
+
|
281
|
+
Statistics.member = Shapes::ShapeRef.new(shape: Statistic)
|
282
|
+
|
283
|
+
|
284
|
+
# @api private
|
285
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
286
|
+
|
287
|
+
api.version = "2010-08-01"
|
288
|
+
|
289
|
+
api.metadata = {
|
290
|
+
"endpointPrefix" => "monitoring",
|
291
|
+
"protocol" => "query",
|
292
|
+
"serviceFullName" => "Amazon CloudWatch",
|
293
|
+
"signatureVersion" => "v4",
|
294
|
+
"xmlNamespace" => "http://monitoring.amazonaws.com/doc/2010-08-01/",
|
295
|
+
}
|
296
|
+
|
297
|
+
api.add_operation(:delete_alarms, Seahorse::Model::Operation.new.tap do |o|
|
298
|
+
o.name = "DeleteAlarms"
|
299
|
+
o.http_method = "POST"
|
300
|
+
o.http_request_uri = "/"
|
301
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteAlarmsInput)
|
302
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
303
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
|
304
|
+
end)
|
305
|
+
|
306
|
+
api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
|
307
|
+
o.name = "DescribeAlarmHistory"
|
308
|
+
o.http_method = "POST"
|
309
|
+
o.http_request_uri = "/"
|
310
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryInput)
|
311
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryOutput)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
313
|
+
o[:pager] = Aws::Pager.new(
|
314
|
+
limit_key: "max_records",
|
315
|
+
tokens: {
|
316
|
+
"next_token" => "next_token"
|
317
|
+
}
|
318
|
+
)
|
319
|
+
end)
|
320
|
+
|
321
|
+
api.add_operation(:describe_alarms, Seahorse::Model::Operation.new.tap do |o|
|
322
|
+
o.name = "DescribeAlarms"
|
323
|
+
o.http_method = "POST"
|
324
|
+
o.http_request_uri = "/"
|
325
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsInput)
|
326
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsOutput)
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
328
|
+
o[:pager] = Aws::Pager.new(
|
329
|
+
limit_key: "max_records",
|
330
|
+
tokens: {
|
331
|
+
"next_token" => "next_token"
|
332
|
+
}
|
333
|
+
)
|
334
|
+
end)
|
335
|
+
|
336
|
+
api.add_operation(:describe_alarms_for_metric, Seahorse::Model::Operation.new.tap do |o|
|
337
|
+
o.name = "DescribeAlarmsForMetric"
|
338
|
+
o.http_method = "POST"
|
339
|
+
o.http_request_uri = "/"
|
340
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricInput)
|
341
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricOutput)
|
342
|
+
end)
|
343
|
+
|
344
|
+
api.add_operation(:disable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
|
345
|
+
o.name = "DisableAlarmActions"
|
346
|
+
o.http_method = "POST"
|
347
|
+
o.http_request_uri = "/"
|
348
|
+
o.input = Shapes::ShapeRef.new(shape: DisableAlarmActionsInput)
|
349
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
350
|
+
end)
|
351
|
+
|
352
|
+
api.add_operation(:enable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
|
353
|
+
o.name = "EnableAlarmActions"
|
354
|
+
o.http_method = "POST"
|
355
|
+
o.http_request_uri = "/"
|
356
|
+
o.input = Shapes::ShapeRef.new(shape: EnableAlarmActionsInput)
|
357
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
358
|
+
end)
|
359
|
+
|
360
|
+
api.add_operation(:get_metric_statistics, Seahorse::Model::Operation.new.tap do |o|
|
361
|
+
o.name = "GetMetricStatistics"
|
362
|
+
o.http_method = "POST"
|
363
|
+
o.http_request_uri = "/"
|
364
|
+
o.input = Shapes::ShapeRef.new(shape: GetMetricStatisticsInput)
|
365
|
+
o.output = Shapes::ShapeRef.new(shape: GetMetricStatisticsOutput)
|
366
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
367
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
368
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
370
|
+
end)
|
371
|
+
|
372
|
+
api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
|
373
|
+
o.name = "ListMetrics"
|
374
|
+
o.http_method = "POST"
|
375
|
+
o.http_request_uri = "/"
|
376
|
+
o.input = Shapes::ShapeRef.new(shape: ListMetricsInput)
|
377
|
+
o.output = Shapes::ShapeRef.new(shape: ListMetricsOutput)
|
378
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
379
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
380
|
+
o[:pager] = Aws::Pager.new(
|
381
|
+
tokens: {
|
382
|
+
"next_token" => "next_token"
|
383
|
+
}
|
384
|
+
)
|
385
|
+
end)
|
386
|
+
|
387
|
+
api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
|
388
|
+
o.name = "PutMetricAlarm"
|
389
|
+
o.http_method = "POST"
|
390
|
+
o.http_request_uri = "/"
|
391
|
+
o.input = Shapes::ShapeRef.new(shape: PutMetricAlarmInput)
|
392
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
393
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
|
394
|
+
end)
|
395
|
+
|
396
|
+
api.add_operation(:put_metric_data, Seahorse::Model::Operation.new.tap do |o|
|
397
|
+
o.name = "PutMetricData"
|
398
|
+
o.http_method = "POST"
|
399
|
+
o.http_request_uri = "/"
|
400
|
+
o.input = Shapes::ShapeRef.new(shape: PutMetricDataInput)
|
401
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
402
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
403
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
404
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
405
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
406
|
+
end)
|
407
|
+
|
408
|
+
api.add_operation(:set_alarm_state, Seahorse::Model::Operation.new.tap do |o|
|
409
|
+
o.name = "SetAlarmState"
|
410
|
+
o.http_method = "POST"
|
411
|
+
o.http_request_uri = "/"
|
412
|
+
o.input = Shapes::ShapeRef.new(shape: SetAlarmStateInput)
|
413
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
414
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
|
415
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault)
|
416
|
+
end)
|
417
|
+
end
|
418
|
+
|
419
|
+
end
|
420
|
+
end
|
421
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module CloudWatch
|
10
|
+
module Errors
|
11
|
+
|
12
|
+
extend Aws::Errors::DynamicErrors
|
13
|
+
|
14
|
+
# Raised when calling #load or #data on a resource class that can not be
|
15
|
+
# loaded. This can happen when:
|
16
|
+
#
|
17
|
+
# * A resource class has identifiers, but no data attributes.
|
18
|
+
# * Resource data is only available when making an API call that
|
19
|
+
# enumerates all resources of that type.
|
20
|
+
class ResourceNotLoadable < RuntimeError; end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|