AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
MetricAlarm.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
12#include <aws/monitoring/model/ComparisonOperator.h>
13#include <aws/monitoring/model/Dimension.h>
14#include <aws/monitoring/model/EvaluationCriteria.h>
15#include <aws/monitoring/model/EvaluationState.h>
16#include <aws/monitoring/model/EvaluationWindow.h>
17#include <aws/monitoring/model/MetricDataQuery.h>
18#include <aws/monitoring/model/StandardUnit.h>
19#include <aws/monitoring/model/StateValue.h>
20#include <aws/monitoring/model/Statistic.h>
21#include <aws/monitoring/model/WarmUpConfiguration.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Cbor {
28class CborValue;
29} // namespace Cbor
30} // namespace Utils
31namespace CloudWatch {
32namespace Model {
33
40 public:
41 AWS_CLOUDWATCH_API MetricAlarm() = default;
42 AWS_CLOUDWATCH_API MetricAlarm(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_CLOUDWATCH_API MetricAlarm& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
44 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
45
47
50 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
51 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
52 template <typename AlarmNameT = Aws::String>
53 void SetAlarmName(AlarmNameT&& value) {
54 m_alarmNameHasBeenSet = true;
55 m_alarmName = std::forward<AlarmNameT>(value);
56 }
57 template <typename AlarmNameT = Aws::String>
58 MetricAlarm& WithAlarmName(AlarmNameT&& value) {
59 SetAlarmName(std::forward<AlarmNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetAlarmArn() const { return m_alarmArn; }
69 inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
70 template <typename AlarmArnT = Aws::String>
71 void SetAlarmArn(AlarmArnT&& value) {
72 m_alarmArnHasBeenSet = true;
73 m_alarmArn = std::forward<AlarmArnT>(value);
74 }
75 template <typename AlarmArnT = Aws::String>
76 MetricAlarm& WithAlarmArn(AlarmArnT&& value) {
77 SetAlarmArn(std::forward<AlarmArnT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetAlarmDescription() const { return m_alarmDescription; }
87 inline bool AlarmDescriptionHasBeenSet() const { return m_alarmDescriptionHasBeenSet; }
88 template <typename AlarmDescriptionT = Aws::String>
89 void SetAlarmDescription(AlarmDescriptionT&& value) {
90 m_alarmDescriptionHasBeenSet = true;
91 m_alarmDescription = std::forward<AlarmDescriptionT>(value);
92 }
93 template <typename AlarmDescriptionT = Aws::String>
94 MetricAlarm& WithAlarmDescription(AlarmDescriptionT&& value) {
95 SetAlarmDescription(std::forward<AlarmDescriptionT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetAlarmConfigurationUpdatedTimestamp() const { return m_alarmConfigurationUpdatedTimestamp; }
105 inline bool AlarmConfigurationUpdatedTimestampHasBeenSet() const { return m_alarmConfigurationUpdatedTimestampHasBeenSet; }
106 template <typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
107 void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) {
108 m_alarmConfigurationUpdatedTimestampHasBeenSet = true;
109 m_alarmConfigurationUpdatedTimestamp = std::forward<AlarmConfigurationUpdatedTimestampT>(value);
110 }
111 template <typename AlarmConfigurationUpdatedTimestampT = Aws::Utils::DateTime>
112 MetricAlarm& WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT&& value) {
113 SetAlarmConfigurationUpdatedTimestamp(std::forward<AlarmConfigurationUpdatedTimestampT>(value));
114 return *this;
115 }
117
119
123 inline bool GetActionsEnabled() const { return m_actionsEnabled; }
124 inline bool ActionsEnabledHasBeenSet() const { return m_actionsEnabledHasBeenSet; }
125 inline void SetActionsEnabled(bool value) {
126 m_actionsEnabledHasBeenSet = true;
127 m_actionsEnabled = value;
128 }
129 inline MetricAlarm& WithActionsEnabled(bool value) {
130 SetActionsEnabled(value);
131 return *this;
132 }
134
136
141 inline const Aws::Vector<Aws::String>& GetOKActions() const { return m_oKActions; }
142 inline bool OKActionsHasBeenSet() const { return m_oKActionsHasBeenSet; }
143 template <typename OKActionsT = Aws::Vector<Aws::String>>
144 void SetOKActions(OKActionsT&& value) {
145 m_oKActionsHasBeenSet = true;
146 m_oKActions = std::forward<OKActionsT>(value);
147 }
148 template <typename OKActionsT = Aws::Vector<Aws::String>>
149 MetricAlarm& WithOKActions(OKActionsT&& value) {
150 SetOKActions(std::forward<OKActionsT>(value));
151 return *this;
152 }
153 template <typename OKActionsT = Aws::String>
154 MetricAlarm& AddOKActions(OKActionsT&& value) {
155 m_oKActionsHasBeenSet = true;
156 m_oKActions.emplace_back(std::forward<OKActionsT>(value));
157 return *this;
158 }
160
162
167 inline const Aws::Vector<Aws::String>& GetAlarmActions() const { return m_alarmActions; }
168 inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; }
169 template <typename AlarmActionsT = Aws::Vector<Aws::String>>
170 void SetAlarmActions(AlarmActionsT&& value) {
171 m_alarmActionsHasBeenSet = true;
172 m_alarmActions = std::forward<AlarmActionsT>(value);
173 }
174 template <typename AlarmActionsT = Aws::Vector<Aws::String>>
175 MetricAlarm& WithAlarmActions(AlarmActionsT&& value) {
176 SetAlarmActions(std::forward<AlarmActionsT>(value));
177 return *this;
178 }
179 template <typename AlarmActionsT = Aws::String>
180 MetricAlarm& AddAlarmActions(AlarmActionsT&& value) {
181 m_alarmActionsHasBeenSet = true;
182 m_alarmActions.emplace_back(std::forward<AlarmActionsT>(value));
183 return *this;
184 }
186
188
193 inline const Aws::Vector<Aws::String>& GetInsufficientDataActions() const { return m_insufficientDataActions; }
194 inline bool InsufficientDataActionsHasBeenSet() const { return m_insufficientDataActionsHasBeenSet; }
195 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
196 void SetInsufficientDataActions(InsufficientDataActionsT&& value) {
197 m_insufficientDataActionsHasBeenSet = true;
198 m_insufficientDataActions = std::forward<InsufficientDataActionsT>(value);
199 }
200 template <typename InsufficientDataActionsT = Aws::Vector<Aws::String>>
201 MetricAlarm& WithInsufficientDataActions(InsufficientDataActionsT&& value) {
202 SetInsufficientDataActions(std::forward<InsufficientDataActionsT>(value));
203 return *this;
204 }
205 template <typename InsufficientDataActionsT = Aws::String>
206 MetricAlarm& AddInsufficientDataActions(InsufficientDataActionsT&& value) {
207 m_insufficientDataActionsHasBeenSet = true;
208 m_insufficientDataActions.emplace_back(std::forward<InsufficientDataActionsT>(value));
209 return *this;
210 }
212
214
217 inline StateValue GetStateValue() const { return m_stateValue; }
218 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
219 inline void SetStateValue(StateValue value) {
220 m_stateValueHasBeenSet = true;
221 m_stateValue = value;
222 }
224 SetStateValue(value);
225 return *this;
226 }
228
230
233 inline const Aws::String& GetStateReason() const { return m_stateReason; }
234 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
235 template <typename StateReasonT = Aws::String>
236 void SetStateReason(StateReasonT&& value) {
237 m_stateReasonHasBeenSet = true;
238 m_stateReason = std::forward<StateReasonT>(value);
239 }
240 template <typename StateReasonT = Aws::String>
241 MetricAlarm& WithStateReason(StateReasonT&& value) {
242 SetStateReason(std::forward<StateReasonT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::String& GetStateReasonData() const { return m_stateReasonData; }
252 inline bool StateReasonDataHasBeenSet() const { return m_stateReasonDataHasBeenSet; }
253 template <typename StateReasonDataT = Aws::String>
254 void SetStateReasonData(StateReasonDataT&& value) {
255 m_stateReasonDataHasBeenSet = true;
256 m_stateReasonData = std::forward<StateReasonDataT>(value);
257 }
258 template <typename StateReasonDataT = Aws::String>
259 MetricAlarm& WithStateReasonData(StateReasonDataT&& value) {
260 SetStateReasonData(std::forward<StateReasonDataT>(value));
261 return *this;
262 }
264
266
270 inline const Aws::Utils::DateTime& GetStateUpdatedTimestamp() const { return m_stateUpdatedTimestamp; }
271 inline bool StateUpdatedTimestampHasBeenSet() const { return m_stateUpdatedTimestampHasBeenSet; }
272 template <typename StateUpdatedTimestampT = Aws::Utils::DateTime>
273 void SetStateUpdatedTimestamp(StateUpdatedTimestampT&& value) {
274 m_stateUpdatedTimestampHasBeenSet = true;
275 m_stateUpdatedTimestamp = std::forward<StateUpdatedTimestampT>(value);
276 }
277 template <typename StateUpdatedTimestampT = Aws::Utils::DateTime>
278 MetricAlarm& WithStateUpdatedTimestamp(StateUpdatedTimestampT&& value) {
279 SetStateUpdatedTimestamp(std::forward<StateUpdatedTimestampT>(value));
280 return *this;
281 }
283
285
289 inline const Aws::String& GetMetricName() const { return m_metricName; }
290 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
291 template <typename MetricNameT = Aws::String>
292 void SetMetricName(MetricNameT&& value) {
293 m_metricNameHasBeenSet = true;
294 m_metricName = std::forward<MetricNameT>(value);
295 }
296 template <typename MetricNameT = Aws::String>
297 MetricAlarm& WithMetricName(MetricNameT&& value) {
298 SetMetricName(std::forward<MetricNameT>(value));
299 return *this;
300 }
302
304
307 inline const Aws::String& GetNamespace() const { return m_namespace; }
308 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
309 template <typename NamespaceT = Aws::String>
310 void SetNamespace(NamespaceT&& value) {
311 m_namespaceHasBeenSet = true;
312 m_namespace = std::forward<NamespaceT>(value);
313 }
314 template <typename NamespaceT = Aws::String>
315 MetricAlarm& WithNamespace(NamespaceT&& value) {
316 SetNamespace(std::forward<NamespaceT>(value));
317 return *this;
318 }
320
322
326 inline Statistic GetStatistic() const { return m_statistic; }
327 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
328 inline void SetStatistic(Statistic value) {
329 m_statisticHasBeenSet = true;
330 m_statistic = value;
331 }
333 SetStatistic(value);
334 return *this;
335 }
337
339
343 inline const Aws::String& GetExtendedStatistic() const { return m_extendedStatistic; }
344 inline bool ExtendedStatisticHasBeenSet() const { return m_extendedStatisticHasBeenSet; }
345 template <typename ExtendedStatisticT = Aws::String>
346 void SetExtendedStatistic(ExtendedStatisticT&& value) {
347 m_extendedStatisticHasBeenSet = true;
348 m_extendedStatistic = std::forward<ExtendedStatisticT>(value);
349 }
350 template <typename ExtendedStatisticT = Aws::String>
351 MetricAlarm& WithExtendedStatistic(ExtendedStatisticT&& value) {
352 SetExtendedStatistic(std::forward<ExtendedStatisticT>(value));
353 return *this;
354 }
356
358
361 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
362 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
363 template <typename DimensionsT = Aws::Vector<Dimension>>
364 void SetDimensions(DimensionsT&& value) {
365 m_dimensionsHasBeenSet = true;
366 m_dimensions = std::forward<DimensionsT>(value);
367 }
368 template <typename DimensionsT = Aws::Vector<Dimension>>
369 MetricAlarm& WithDimensions(DimensionsT&& value) {
370 SetDimensions(std::forward<DimensionsT>(value));
371 return *this;
372 }
373 template <typename DimensionsT = Dimension>
374 MetricAlarm& AddDimensions(DimensionsT&& value) {
375 m_dimensionsHasBeenSet = true;
376 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
377 return *this;
378 }
380
382
385 inline int64_t GetPeriod() const { return m_period; }
386 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
387 inline void SetPeriod(int64_t value) {
388 m_periodHasBeenSet = true;
389 m_period = value;
390 }
391 inline MetricAlarm& WithPeriod(int64_t value) {
392 SetPeriod(value);
393 return *this;
394 }
396
398
401 inline StandardUnit GetUnit() const { return m_unit; }
402 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
403 inline void SetUnit(StandardUnit value) {
404 m_unitHasBeenSet = true;
405 m_unit = value;
406 }
408 SetUnit(value);
409 return *this;
410 }
412
414
418 inline int64_t GetEvaluationPeriods() const { return m_evaluationPeriods; }
419 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
420 inline void SetEvaluationPeriods(int64_t value) {
421 m_evaluationPeriodsHasBeenSet = true;
422 m_evaluationPeriods = value;
423 }
424 inline MetricAlarm& WithEvaluationPeriods(int64_t value) {
426 return *this;
427 }
429
431
434 inline int64_t GetDatapointsToAlarm() const { return m_datapointsToAlarm; }
435 inline bool DatapointsToAlarmHasBeenSet() const { return m_datapointsToAlarmHasBeenSet; }
436 inline void SetDatapointsToAlarm(int64_t value) {
437 m_datapointsToAlarmHasBeenSet = true;
438 m_datapointsToAlarm = value;
439 }
440 inline MetricAlarm& WithDatapointsToAlarm(int64_t value) {
442 return *this;
443 }
445
447
450 inline double GetThreshold() const { return m_threshold; }
451 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
452 inline void SetThreshold(double value) {
453 m_thresholdHasBeenSet = true;
454 m_threshold = value;
455 }
456 inline MetricAlarm& WithThreshold(double value) {
457 SetThreshold(value);
458 return *this;
459 }
461
463
467 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
468 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
470 m_comparisonOperatorHasBeenSet = true;
471 m_comparisonOperator = value;
472 }
475 return *this;
476 }
478
480
489 inline const Aws::String& GetTreatMissingData() const { return m_treatMissingData; }
490 inline bool TreatMissingDataHasBeenSet() const { return m_treatMissingDataHasBeenSet; }
491 template <typename TreatMissingDataT = Aws::String>
492 void SetTreatMissingData(TreatMissingDataT&& value) {
493 m_treatMissingDataHasBeenSet = true;
494 m_treatMissingData = std::forward<TreatMissingDataT>(value);
495 }
496 template <typename TreatMissingDataT = Aws::String>
497 MetricAlarm& WithTreatMissingData(TreatMissingDataT&& value) {
498 SetTreatMissingData(std::forward<TreatMissingDataT>(value));
499 return *this;
500 }
502
504
511 inline const Aws::String& GetEvaluateLowSampleCountPercentile() const { return m_evaluateLowSampleCountPercentile; }
512 inline bool EvaluateLowSampleCountPercentileHasBeenSet() const { return m_evaluateLowSampleCountPercentileHasBeenSet; }
513 template <typename EvaluateLowSampleCountPercentileT = Aws::String>
514 void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) {
515 m_evaluateLowSampleCountPercentileHasBeenSet = true;
516 m_evaluateLowSampleCountPercentile = std::forward<EvaluateLowSampleCountPercentileT>(value);
517 }
518 template <typename EvaluateLowSampleCountPercentileT = Aws::String>
519 MetricAlarm& WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT&& value) {
520 SetEvaluateLowSampleCountPercentile(std::forward<EvaluateLowSampleCountPercentileT>(value));
521 return *this;
522 }
524
526
533 inline const Aws::Vector<MetricDataQuery>& GetMetrics() const { return m_metrics; }
534 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
535 template <typename MetricsT = Aws::Vector<MetricDataQuery>>
536 void SetMetrics(MetricsT&& value) {
537 m_metricsHasBeenSet = true;
538 m_metrics = std::forward<MetricsT>(value);
539 }
540 template <typename MetricsT = Aws::Vector<MetricDataQuery>>
541 MetricAlarm& WithMetrics(MetricsT&& value) {
542 SetMetrics(std::forward<MetricsT>(value));
543 return *this;
544 }
545 template <typename MetricsT = MetricDataQuery>
546 MetricAlarm& AddMetrics(MetricsT&& value) {
547 m_metricsHasBeenSet = true;
548 m_metrics.emplace_back(std::forward<MetricsT>(value));
549 return *this;
550 }
552
554
559 inline const Aws::String& GetThresholdMetricId() const { return m_thresholdMetricId; }
560 inline bool ThresholdMetricIdHasBeenSet() const { return m_thresholdMetricIdHasBeenSet; }
561 template <typename ThresholdMetricIdT = Aws::String>
562 void SetThresholdMetricId(ThresholdMetricIdT&& value) {
563 m_thresholdMetricIdHasBeenSet = true;
564 m_thresholdMetricId = std::forward<ThresholdMetricIdT>(value);
565 }
566 template <typename ThresholdMetricIdT = Aws::String>
567 MetricAlarm& WithThresholdMetricId(ThresholdMetricIdT&& value) {
568 SetThresholdMetricId(std::forward<ThresholdMetricIdT>(value));
569 return *this;
570 }
572
574
586 inline EvaluationState GetEvaluationState() const { return m_evaluationState; }
587 inline bool EvaluationStateHasBeenSet() const { return m_evaluationStateHasBeenSet; }
589 m_evaluationStateHasBeenSet = true;
590 m_evaluationState = value;
591 }
593 SetEvaluationState(value);
594 return *this;
595 }
597
599
603 inline const Aws::Utils::DateTime& GetStateTransitionedTimestamp() const { return m_stateTransitionedTimestamp; }
604 inline bool StateTransitionedTimestampHasBeenSet() const { return m_stateTransitionedTimestampHasBeenSet; }
605 template <typename StateTransitionedTimestampT = Aws::Utils::DateTime>
606 void SetStateTransitionedTimestamp(StateTransitionedTimestampT&& value) {
607 m_stateTransitionedTimestampHasBeenSet = true;
608 m_stateTransitionedTimestamp = std::forward<StateTransitionedTimestampT>(value);
609 }
610 template <typename StateTransitionedTimestampT = Aws::Utils::DateTime>
611 MetricAlarm& WithStateTransitionedTimestamp(StateTransitionedTimestampT&& value) {
612 SetStateTransitionedTimestamp(std::forward<StateTransitionedTimestampT>(value));
613 return *this;
614 }
616
618
625 inline const EvaluationWindow& GetEvaluationWindow() const { return m_evaluationWindow; }
626 inline bool EvaluationWindowHasBeenSet() const { return m_evaluationWindowHasBeenSet; }
627 template <typename EvaluationWindowT = EvaluationWindow>
628 void SetEvaluationWindow(EvaluationWindowT&& value) {
629 m_evaluationWindowHasBeenSet = true;
630 m_evaluationWindow = std::forward<EvaluationWindowT>(value);
631 }
632 template <typename EvaluationWindowT = EvaluationWindow>
633 MetricAlarm& WithEvaluationWindow(EvaluationWindowT&& value) {
634 SetEvaluationWindow(std::forward<EvaluationWindowT>(value));
635 return *this;
636 }
638
640
648 inline const WarmUpConfiguration& GetWarmUpConfiguration() const { return m_warmUpConfiguration; }
649 inline bool WarmUpConfigurationHasBeenSet() const { return m_warmUpConfigurationHasBeenSet; }
650 template <typename WarmUpConfigurationT = WarmUpConfiguration>
651 void SetWarmUpConfiguration(WarmUpConfigurationT&& value) {
652 m_warmUpConfigurationHasBeenSet = true;
653 m_warmUpConfiguration = std::forward<WarmUpConfigurationT>(value);
654 }
655 template <typename WarmUpConfigurationT = WarmUpConfiguration>
656 MetricAlarm& WithWarmUpConfiguration(WarmUpConfigurationT&& value) {
657 SetWarmUpConfiguration(std::forward<WarmUpConfigurationT>(value));
658 return *this;
659 }
661
663
666 inline const EvaluationCriteria& GetEvaluationCriteria() const { return m_evaluationCriteria; }
667 inline bool EvaluationCriteriaHasBeenSet() const { return m_evaluationCriteriaHasBeenSet; }
668 template <typename EvaluationCriteriaT = EvaluationCriteria>
669 void SetEvaluationCriteria(EvaluationCriteriaT&& value) {
670 m_evaluationCriteriaHasBeenSet = true;
671 m_evaluationCriteria = std::forward<EvaluationCriteriaT>(value);
672 }
673 template <typename EvaluationCriteriaT = EvaluationCriteria>
674 MetricAlarm& WithEvaluationCriteria(EvaluationCriteriaT&& value) {
675 SetEvaluationCriteria(std::forward<EvaluationCriteriaT>(value));
676 return *this;
677 }
679
681
684 inline int64_t GetEvaluationInterval() const { return m_evaluationInterval; }
685 inline bool EvaluationIntervalHasBeenSet() const { return m_evaluationIntervalHasBeenSet; }
686 inline void SetEvaluationInterval(int64_t value) {
687 m_evaluationIntervalHasBeenSet = true;
688 m_evaluationInterval = value;
689 }
690 inline MetricAlarm& WithEvaluationInterval(int64_t value) {
692 return *this;
693 }
695 private:
696 Aws::String m_alarmName;
697
698 Aws::String m_alarmArn;
699
700 Aws::String m_alarmDescription;
701
702 Aws::Utils::DateTime m_alarmConfigurationUpdatedTimestamp{};
703
704 bool m_actionsEnabled{false};
705
706 Aws::Vector<Aws::String> m_oKActions;
707
708 Aws::Vector<Aws::String> m_alarmActions;
709
710 Aws::Vector<Aws::String> m_insufficientDataActions;
711
712 StateValue m_stateValue{StateValue::NOT_SET};
713
714 Aws::String m_stateReason;
715
716 Aws::String m_stateReasonData;
717
718 Aws::Utils::DateTime m_stateUpdatedTimestamp{};
719
720 Aws::String m_metricName;
721
722 Aws::String m_namespace;
723
724 Statistic m_statistic{Statistic::NOT_SET};
725
726 Aws::String m_extendedStatistic;
727
728 Aws::Vector<Dimension> m_dimensions;
729
730 int64_t m_period{0};
731
733
734 int64_t m_evaluationPeriods{0};
735
736 int64_t m_datapointsToAlarm{0};
737
738 double m_threshold{0.0};
739
741
742 Aws::String m_treatMissingData;
743
744 Aws::String m_evaluateLowSampleCountPercentile;
745
747
748 Aws::String m_thresholdMetricId;
749
750 EvaluationState m_evaluationState{EvaluationState::NOT_SET};
751
752 Aws::Utils::DateTime m_stateTransitionedTimestamp{};
753
754 EvaluationWindow m_evaluationWindow;
755
756 WarmUpConfiguration m_warmUpConfiguration;
757
758 EvaluationCriteria m_evaluationCriteria;
759
760 int64_t m_evaluationInterval{0};
761 bool m_alarmNameHasBeenSet = false;
762 bool m_alarmArnHasBeenSet = false;
763 bool m_alarmDescriptionHasBeenSet = false;
764 bool m_alarmConfigurationUpdatedTimestampHasBeenSet = false;
765 bool m_actionsEnabledHasBeenSet = false;
766 bool m_oKActionsHasBeenSet = false;
767 bool m_alarmActionsHasBeenSet = false;
768 bool m_insufficientDataActionsHasBeenSet = false;
769 bool m_stateValueHasBeenSet = false;
770 bool m_stateReasonHasBeenSet = false;
771 bool m_stateReasonDataHasBeenSet = false;
772 bool m_stateUpdatedTimestampHasBeenSet = false;
773 bool m_metricNameHasBeenSet = false;
774 bool m_namespaceHasBeenSet = false;
775 bool m_statisticHasBeenSet = false;
776 bool m_extendedStatisticHasBeenSet = false;
777 bool m_dimensionsHasBeenSet = false;
778 bool m_periodHasBeenSet = false;
779 bool m_unitHasBeenSet = false;
780 bool m_evaluationPeriodsHasBeenSet = false;
781 bool m_datapointsToAlarmHasBeenSet = false;
782 bool m_thresholdHasBeenSet = false;
783 bool m_comparisonOperatorHasBeenSet = false;
784 bool m_treatMissingDataHasBeenSet = false;
785 bool m_evaluateLowSampleCountPercentileHasBeenSet = false;
786 bool m_metricsHasBeenSet = false;
787 bool m_thresholdMetricIdHasBeenSet = false;
788 bool m_evaluationStateHasBeenSet = false;
789 bool m_stateTransitionedTimestampHasBeenSet = false;
790 bool m_evaluationWindowHasBeenSet = false;
791 bool m_warmUpConfigurationHasBeenSet = false;
792 bool m_evaluationCriteriaHasBeenSet = false;
793 bool m_evaluationIntervalHasBeenSet = false;
794};
795
796} // namespace Model
797} // namespace CloudWatch
798} // namespace Aws
EvaluationState GetEvaluationState() const
MetricAlarm & WithEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
void SetTreatMissingData(TreatMissingDataT &&value)
const Aws::String & GetStateReasonData() const
void SetAlarmName(AlarmNameT &&value)
Definition MetricAlarm.h:53
void SetEvaluateLowSampleCountPercentile(EvaluateLowSampleCountPercentileT &&value)
void SetNamespace(NamespaceT &&value)
MetricAlarm & WithStateValue(StateValue value)
AWS_CLOUDWATCH_API MetricAlarm & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
MetricAlarm & WithEvaluationPeriods(int64_t value)
void SetAlarmArn(AlarmArnT &&value)
Definition MetricAlarm.h:71
const Aws::Vector< Aws::String > & GetOKActions() const
MetricAlarm & WithDimensions(DimensionsT &&value)
MetricAlarm & WithThreshold(double value)
MetricAlarm & WithOKActions(OKActionsT &&value)
const Aws::Vector< Aws::String > & GetInsufficientDataActions() const
MetricAlarm & WithComparisonOperator(ComparisonOperator value)
MetricAlarm & WithEvaluationInterval(int64_t value)
MetricAlarm & WithTreatMissingData(TreatMissingDataT &&value)
const Aws::String & GetNamespace() const
const Aws::String & GetMetricName() const
MetricAlarm & WithExtendedStatistic(ExtendedStatisticT &&value)
ComparisonOperator GetComparisonOperator() const
MetricAlarm & WithEvaluationState(EvaluationState value)
void SetDimensions(DimensionsT &&value)
void SetStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
MetricAlarm & WithAlarmActions(AlarmActionsT &&value)
void SetExtendedStatistic(ExtendedStatisticT &&value)
MetricAlarm & AddOKActions(OKActionsT &&value)
void SetWarmUpConfiguration(WarmUpConfigurationT &&value)
AWS_CLOUDWATCH_API MetricAlarm(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
MetricAlarm & WithWarmUpConfiguration(WarmUpConfigurationT &&value)
MetricAlarm & WithPeriod(int64_t value)
void SetEvaluationWindow(EvaluationWindowT &&value)
MetricAlarm & WithStateReason(StateReasonT &&value)
MetricAlarm & WithAlarmDescription(AlarmDescriptionT &&value)
Definition MetricAlarm.h:94
void SetInsufficientDataActions(InsufficientDataActionsT &&value)
const Aws::String & GetThresholdMetricId() const
void SetEvaluationInterval(int64_t value)
void SetMetrics(MetricsT &&value)
const Aws::String & GetStateReason() const
AWS_CLOUDWATCH_API MetricAlarm()=default
void SetMetricName(MetricNameT &&value)
MetricAlarm & WithMetrics(MetricsT &&value)
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
const Aws::Utils::DateTime & GetAlarmConfigurationUpdatedTimestamp() const
void SetDatapointsToAlarm(int64_t value)
MetricAlarm & WithEvaluationCriteria(EvaluationCriteriaT &&value)
bool AlarmConfigurationUpdatedTimestampHasBeenSet() const
bool EvaluateLowSampleCountPercentileHasBeenSet() const
const Aws::String & GetTreatMissingData() const
MetricAlarm & AddMetrics(MetricsT &&value)
void SetAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
MetricAlarm & WithAlarmConfigurationUpdatedTimestamp(AlarmConfigurationUpdatedTimestampT &&value)
const EvaluationWindow & GetEvaluationWindow() const
MetricAlarm & WithInsufficientDataActions(InsufficientDataActionsT &&value)
void SetComparisonOperator(ComparisonOperator value)
void SetAlarmDescription(AlarmDescriptionT &&value)
Definition MetricAlarm.h:89
const Aws::Vector< Dimension > & GetDimensions() const
const Aws::String & GetAlarmArn() const
Definition MetricAlarm.h:68
const Aws::Vector< MetricDataQuery > & GetMetrics() const
MetricAlarm & WithDatapointsToAlarm(int64_t value)
void SetStateReasonData(StateReasonDataT &&value)
void SetUnit(StandardUnit value)
MetricAlarm & AddDimensions(DimensionsT &&value)
const WarmUpConfiguration & GetWarmUpConfiguration() const
MetricAlarm & WithAlarmName(AlarmNameT &&value)
Definition MetricAlarm.h:58
const Aws::String & GetExtendedStatistic() const
void SetStateReason(StateReasonT &&value)
void SetEvaluationPeriods(int64_t value)
void SetEvaluationState(EvaluationState value)
const Aws::Vector< Aws::String > & GetAlarmActions() const
void SetStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
MetricAlarm & WithThresholdMetricId(ThresholdMetricIdT &&value)
const Aws::String & GetAlarmDescription() const
Definition MetricAlarm.h:86
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
MetricAlarm & WithActionsEnabled(bool value)
MetricAlarm & WithUnit(StandardUnit value)
MetricAlarm & WithMetricName(MetricNameT &&value)
MetricAlarm & WithStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
MetricAlarm & WithEvaluationWindow(EvaluationWindowT &&value)
MetricAlarm & AddAlarmActions(AlarmActionsT &&value)
void SetOKActions(OKActionsT &&value)
const EvaluationCriteria & GetEvaluationCriteria() const
MetricAlarm & WithStatistic(Statistic value)
const Aws::Utils::DateTime & GetStateUpdatedTimestamp() const
const Aws::String & GetEvaluateLowSampleCountPercentile() const
const Aws::String & GetAlarmName() const
Definition MetricAlarm.h:50
MetricAlarm & WithStateReasonData(StateReasonDataT &&value)
MetricAlarm & WithAlarmArn(AlarmArnT &&value)
Definition MetricAlarm.h:76
void SetStatistic(Statistic value)
void SetThresholdMetricId(ThresholdMetricIdT &&value)
void SetAlarmActions(AlarmActionsT &&value)
void SetEvaluationCriteria(EvaluationCriteriaT &&value)
bool StateTransitionedTimestampHasBeenSet() const
MetricAlarm & WithStateUpdatedTimestamp(StateUpdatedTimestampT &&value)
MetricAlarm & AddInsufficientDataActions(InsufficientDataActionsT &&value)
void SetStateValue(StateValue value)
MetricAlarm & WithNamespace(NamespaceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector