amazonka-cloudwatch 1.4.3 → 1.4.4
raw patch · 14 files changed
+62/−37 lines, 14 filesdep ~amazonka-cloudwatchdep ~amazonka-coredep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-cloudwatch, amazonka-core, amazonka-test
API changes (from Hackage documentation)
Files
- README.md +1/−1
- amazonka-cloudwatch.cabal +6/−6
- gen/Network/AWS/CloudWatch/DeleteAlarms.hs +3/−1
- gen/Network/AWS/CloudWatch/DescribeAlarmHistory.hs +4/−2
- gen/Network/AWS/CloudWatch/DescribeAlarms.hs +4/−2
- gen/Network/AWS/CloudWatch/DescribeAlarmsForMetric.hs +4/−2
- gen/Network/AWS/CloudWatch/EnableAlarmActions.hs +3/−1
- gen/Network/AWS/CloudWatch/GetMetricStatistics.hs +9/−5
- gen/Network/AWS/CloudWatch/ListMetrics.hs +5/−3
- gen/Network/AWS/CloudWatch/PutMetricAlarm.hs +10/−5
- gen/Network/AWS/CloudWatch/PutMetricData.hs +4/−2
- gen/Network/AWS/CloudWatch/SetAlarmState.hs +4/−2
- gen/Network/AWS/CloudWatch/Types/Sum.hs +5/−5
- src/.gitkeep +0/−0
README.md view
@@ -8,7 +8,7 @@ ## Version -`1.4.3`+`1.4.4` ## Description
amazonka-cloudwatch.cabal view
@@ -1,5 +1,5 @@ name: amazonka-cloudwatch-version: 1.4.3+version: 1.4.4 synopsis: Amazon CloudWatch SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -11,7 +11,7 @@ category: Network, AWS, Cloud, Distributed Computing build-type: Simple cabal-version: >= 1.10-extra-source-files: README.md fixture/*.yaml fixture/*.proto+extra-source-files: README.md fixture/*.yaml fixture/*.proto src/.gitkeep description: Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are the variables you want to measure for your resources and applications. @@ -64,7 +64,7 @@ , Network.AWS.CloudWatch.Types.Sum build-depends:- amazonka-core == 1.4.3.*+ amazonka-core == 1.4.4.* , base >= 4.7 && < 5 test-suite amazonka-cloudwatch-test@@ -84,9 +84,9 @@ , Test.AWS.CloudWatch.Internal build-depends:- amazonka-core == 1.4.3.*- , amazonka-test == 1.4.3.*- , amazonka-cloudwatch == 1.4.3.*+ amazonka-core == 1.4.4.*+ , amazonka-test == 1.4.4.*+ , amazonka-cloudwatch == 1.4.4.* , base , bytestring , tasty
gen/Network/AWS/CloudWatch/DeleteAlarms.hs view
@@ -39,7 +39,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'deleteAlarms' smart constructor.+-- | Describes the inputs for DeleteAlarms.+--+-- /See:/ 'deleteAlarms' smart constructor. newtype DeleteAlarms = DeleteAlarms' { _dAlarmNames :: [Text] } deriving (Eq,Read,Show,Data,Typeable,Generic)
gen/Network/AWS/CloudWatch/DescribeAlarmHistory.hs view
@@ -53,7 +53,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'describeAlarmHistory' smart constructor.+-- | Describes the inputs for DescribeAlarmHistory.+--+-- /See:/ 'describeAlarmHistory' smart constructor. data DescribeAlarmHistory = DescribeAlarmHistory' { _dahAlarmName :: !(Maybe Text) , _dahHistoryItemType :: !(Maybe HistoryItemType)@@ -156,7 +158,7 @@ "NextToken" =: _dahNextToken, "MaxRecords" =: _dahMaxRecords] --- | The output for the < DescribeAlarmHistory> action.+-- | The output for < DescribeAlarmHistory>. -- -- /See:/ 'describeAlarmHistoryResponse' smart constructor. data DescribeAlarmHistoryResponse = DescribeAlarmHistoryResponse'
gen/Network/AWS/CloudWatch/DescribeAlarms.hs view
@@ -51,7 +51,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'describeAlarms' smart constructor.+-- | Describes the inputs for DescribeAlarms.+--+-- /See:/ 'describeAlarms' smart constructor. data DescribeAlarms = DescribeAlarms' { _daAlarmNamePrefix :: !(Maybe Text) , _daActionPrefix :: !(Maybe Text)@@ -154,7 +156,7 @@ toQuery (toQueryList "member" <$> _daAlarmNames), "MaxRecords" =: _daMaxRecords] --- | The output for the < DescribeAlarms> action.+-- | The output for < DescribeAlarms>. -- -- /See:/ 'describeAlarmsResponse' smart constructor. data DescribeAlarmsResponse = DescribeAlarmsResponse'
gen/Network/AWS/CloudWatch/DescribeAlarmsForMetric.hs view
@@ -47,7 +47,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'describeAlarmsForMetric' smart constructor.+-- | Describes the inputs for DescribeAlarmsForMetric.+--+-- /See:/ 'describeAlarmsForMetric' smart constructor. data DescribeAlarmsForMetric = DescribeAlarmsForMetric' { _dafmPeriod :: !(Maybe Nat) , _dafmDimensions :: !(Maybe [Dimension])@@ -145,7 +147,7 @@ "MetricName" =: _dafmMetricName, "Namespace" =: _dafmNamespace] --- | The output for the < DescribeAlarmsForMetric> action.+-- | The output for < DescribeAlarmsForMetric>. -- -- /See:/ 'describeAlarmsForMetricResponse' smart constructor. data DescribeAlarmsForMetricResponse = DescribeAlarmsForMetricResponse'
gen/Network/AWS/CloudWatch/EnableAlarmActions.hs view
@@ -39,7 +39,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'enableAlarmActions' smart constructor.+-- | Describes the inputs for EnableAlarmActions.+--+-- /See:/ 'enableAlarmActions' smart constructor. newtype EnableAlarmActions = EnableAlarmActions' { _eaaAlarmNames :: [Text] } deriving (Eq,Read,Show,Data,Typeable,Generic)
gen/Network/AWS/CloudWatch/GetMetricStatistics.hs view
@@ -20,14 +20,16 @@ -- -- Gets statistics for the specified metric. ----- The maximum number of data points that can be queried is 50,850, whereas the maximum number of data points returned from a single 'GetMetricStatistics' request is 1,440. If you make a request that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, you can alter the request by narrowing the specified time range or increasing the specified period. Alternatively, you can make multiple requests across adjacent time ranges. 'GetMetricStatistics' does not return the data in chronological order.+-- The maximum number of data points that can be queried is 50,850, whereas the maximum number of data points returned from a single 'GetMetricStatistics' request is 1,440. If you make a request that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, you can alter the request by narrowing the specified time range or increasing the specified period. A period can be as short as one minute (60 seconds) or as long as one day (86,400 seconds). Alternatively, you can make multiple requests across adjacent time ranges. 'GetMetricStatistics' does not return the data in chronological order. -- -- Amazon CloudWatch aggregates data points based on the length of the 'period' that you specify. For example, if you request statistics with a one-minute granularity, Amazon CloudWatch aggregates data points with time stamps that fall within the same one-minute period. In such a case, the data points queried can greatly outnumber the data points returned. -- -- The following examples show various statistics allowed by the data point query maximum of 50,850 when you call 'GetMetricStatistics' on Amazon EC2 instances with detailed (one-minute) monitoring enabled: -- -- - Statistics for up to 400 instances for a span of one hour+-- -- - Statistics for up to 35 instances over a span of 24 hours+-- -- - Statistics for up to 2 instances over a span of 2 weeks -- -- For information about the namespace, metric names, and dimensions that other Amazon Web Services products use to send metrics to CloudWatch, go to <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference> in the /Amazon CloudWatch Developer Guide/.@@ -62,7 +64,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'getMetricStatistics' smart constructor.+-- | Describes the inputs for GetMetricStatistics.+--+-- /See:/ 'getMetricStatistics' smart constructor. data GetMetricStatistics = GetMetricStatistics' { _gmsDimensions :: !(Maybe [Dimension]) , _gmsUnit :: !(Maybe StandardUnit)@@ -117,7 +121,7 @@ gmsDimensions :: Lens' GetMetricStatistics [Dimension] gmsDimensions = lens _gmsDimensions (\ s a -> s{_gmsDimensions = a}) . _Default . _Coerce; --- | The unit for the metric.+-- | The specific unit for a given metric. Metrics may be reported in multiple units. Not supplying a unit results in all units being returned. If the metric only ever reports one unit, specifying a unit will have no effect. gmsUnit :: Lens' GetMetricStatistics (Maybe StandardUnit) gmsUnit = lens _gmsUnit (\ s a -> s{_gmsUnit = a}); @@ -141,7 +145,7 @@ gmsEndTime :: Lens' GetMetricStatistics UTCTime gmsEndTime = lens _gmsEndTime (\ s a -> s{_gmsEndTime = a}) . _Time; --- | The granularity, in seconds, of the returned datapoints. 'Period' must be at least 60 seconds and must be a multiple of 60. The default value is 60.+-- | The granularity, in seconds, of the returned datapoints. A 'Period' can be as short as one minute (60 seconds) or as long as one day (86,400 seconds), and must be a multiple of 60. The default value is 60. gmsPeriod :: Lens' GetMetricStatistics Natural gmsPeriod = lens _gmsPeriod (\ s a -> s{_gmsPeriod = a}) . _Nat; @@ -185,7 +189,7 @@ "EndTime" =: _gmsEndTime, "Period" =: _gmsPeriod, "Statistics" =: toQueryList "member" _gmsStatistics] --- | The output for the < GetMetricStatistics> action.+-- | The output for < GetMetricStatistics>. -- -- /See:/ 'getMetricStatisticsResponse' smart constructor. data GetMetricStatisticsResponse = GetMetricStatisticsResponse'
gen/Network/AWS/CloudWatch/ListMetrics.hs view
@@ -22,7 +22,7 @@ -- -- Up to 500 results are returned for any one call. To retrieve further results, use returned 'NextToken' values with subsequent 'ListMetrics' operations. ----- If you create a metric with the < PutMetricData> action, allow up to fifteen minutes for the metric to appear in calls to the 'ListMetrics' action. Statistics about the metric, however, are available sooner using < GetMetricStatistics>.+-- If you create a metric with < PutMetricData>, allow up to fifteen minutes for the metric to appear in calls to 'ListMetrics'. Statistics about the metric, however, are available sooner using < GetMetricStatistics>. -- -- This operation returns paginated results. module Network.AWS.CloudWatch.ListMetrics@@ -53,7 +53,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'listMetrics' smart constructor.+-- | Describes the inputs for ListMetrics.+--+-- /See:/ 'listMetrics' smart constructor. data ListMetrics = ListMetrics' { _lmMetricName :: !(Maybe Text) , _lmNamespace :: !(Maybe Text)@@ -138,7 +140,7 @@ "Dimensions" =: toQuery (toQueryList "member" <$> _lmDimensions)] --- | The output for the < ListMetrics> action.+-- | The output for < ListMetrics>. -- -- /See:/ 'listMetricsResponse' smart constructor. data ListMetricsResponse = ListMetricsResponse'
gen/Network/AWS/CloudWatch/PutMetricAlarm.hs view
@@ -18,20 +18,23 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.+-- Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon SNS resources with the alarm. ----- When this operation creates an alarm, the alarm state is immediately set to 'INSUFFICIENT_DATA'. The alarm is evaluated and its 'StateValue' is set appropriately. Any actions associated with the 'StateValue' is then executed.+-- When this operation creates an alarm, the alarm state is immediately set to 'INSUFFICIENT_DATA'. The alarm is evaluated and its 'StateValue' is set appropriately. Any actions associated with the 'StateValue' are then executed. ----- When updating an existing alarm, its 'StateValue' is left unchanged.+-- When updating an existing alarm, its 'StateValue' is left unchanged, but it completely overwrites the alarm\'s previous configuration. -- -- If you are using an AWS Identity and Access Management (IAM) account to create or modify an alarm, you must have the following Amazon EC2 permissions: -- -- - 'ec2:DescribeInstanceStatus' and 'ec2:DescribeInstances' for all alarms on Amazon EC2 instance status metrics.+-- -- - 'ec2:StopInstances' for alarms with stop actions.+-- -- - 'ec2:TerminateInstances' for alarms with terminate actions.+-- -- - 'ec2:DescribeInstanceRecoveryAttribute', and 'ec2:RecoverInstances' for alarms with recover actions. ----- If you have read\/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm but the stop or terminate actions won\'t be performed on the Amazon EC2 instance. However, if you are later granted permission to use the associated Amazon EC2 APIs, the alarm actions you created earlier will be performed. For more information about IAM permissions, see <http://docs.aws.amazon.com//IAM/latest/UserGuide/PermissionsAndPolicies.html Permissions and Policies> in /Using IAM/.+-- If you have read\/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm but the stop or terminate actions won\'t be performed on the Amazon EC2 instance. However, if you are later granted permission to use the associated Amazon EC2 APIs, the alarm actions you created earlier will be performed. For more information about IAM permissions, see <http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html Permissions and Policies> in /Using IAM/. -- -- If you are using an IAM role (e.g., an Amazon EC2 instance profile), you cannot stop or terminate the instance using alarm actions. However, you can still see the alarm state and perform any other actions such as Amazon SNS notifications or Auto Scaling policies. --@@ -70,7 +73,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'putMetricAlarm' smart constructor.+-- | Describes the inputs for PutMetricAlarm.+--+-- /See:/ 'putMetricAlarm' smart constructor. data PutMetricAlarm = PutMetricAlarm' { _pmaAlarmDescription :: !(Maybe Text) , _pmaOKActions :: !(Maybe [Text])
gen/Network/AWS/CloudWatch/PutMetricData.hs view
@@ -18,7 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to the < ListMetrics> action.+-- Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to < ListMetrics>. -- -- Each 'PutMetricData' request is limited to 8 KB in size for HTTP GET requests and is limited to 40 KB in size for HTTP POST requests. --@@ -46,7 +46,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'putMetricData' smart constructor.+-- | Describes the inputs for PutMetricData.+--+-- /See:/ 'putMetricData' smart constructor. data PutMetricData = PutMetricData' { _pmdNamespace :: !Text , _pmdMetricData :: ![MetricDatum]
gen/Network/AWS/CloudWatch/SetAlarmState.hs view
@@ -18,7 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Temporarily sets the state of an alarm. When the updated 'StateValue' differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm\'s state to __ALARM__ will send an Amazon SNS message. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual state. Because the alarm state change happens very quickly, it is typically only visibile in the alarm\'s __History__ tab in the Amazon CloudWatch console or through 'DescribeAlarmHistory'.+-- Temporarily sets the state of an alarm for testing purposes. When the updated 'StateValue' differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm\'s state to __ALARM__ sends an Amazon SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens very quickly, it is typically only visible in the alarm\'s __History__ tab in the Amazon CloudWatch console or through 'DescribeAlarmHistory'. module Network.AWS.CloudWatch.SetAlarmState ( -- * Creating a Request@@ -42,7 +42,9 @@ import Network.AWS.Request import Network.AWS.Response --- | /See:/ 'setAlarmState' smart constructor.+-- | Describes the inputs for SetAlarmState.+--+-- /See:/ 'setAlarmState' smart constructor. data SetAlarmState = SetAlarmState' { _sasStateReasonData :: !(Maybe Text) , _sasAlarmName :: !Text
gen/Network/AWS/CloudWatch/Types/Sum.hs view
@@ -33,7 +33,7 @@ "lessthanorequaltothreshold" -> pure LessThanOrEqualToThreshold "lessthanthreshold" -> pure LessThanThreshold e -> fromTextError $ "Failure parsing ComparisonOperator from value: '" <> e- <> "'. Accepted values: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanOrEqualToThreshold, LessThanThreshold"+ <> "'. Accepted values: greaterthanorequaltothreshold, greaterthanthreshold, lessthanorequaltothreshold, lessthanthreshold" instance ToText ComparisonOperator where toText = \case@@ -63,7 +63,7 @@ "configurationupdate" -> pure ConfigurationUpdate "stateupdate" -> pure StateUpdate e -> fromTextError $ "Failure parsing HistoryItemType from value: '" <> e- <> "'. Accepted values: Action, ConfigurationUpdate, StateUpdate"+ <> "'. Accepted values: action, configurationupdate, stateupdate" instance ToText HistoryItemType where toText = \case@@ -140,7 +140,7 @@ "terabytes" -> pure Terabytes "terabytes/second" -> pure TerabytesSecond e -> fromTextError $ "Failure parsing StandardUnit from value: '" <> e- <> "'. Accepted values: Bits, Bits/Second, Bytes, Bytes/Second, Count, Count/Second, Gigabits, Gigabits/Second, Gigabytes, Gigabytes/Second, Kilobits, Kilobits/Second, Kilobytes, Kilobytes/Second, Megabits, Megabits/Second, Megabytes, Megabytes/Second, Microseconds, Milliseconds, None, Percent, Seconds, Terabits, Terabits/Second, Terabytes, Terabytes/Second"+ <> "'. Accepted values: bits, bits/second, bytes, bytes/second, count, count/second, gigabits, gigabits/second, gigabytes, gigabytes/second, kilobits, kilobits/second, kilobytes, kilobytes/second, megabits, megabits/second, megabytes, megabytes/second, microseconds, milliseconds, none, percent, seconds, terabits, terabits/second, terabytes, terabytes/second" instance ToText StandardUnit where toText = \case@@ -193,7 +193,7 @@ "insufficient_data" -> pure InsufficientData "ok" -> pure OK e -> fromTextError $ "Failure parsing StateValue from value: '" <> e- <> "'. Accepted values: ALARM, INSUFFICIENT_DATA, OK"+ <> "'. Accepted values: alarm, insufficient_data, ok" instance ToText StateValue where toText = \case@@ -226,7 +226,7 @@ "samplecount" -> pure SampleCount "sum" -> pure Sum e -> fromTextError $ "Failure parsing Statistic from value: '" <> e- <> "'. Accepted values: Average, Maximum, Minimum, SampleCount, Sum"+ <> "'. Accepted values: average, maximum, minimum, samplecount, sum" instance ToText Statistic where toText = \case
+ src/.gitkeep view