public static interface Alarm.Builder extends SdkPojo, CopyableBuilder<Alarm.Builder,Alarm>
| Modifier and Type | Method and Description |
|---|---|
Alarm.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the alarm.
|
Alarm.Builder |
comparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
|
Alarm.Builder |
comparisonOperator(String comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
|
Alarm.Builder |
contactProtocols(Collection<ContactProtocol> contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Alarm.Builder |
contactProtocols(ContactProtocol... contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Alarm.Builder |
contactProtocolsWithStrings(Collection<String> contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Alarm.Builder |
contactProtocolsWithStrings(String... contactProtocols)
The contact protocols for the alarm, such as
Email, SMS (text messaging), or both. |
Alarm.Builder |
createdAt(Instant createdAt)
The timestamp when the alarm was created.
|
Alarm.Builder |
datapointsToAlarm(Integer datapointsToAlarm)
The number of data points that must not within the specified threshold to trigger the alarm.
|
Alarm.Builder |
evaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
default Alarm.Builder |
location(Consumer<ResourceLocation.Builder> location)
An object that lists information about the location of the alarm.
|
Alarm.Builder |
location(ResourceLocation location)
An object that lists information about the location of the alarm.
|
Alarm.Builder |
metricName(MetricName metricName)
The name of the metric associated with the alarm.
|
Alarm.Builder |
metricName(String metricName)
The name of the metric associated with the alarm.
|
default Alarm.Builder |
monitoredResourceInfo(Consumer<MonitoredResourceInfo.Builder> monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
|
Alarm.Builder |
monitoredResourceInfo(MonitoredResourceInfo monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
|
Alarm.Builder |
name(String name)
The name of the alarm.
|
Alarm.Builder |
notificationEnabled(Boolean notificationEnabled)
Indicates whether the alarm is enabled.
|
Alarm.Builder |
notificationTriggers(AlarmState... notificationTriggers)
The alarm states that trigger a notification.
|
Alarm.Builder |
notificationTriggers(Collection<AlarmState> notificationTriggers)
The alarm states that trigger a notification.
|
Alarm.Builder |
notificationTriggersWithStrings(Collection<String> notificationTriggers)
The alarm states that trigger a notification.
|
Alarm.Builder |
notificationTriggersWithStrings(String... notificationTriggers)
The alarm states that trigger a notification.
|
Alarm.Builder |
period(Integer period)
The period, in seconds, over which the statistic is applied.
|
Alarm.Builder |
resourceType(ResourceType resourceType)
The Lightsail resource type (e.g.,
Alarm). |
Alarm.Builder |
resourceType(String resourceType)
The Lightsail resource type (e.g.,
Alarm). |
Alarm.Builder |
state(AlarmState state)
The current state of the alarm.
|
Alarm.Builder |
state(String state)
The current state of the alarm.
|
Alarm.Builder |
statistic(MetricStatistic statistic)
The statistic for the metric associated with the alarm.
|
Alarm.Builder |
statistic(String statistic)
The statistic for the metric associated with the alarm.
|
Alarm.Builder |
supportCode(String supportCode)
The support code.
|
Alarm.Builder |
threshold(Double threshold)
The value against which the specified statistic is compared.
|
Alarm.Builder |
treatMissingData(String treatMissingData)
Specifies how the alarm handles missing data points.
|
Alarm.Builder |
treatMissingData(TreatMissingData treatMissingData)
Specifies how the alarm handles missing data points.
|
Alarm.Builder |
unit(MetricUnit unit)
The unit of the metric associated with the alarm.
|
Alarm.Builder |
unit(String unit)
The unit of the metric associated with the alarm.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAlarm.Builder name(String name)
The name of the alarm.
name - The name of the alarm.Alarm.Builder arn(String arn)
The Amazon Resource Name (ARN) of the alarm.
arn - The Amazon Resource Name (ARN) of the alarm.Alarm.Builder createdAt(Instant createdAt)
The timestamp when the alarm was created.
createdAt - The timestamp when the alarm was created.Alarm.Builder location(ResourceLocation location)
An object that lists information about the location of the alarm.
location - An object that lists information about the location of the alarm.default Alarm.Builder location(Consumer<ResourceLocation.Builder> location)
An object that lists information about the location of the alarm.
This is a convenience that creates an instance of theResourceLocation.Builder avoiding the need to
create one manually via ResourceLocation.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to location(ResourceLocation).location - a consumer that will call methods on ResourceLocation.Builderlocation(ResourceLocation)Alarm.Builder resourceType(String resourceType)
The Lightsail resource type (e.g., Alarm).
resourceType - The Lightsail resource type (e.g., Alarm).ResourceType,
ResourceTypeAlarm.Builder resourceType(ResourceType resourceType)
The Lightsail resource type (e.g., Alarm).
resourceType - The Lightsail resource type (e.g., Alarm).ResourceType,
ResourceTypeAlarm.Builder supportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about your Lightsail alarm. This code enables our support team to look up your Lightsail information more easily.
supportCode - The support code. Include this code in your email to support when you have questions about your
Lightsail alarm. This code enables our support team to look up your Lightsail information more easily.Alarm.Builder monitoredResourceInfo(MonitoredResourceInfo monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
monitoredResourceInfo - An object that lists information about the resource monitored by the alarm.default Alarm.Builder monitoredResourceInfo(Consumer<MonitoredResourceInfo.Builder> monitoredResourceInfo)
An object that lists information about the resource monitored by the alarm.
This is a convenience that creates an instance of theMonitoredResourceInfo.Builder avoiding the need
to create one manually via MonitoredResourceInfo.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to monitoredResourceInfo(MonitoredResourceInfo).monitoredResourceInfo - a consumer that will call methods on MonitoredResourceInfo.BuildermonitoredResourceInfo(MonitoredResourceInfo)Alarm.Builder comparisonOperator(String comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
comparisonOperator - The arithmetic operation used when comparing the specified statistic and threshold.ComparisonOperator,
ComparisonOperatorAlarm.Builder comparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation used when comparing the specified statistic and threshold.
comparisonOperator - The arithmetic operation used when comparing the specified statistic and threshold.ComparisonOperator,
ComparisonOperatorAlarm.Builder evaluationPeriods(Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods - The number of periods over which data is compared to the specified threshold.Alarm.Builder period(Integer period)
The period, in seconds, over which the statistic is applied.
period - The period, in seconds, over which the statistic is applied.Alarm.Builder threshold(Double threshold)
The value against which the specified statistic is compared.
threshold - The value against which the specified statistic is compared.Alarm.Builder datapointsToAlarm(Integer datapointsToAlarm)
The number of data points that must not within the specified threshold to trigger the alarm.
datapointsToAlarm - The number of data points that must not within the specified threshold to trigger the alarm.Alarm.Builder treatMissingData(String treatMissingData)
Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards the
number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count
towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
treatMissingData - Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts
towards the number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not
count towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
TreatMissingData,
TreatMissingDataAlarm.Builder treatMissingData(TreatMissingData treatMissingData)
Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts towards the
number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not count
towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
treatMissingData - Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assume the missing data is not within the threshold. Missing data counts
towards the number of times the metric is not within the threshold.
notBreaching - Assume the missing data is within the threshold. Missing data does not
count towards the number of times the metric is not within the threshold.
ignore - Ignore the missing data. Maintains the current alarm state.
missing - Missing data is treated as missing.
TreatMissingData,
TreatMissingDataAlarm.Builder statistic(String statistic)
The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine low
volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine
high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic to
determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the
average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or
decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
statistic - The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to
determine low volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to
determine high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this
statistic to determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how
close the average use is to the Minimum and Maximum values. This comparison helps you to know when to
increase or decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
MetricStatistic,
MetricStatisticAlarm.Builder statistic(MetricStatistic statistic)
The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to determine low
volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to determine
high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this statistic to
determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the
average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or
decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
statistic - The statistic for the metric associated with the alarm.
The following statistics are available:
Minimum - The lowest value observed during the specified period. Use this value to
determine low volumes of activity for your application.
Maximum - The highest value observed during the specified period. Use this value to
determine high volumes of activity for your application.
Sum - All values submitted for the matching metric added together. You can use this
statistic to determine the total volume of a metric.
Average - The value of Sum / SampleCount during the specified period. By comparing this
statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how
close the average use is to the Minimum and Maximum values. This comparison helps you to know when to
increase or decrease your resources.
SampleCount - The count, or number, of data points used for the statistical calculation.
MetricStatistic,
MetricStatisticAlarm.Builder metricName(String metricName)
The name of the metric associated with the alarm.
metricName - The name of the metric associated with the alarm.MetricName,
MetricNameAlarm.Builder metricName(MetricName metricName)
The name of the metric associated with the alarm.
metricName - The name of the metric associated with the alarm.MetricName,
MetricNameAlarm.Builder state(String state)
The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data
is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
state - The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not
enough data is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
AlarmState,
AlarmStateAlarm.Builder state(AlarmState state)
The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data
is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
state - The current state of the alarm.
An alarm has the following possible states:
ALARM - The metric is outside of the defined threshold.
INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not
enough data is available for the metric to determine the alarm state.
OK - The metric is within the defined threshold.
AlarmState,
AlarmStateAlarm.Builder unit(String unit)
The unit of the metric associated with the alarm.
unit - The unit of the metric associated with the alarm.MetricUnit,
MetricUnitAlarm.Builder unit(MetricUnit unit)
The unit of the metric associated with the alarm.
unit - The unit of the metric associated with the alarm.MetricUnit,
MetricUnitAlarm.Builder contactProtocolsWithStrings(Collection<String> contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.Alarm.Builder contactProtocolsWithStrings(String... contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.Alarm.Builder contactProtocols(Collection<ContactProtocol> contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.Alarm.Builder contactProtocols(ContactProtocol... contactProtocols)
The contact protocols for the alarm, such as Email, SMS (text messaging), or both.
contactProtocols - The contact protocols for the alarm, such as Email, SMS (text messaging), or
both.Alarm.Builder notificationTriggersWithStrings(Collection<String> notificationTriggers)
The alarm states that trigger a notification.
notificationTriggers - The alarm states that trigger a notification.Alarm.Builder notificationTriggersWithStrings(String... notificationTriggers)
The alarm states that trigger a notification.
notificationTriggers - The alarm states that trigger a notification.Alarm.Builder notificationTriggers(Collection<AlarmState> notificationTriggers)
The alarm states that trigger a notification.
notificationTriggers - The alarm states that trigger a notification.Alarm.Builder notificationTriggers(AlarmState... notificationTriggers)
The alarm states that trigger a notification.
notificationTriggers - The alarm states that trigger a notification.Alarm.Builder notificationEnabled(Boolean notificationEnabled)
Indicates whether the alarm is enabled.
notificationEnabled - Indicates whether the alarm is enabled.Copyright © 2021. All rights reserved.