io.github.cdklabs.cdkmonitoringconstructs.ApiGatewayV2HttpApiMonitoringProps Maven / Gradle / Ivy
package io.github.cdklabs.cdkmonitoringconstructs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-24T17:32:51.794Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkmonitoringconstructs.$Module.class, fqn = "cdk-monitoring-constructs.ApiGatewayV2HttpApiMonitoringProps")
@software.amazon.jsii.Jsii.Proxy(ApiGatewayV2HttpApiMonitoringProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ApiGatewayV2HttpApiMonitoringProps extends software.amazon.jsii.JsiiSerializable, io.github.cdklabs.cdkmonitoringconstructs.ApiGatewayV2HttpApiMetricFactoryProps, io.github.cdklabs.cdkmonitoringconstructs.ApiGatewayV2MonitoringOptions {
/**
* (experimental) Account where the metrics exist.
*
* Default: The account configured by the construct holding the Monitoring construct
*
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
default @org.jetbrains.annotations.Nullable java.lang.String getAccount() {
return null;
}
/**
* (experimental) Region where the metrics exist.
*
* Default: The region configured by the construct holding the Monitoring construct
*
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
default @org.jetbrains.annotations.Nullable java.lang.String getRegion() {
return null;
}
/**
* @return a {@link Builder} of {@link ApiGatewayV2HttpApiMonitoringProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ApiGatewayV2HttpApiMonitoringProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
software.amazon.awscdk.services.apigatewayv2.IHttpApi api;
java.lang.String apiMethod;
java.lang.String apiResource;
java.lang.String apiStage;
java.lang.Boolean fillTpsWithZeroes;
io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod rateComputationMethod;
java.lang.String account;
java.lang.String region;
java.util.Map add4XxCountAlarm;
java.util.Map add4XxRateAlarm;
java.util.Map add5XxCountAlarm;
java.util.Map add5XxRateAlarm;
java.util.Map addHighTpsAlarm;
java.util.Map addIntegrationLatencyAverageAlarm;
java.util.Map addIntegrationLatencyP100Alarm;
java.util.Map addIntegrationLatencyP50Alarm;
java.util.Map addIntegrationLatencyP70Alarm;
java.util.Map addIntegrationLatencyP90Alarm;
java.util.Map addIntegrationLatencyP95Alarm;
java.util.Map addIntegrationLatencyP9999Alarm;
java.util.Map addIntegrationLatencyP999Alarm;
java.util.Map addIntegrationLatencyP99Alarm;
java.util.Map addIntegrationLatencyTm50Alarm;
java.util.Map addIntegrationLatencyTm70Alarm;
java.util.Map addIntegrationLatencyTm90Alarm;
java.util.Map addIntegrationLatencyTm95Alarm;
java.util.Map addIntegrationLatencyTm95OutlierAlarm;
java.util.Map addIntegrationLatencyTm9999Alarm;
java.util.Map addIntegrationLatencyTm9999OutlierAlarm;
java.util.Map addIntegrationLatencyTm999Alarm;
java.util.Map addIntegrationLatencyTm999OutlierAlarm;
java.util.Map addIntegrationLatencyTm99Alarm;
java.util.Map addIntegrationLatencyTm99OutlierAlarm;
java.util.Map addLatencyAverageAlarm;
java.util.Map addLatencyP100Alarm;
java.util.Map addLatencyP50Alarm;
java.util.Map addLatencyP70Alarm;
java.util.Map addLatencyP90Alarm;
java.util.Map addLatencyP95Alarm;
java.util.Map addLatencyP9999Alarm;
java.util.Map addLatencyP999Alarm;
java.util.Map addLatencyP99Alarm;
java.util.Map addLatencyTm50Alarm;
java.util.Map addLatencyTm70Alarm;
java.util.Map addLatencyTm90Alarm;
java.util.Map addLatencyTm95Alarm;
java.util.Map addLatencyTm95OutlierAlarm;
java.util.Map addLatencyTm9999Alarm;
java.util.Map addLatencyTm9999OutlierAlarm;
java.util.Map addLatencyTm999Alarm;
java.util.Map addLatencyTm999OutlierAlarm;
java.util.Map addLatencyTm99Alarm;
java.util.Map addLatencyTm99OutlierAlarm;
java.util.Map addLowTpsAlarm;
java.util.List latencyTypesToRender;
io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer useCreatedAlarms;
java.lang.String alarmFriendlyName;
java.lang.String humanReadableName;
java.lang.String localAlarmNamePrefixOverride;
java.lang.Boolean addToAlarmDashboard;
java.lang.Boolean addToDetailDashboard;
java.lang.Boolean addToSummaryDashboard;
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getApi}
* @param api the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder api(software.amazon.awscdk.services.apigatewayv2.IHttpApi api) {
this.api = api;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getApiMethod}
* @param apiMethod On undefined value is not set in dimensions.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder apiMethod(java.lang.String apiMethod) {
this.apiMethod = apiMethod;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getApiResource}
* @param apiResource On undefined value is not set in dimensions.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder apiResource(java.lang.String apiResource) {
this.apiResource = apiResource;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getApiStage}
* @param apiStage the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder apiStage(java.lang.String apiStage) {
this.apiStage = apiStage;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getFillTpsWithZeroes}
* @param fillTpsWithZeroes the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder fillTpsWithZeroes(java.lang.Boolean fillTpsWithZeroes) {
this.fillTpsWithZeroes = fillTpsWithZeroes;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getRateComputationMethod}
* @param rateComputationMethod the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder rateComputationMethod(io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod rateComputationMethod) {
this.rateComputationMethod = rateComputationMethod;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAccount}
* @param account Account where the metrics exist.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder account(java.lang.String account) {
this.account = account;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getRegion}
* @param region Region where the metrics exist.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder region(java.lang.String region) {
this.region = region;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAdd4XxCountAlarm}
* @param add4XxCountAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder add4XxCountAlarm(java.util.Map add4XxCountAlarm) {
this.add4XxCountAlarm = (java.util.Map)add4XxCountAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAdd4XxRateAlarm}
* @param add4XxRateAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder add4XxRateAlarm(java.util.Map add4XxRateAlarm) {
this.add4XxRateAlarm = (java.util.Map)add4XxRateAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAdd5XxCountAlarm}
* @param add5XxCountAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder add5XxCountAlarm(java.util.Map add5XxCountAlarm) {
this.add5XxCountAlarm = (java.util.Map)add5XxCountAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAdd5XxRateAlarm}
* @param add5XxRateAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder add5XxRateAlarm(java.util.Map add5XxRateAlarm) {
this.add5XxRateAlarm = (java.util.Map)add5XxRateAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddHighTpsAlarm}
* @param addHighTpsAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addHighTpsAlarm(java.util.Map addHighTpsAlarm) {
this.addHighTpsAlarm = (java.util.Map)addHighTpsAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyAverageAlarm}
* @param addIntegrationLatencyAverageAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyAverageAlarm(java.util.Map addIntegrationLatencyAverageAlarm) {
this.addIntegrationLatencyAverageAlarm = (java.util.Map)addIntegrationLatencyAverageAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP100Alarm}
* @param addIntegrationLatencyP100Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP100Alarm(java.util.Map addIntegrationLatencyP100Alarm) {
this.addIntegrationLatencyP100Alarm = (java.util.Map)addIntegrationLatencyP100Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP50Alarm}
* @param addIntegrationLatencyP50Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP50Alarm(java.util.Map addIntegrationLatencyP50Alarm) {
this.addIntegrationLatencyP50Alarm = (java.util.Map)addIntegrationLatencyP50Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP70Alarm}
* @param addIntegrationLatencyP70Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP70Alarm(java.util.Map addIntegrationLatencyP70Alarm) {
this.addIntegrationLatencyP70Alarm = (java.util.Map)addIntegrationLatencyP70Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP90Alarm}
* @param addIntegrationLatencyP90Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP90Alarm(java.util.Map addIntegrationLatencyP90Alarm) {
this.addIntegrationLatencyP90Alarm = (java.util.Map)addIntegrationLatencyP90Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP95Alarm}
* @param addIntegrationLatencyP95Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP95Alarm(java.util.Map addIntegrationLatencyP95Alarm) {
this.addIntegrationLatencyP95Alarm = (java.util.Map)addIntegrationLatencyP95Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP9999Alarm}
* @param addIntegrationLatencyP9999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP9999Alarm(java.util.Map addIntegrationLatencyP9999Alarm) {
this.addIntegrationLatencyP9999Alarm = (java.util.Map)addIntegrationLatencyP9999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP999Alarm}
* @param addIntegrationLatencyP999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP999Alarm(java.util.Map addIntegrationLatencyP999Alarm) {
this.addIntegrationLatencyP999Alarm = (java.util.Map)addIntegrationLatencyP999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyP99Alarm}
* @param addIntegrationLatencyP99Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyP99Alarm(java.util.Map addIntegrationLatencyP99Alarm) {
this.addIntegrationLatencyP99Alarm = (java.util.Map)addIntegrationLatencyP99Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm50Alarm}
* @param addIntegrationLatencyTm50Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm50Alarm(java.util.Map addIntegrationLatencyTm50Alarm) {
this.addIntegrationLatencyTm50Alarm = (java.util.Map)addIntegrationLatencyTm50Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm70Alarm}
* @param addIntegrationLatencyTm70Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm70Alarm(java.util.Map addIntegrationLatencyTm70Alarm) {
this.addIntegrationLatencyTm70Alarm = (java.util.Map)addIntegrationLatencyTm70Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm90Alarm}
* @param addIntegrationLatencyTm90Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm90Alarm(java.util.Map addIntegrationLatencyTm90Alarm) {
this.addIntegrationLatencyTm90Alarm = (java.util.Map)addIntegrationLatencyTm90Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm95Alarm}
* @param addIntegrationLatencyTm95Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm95Alarm(java.util.Map addIntegrationLatencyTm95Alarm) {
this.addIntegrationLatencyTm95Alarm = (java.util.Map)addIntegrationLatencyTm95Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm95OutlierAlarm}
* @param addIntegrationLatencyTm95OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm95OutlierAlarm(java.util.Map addIntegrationLatencyTm95OutlierAlarm) {
this.addIntegrationLatencyTm95OutlierAlarm = (java.util.Map)addIntegrationLatencyTm95OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm9999Alarm}
* @param addIntegrationLatencyTm9999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm9999Alarm(java.util.Map addIntegrationLatencyTm9999Alarm) {
this.addIntegrationLatencyTm9999Alarm = (java.util.Map)addIntegrationLatencyTm9999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm9999OutlierAlarm}
* @param addIntegrationLatencyTm9999OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm9999OutlierAlarm(java.util.Map addIntegrationLatencyTm9999OutlierAlarm) {
this.addIntegrationLatencyTm9999OutlierAlarm = (java.util.Map)addIntegrationLatencyTm9999OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm999Alarm}
* @param addIntegrationLatencyTm999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm999Alarm(java.util.Map addIntegrationLatencyTm999Alarm) {
this.addIntegrationLatencyTm999Alarm = (java.util.Map)addIntegrationLatencyTm999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm999OutlierAlarm}
* @param addIntegrationLatencyTm999OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm999OutlierAlarm(java.util.Map addIntegrationLatencyTm999OutlierAlarm) {
this.addIntegrationLatencyTm999OutlierAlarm = (java.util.Map)addIntegrationLatencyTm999OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm99Alarm}
* @param addIntegrationLatencyTm99Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm99Alarm(java.util.Map addIntegrationLatencyTm99Alarm) {
this.addIntegrationLatencyTm99Alarm = (java.util.Map)addIntegrationLatencyTm99Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddIntegrationLatencyTm99OutlierAlarm}
* @param addIntegrationLatencyTm99OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addIntegrationLatencyTm99OutlierAlarm(java.util.Map addIntegrationLatencyTm99OutlierAlarm) {
this.addIntegrationLatencyTm99OutlierAlarm = (java.util.Map)addIntegrationLatencyTm99OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyAverageAlarm}
* @param addLatencyAverageAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyAverageAlarm(java.util.Map addLatencyAverageAlarm) {
this.addLatencyAverageAlarm = (java.util.Map)addLatencyAverageAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP100Alarm}
* @param addLatencyP100Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP100Alarm(java.util.Map addLatencyP100Alarm) {
this.addLatencyP100Alarm = (java.util.Map)addLatencyP100Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP50Alarm}
* @param addLatencyP50Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP50Alarm(java.util.Map addLatencyP50Alarm) {
this.addLatencyP50Alarm = (java.util.Map)addLatencyP50Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP70Alarm}
* @param addLatencyP70Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP70Alarm(java.util.Map addLatencyP70Alarm) {
this.addLatencyP70Alarm = (java.util.Map)addLatencyP70Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP90Alarm}
* @param addLatencyP90Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP90Alarm(java.util.Map addLatencyP90Alarm) {
this.addLatencyP90Alarm = (java.util.Map)addLatencyP90Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP95Alarm}
* @param addLatencyP95Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP95Alarm(java.util.Map addLatencyP95Alarm) {
this.addLatencyP95Alarm = (java.util.Map)addLatencyP95Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP9999Alarm}
* @param addLatencyP9999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP9999Alarm(java.util.Map addLatencyP9999Alarm) {
this.addLatencyP9999Alarm = (java.util.Map)addLatencyP9999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP999Alarm}
* @param addLatencyP999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP999Alarm(java.util.Map addLatencyP999Alarm) {
this.addLatencyP999Alarm = (java.util.Map)addLatencyP999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyP99Alarm}
* @param addLatencyP99Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyP99Alarm(java.util.Map addLatencyP99Alarm) {
this.addLatencyP99Alarm = (java.util.Map)addLatencyP99Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm50Alarm}
* @param addLatencyTm50Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm50Alarm(java.util.Map addLatencyTm50Alarm) {
this.addLatencyTm50Alarm = (java.util.Map)addLatencyTm50Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm70Alarm}
* @param addLatencyTm70Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm70Alarm(java.util.Map addLatencyTm70Alarm) {
this.addLatencyTm70Alarm = (java.util.Map)addLatencyTm70Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm90Alarm}
* @param addLatencyTm90Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm90Alarm(java.util.Map addLatencyTm90Alarm) {
this.addLatencyTm90Alarm = (java.util.Map)addLatencyTm90Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm95Alarm}
* @param addLatencyTm95Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm95Alarm(java.util.Map addLatencyTm95Alarm) {
this.addLatencyTm95Alarm = (java.util.Map)addLatencyTm95Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm95OutlierAlarm}
* @param addLatencyTm95OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm95OutlierAlarm(java.util.Map addLatencyTm95OutlierAlarm) {
this.addLatencyTm95OutlierAlarm = (java.util.Map)addLatencyTm95OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm9999Alarm}
* @param addLatencyTm9999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm9999Alarm(java.util.Map addLatencyTm9999Alarm) {
this.addLatencyTm9999Alarm = (java.util.Map)addLatencyTm9999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm9999OutlierAlarm}
* @param addLatencyTm9999OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm9999OutlierAlarm(java.util.Map addLatencyTm9999OutlierAlarm) {
this.addLatencyTm9999OutlierAlarm = (java.util.Map)addLatencyTm9999OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm999Alarm}
* @param addLatencyTm999Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm999Alarm(java.util.Map addLatencyTm999Alarm) {
this.addLatencyTm999Alarm = (java.util.Map)addLatencyTm999Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm999OutlierAlarm}
* @param addLatencyTm999OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm999OutlierAlarm(java.util.Map addLatencyTm999OutlierAlarm) {
this.addLatencyTm999OutlierAlarm = (java.util.Map)addLatencyTm999OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm99Alarm}
* @param addLatencyTm99Alarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm99Alarm(java.util.Map addLatencyTm99Alarm) {
this.addLatencyTm99Alarm = (java.util.Map)addLatencyTm99Alarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLatencyTm99OutlierAlarm}
* @param addLatencyTm99OutlierAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLatencyTm99OutlierAlarm(java.util.Map addLatencyTm99OutlierAlarm) {
this.addLatencyTm99OutlierAlarm = (java.util.Map)addLatencyTm99OutlierAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddLowTpsAlarm}
* @param addLowTpsAlarm the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder addLowTpsAlarm(java.util.Map addLowTpsAlarm) {
this.addLowTpsAlarm = (java.util.Map)addLowTpsAlarm;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getLatencyTypesToRender}
* @param latencyTypesToRender You can specify what latency types you want to be rendered in the dashboards.
* Note: any latency type with an alarm will be also added automatically.
* If the list is undefined, default values will be shown.
* If the list is empty, only the latency types with an alarm will be shown (if any).
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder latencyTypesToRender(java.util.List extends io.github.cdklabs.cdkmonitoringconstructs.LatencyType> latencyTypesToRender) {
this.latencyTypesToRender = (java.util.List)latencyTypesToRender;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getUseCreatedAlarms}
* @param useCreatedAlarms Calls provided function to process all alarms created.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder useCreatedAlarms(io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer useCreatedAlarms) {
this.useCreatedAlarms = useCreatedAlarms;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAlarmFriendlyName}
* @param alarmFriendlyName Plain name, used in naming alarms.
* This unique among other resources, and respect the AWS CDK restriction posed on alarm names.
* The length must be 1 - 255 characters and although the validation rules are undocumented, we recommend using ASCII and hyphens.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder alarmFriendlyName(java.lang.String alarmFriendlyName) {
this.alarmFriendlyName = alarmFriendlyName;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getHumanReadableName}
* @param humanReadableName Human-readable name is a freeform string, used as a caption or description.
* There are no limitations on what it can be.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder humanReadableName(java.lang.String humanReadableName) {
this.humanReadableName = humanReadableName;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getLocalAlarmNamePrefixOverride}
* @param localAlarmNamePrefixOverride If this is defined, the local alarm name prefix used in naming alarms for the construct will be set to this value.
* The length must be 1 - 255 characters and although the validation rules are undocumented, we recommend using ASCII and hyphens.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder localAlarmNamePrefixOverride(java.lang.String localAlarmNamePrefixOverride) {
this.localAlarmNamePrefixOverride = localAlarmNamePrefixOverride;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddToAlarmDashboard}
* @param addToAlarmDashboard Flag indicating if the widgets should be added to alarm dashboard.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder addToAlarmDashboard(java.lang.Boolean addToAlarmDashboard) {
this.addToAlarmDashboard = addToAlarmDashboard;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddToDetailDashboard}
* @param addToDetailDashboard Flag indicating if the widgets should be added to detailed dashboard.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder addToDetailDashboard(java.lang.Boolean addToDetailDashboard) {
this.addToDetailDashboard = addToDetailDashboard;
return this;
}
/**
* Sets the value of {@link ApiGatewayV2HttpApiMonitoringProps#getAddToSummaryDashboard}
* @param addToSummaryDashboard Flag indicating if the widgets should be added to summary dashboard.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder addToSummaryDashboard(java.lang.Boolean addToSummaryDashboard) {
this.addToSummaryDashboard = addToSummaryDashboard;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ApiGatewayV2HttpApiMonitoringProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public ApiGatewayV2HttpApiMonitoringProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link ApiGatewayV2HttpApiMonitoringProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ApiGatewayV2HttpApiMonitoringProps {
private final software.amazon.awscdk.services.apigatewayv2.IHttpApi api;
private final java.lang.String apiMethod;
private final java.lang.String apiResource;
private final java.lang.String apiStage;
private final java.lang.Boolean fillTpsWithZeroes;
private final io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod rateComputationMethod;
private final java.lang.String account;
private final java.lang.String region;
private final java.util.Map add4XxCountAlarm;
private final java.util.Map add4XxRateAlarm;
private final java.util.Map add5XxCountAlarm;
private final java.util.Map add5XxRateAlarm;
private final java.util.Map addHighTpsAlarm;
private final java.util.Map addIntegrationLatencyAverageAlarm;
private final java.util.Map addIntegrationLatencyP100Alarm;
private final java.util.Map addIntegrationLatencyP50Alarm;
private final java.util.Map addIntegrationLatencyP70Alarm;
private final java.util.Map addIntegrationLatencyP90Alarm;
private final java.util.Map addIntegrationLatencyP95Alarm;
private final java.util.Map addIntegrationLatencyP9999Alarm;
private final java.util.Map addIntegrationLatencyP999Alarm;
private final java.util.Map addIntegrationLatencyP99Alarm;
private final java.util.Map addIntegrationLatencyTm50Alarm;
private final java.util.Map addIntegrationLatencyTm70Alarm;
private final java.util.Map addIntegrationLatencyTm90Alarm;
private final java.util.Map addIntegrationLatencyTm95Alarm;
private final java.util.Map addIntegrationLatencyTm95OutlierAlarm;
private final java.util.Map addIntegrationLatencyTm9999Alarm;
private final java.util.Map addIntegrationLatencyTm9999OutlierAlarm;
private final java.util.Map addIntegrationLatencyTm999Alarm;
private final java.util.Map addIntegrationLatencyTm999OutlierAlarm;
private final java.util.Map addIntegrationLatencyTm99Alarm;
private final java.util.Map addIntegrationLatencyTm99OutlierAlarm;
private final java.util.Map addLatencyAverageAlarm;
private final java.util.Map addLatencyP100Alarm;
private final java.util.Map addLatencyP50Alarm;
private final java.util.Map addLatencyP70Alarm;
private final java.util.Map addLatencyP90Alarm;
private final java.util.Map addLatencyP95Alarm;
private final java.util.Map addLatencyP9999Alarm;
private final java.util.Map addLatencyP999Alarm;
private final java.util.Map addLatencyP99Alarm;
private final java.util.Map addLatencyTm50Alarm;
private final java.util.Map addLatencyTm70Alarm;
private final java.util.Map addLatencyTm90Alarm;
private final java.util.Map addLatencyTm95Alarm;
private final java.util.Map addLatencyTm95OutlierAlarm;
private final java.util.Map addLatencyTm9999Alarm;
private final java.util.Map addLatencyTm9999OutlierAlarm;
private final java.util.Map addLatencyTm999Alarm;
private final java.util.Map addLatencyTm999OutlierAlarm;
private final java.util.Map addLatencyTm99Alarm;
private final java.util.Map addLatencyTm99OutlierAlarm;
private final java.util.Map addLowTpsAlarm;
private final java.util.List latencyTypesToRender;
private final io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer useCreatedAlarms;
private final java.lang.String alarmFriendlyName;
private final java.lang.String humanReadableName;
private final java.lang.String localAlarmNamePrefixOverride;
private final java.lang.Boolean addToAlarmDashboard;
private final java.lang.Boolean addToDetailDashboard;
private final java.lang.Boolean addToSummaryDashboard;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.api = software.amazon.jsii.Kernel.get(this, "api", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apigatewayv2.IHttpApi.class));
this.apiMethod = software.amazon.jsii.Kernel.get(this, "apiMethod", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.apiResource = software.amazon.jsii.Kernel.get(this, "apiResource", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.apiStage = software.amazon.jsii.Kernel.get(this, "apiStage", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.fillTpsWithZeroes = software.amazon.jsii.Kernel.get(this, "fillTpsWithZeroes", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.rateComputationMethod = software.amazon.jsii.Kernel.get(this, "rateComputationMethod", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod.class));
this.account = software.amazon.jsii.Kernel.get(this, "account", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.add4XxCountAlarm = software.amazon.jsii.Kernel.get(this, "add4xxCountAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ErrorCountThreshold.class)));
this.add4XxRateAlarm = software.amazon.jsii.Kernel.get(this, "add4xxRateAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ErrorRateThreshold.class)));
this.add5XxCountAlarm = software.amazon.jsii.Kernel.get(this, "add5xxCountAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ErrorCountThreshold.class)));
this.add5XxRateAlarm = software.amazon.jsii.Kernel.get(this, "add5xxRateAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.ErrorRateThreshold.class)));
this.addHighTpsAlarm = software.amazon.jsii.Kernel.get(this, "addHighTpsAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.HighTpsThreshold.class)));
this.addIntegrationLatencyAverageAlarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyAverageAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP100Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP100Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP50Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP50Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP70Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP70Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP90Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP90Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP95Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP95Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP9999Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP9999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP999Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyP99Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyP99Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm50Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM50Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm70Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM70Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm90Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM90Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm95Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM95Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm95OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM95OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm9999Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM9999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm9999OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM9999OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm999Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm999OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM999OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm99Alarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM99Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addIntegrationLatencyTm99OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addIntegrationLatencyTM99OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyAverageAlarm = software.amazon.jsii.Kernel.get(this, "addLatencyAverageAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP100Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP100Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP50Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP50Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP70Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP70Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP90Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP90Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP95Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP95Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP9999Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP9999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP999Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyP99Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyP99Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm50Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM50Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm70Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM70Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm90Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM90Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm95Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM95Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm95OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM95OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm9999Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM9999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm9999OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM9999OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm999Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM999Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm999OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM999OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm99Alarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM99Alarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLatencyTm99OutlierAlarm = software.amazon.jsii.Kernel.get(this, "addLatencyTM99OutlierAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyThreshold.class)));
this.addLowTpsAlarm = software.amazon.jsii.Kernel.get(this, "addLowTpsAlarm", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LowTpsThreshold.class)));
this.latencyTypesToRender = software.amazon.jsii.Kernel.get(this, "latencyTypesToRender", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.LatencyType.class)));
this.useCreatedAlarms = software.amazon.jsii.Kernel.get(this, "useCreatedAlarms", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkmonitoringconstructs.IAlarmConsumer.class));
this.alarmFriendlyName = software.amazon.jsii.Kernel.get(this, "alarmFriendlyName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.humanReadableName = software.amazon.jsii.Kernel.get(this, "humanReadableName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.localAlarmNamePrefixOverride = software.amazon.jsii.Kernel.get(this, "localAlarmNamePrefixOverride", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.addToAlarmDashboard = software.amazon.jsii.Kernel.get(this, "addToAlarmDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.addToDetailDashboard = software.amazon.jsii.Kernel.get(this, "addToDetailDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.addToSummaryDashboard = software.amazon.jsii.Kernel.get(this, "addToSummaryDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.api = java.util.Objects.requireNonNull(builder.api, "api is required");
this.apiMethod = builder.apiMethod;
this.apiResource = builder.apiResource;
this.apiStage = builder.apiStage;
this.fillTpsWithZeroes = builder.fillTpsWithZeroes;
this.rateComputationMethod = builder.rateComputationMethod;
this.account = builder.account;
this.region = builder.region;
this.add4XxCountAlarm = (java.util.Map)builder.add4XxCountAlarm;
this.add4XxRateAlarm = (java.util.Map)builder.add4XxRateAlarm;
this.add5XxCountAlarm = (java.util.Map)builder.add5XxCountAlarm;
this.add5XxRateAlarm = (java.util.Map)builder.add5XxRateAlarm;
this.addHighTpsAlarm = (java.util.Map)builder.addHighTpsAlarm;
this.addIntegrationLatencyAverageAlarm = (java.util.Map)builder.addIntegrationLatencyAverageAlarm;
this.addIntegrationLatencyP100Alarm = (java.util.Map)builder.addIntegrationLatencyP100Alarm;
this.addIntegrationLatencyP50Alarm = (java.util.Map)builder.addIntegrationLatencyP50Alarm;
this.addIntegrationLatencyP70Alarm = (java.util.Map)builder.addIntegrationLatencyP70Alarm;
this.addIntegrationLatencyP90Alarm = (java.util.Map)builder.addIntegrationLatencyP90Alarm;
this.addIntegrationLatencyP95Alarm = (java.util.Map)builder.addIntegrationLatencyP95Alarm;
this.addIntegrationLatencyP9999Alarm = (java.util.Map)builder.addIntegrationLatencyP9999Alarm;
this.addIntegrationLatencyP999Alarm = (java.util.Map)builder.addIntegrationLatencyP999Alarm;
this.addIntegrationLatencyP99Alarm = (java.util.Map)builder.addIntegrationLatencyP99Alarm;
this.addIntegrationLatencyTm50Alarm = (java.util.Map)builder.addIntegrationLatencyTm50Alarm;
this.addIntegrationLatencyTm70Alarm = (java.util.Map)builder.addIntegrationLatencyTm70Alarm;
this.addIntegrationLatencyTm90Alarm = (java.util.Map)builder.addIntegrationLatencyTm90Alarm;
this.addIntegrationLatencyTm95Alarm = (java.util.Map)builder.addIntegrationLatencyTm95Alarm;
this.addIntegrationLatencyTm95OutlierAlarm = (java.util.Map)builder.addIntegrationLatencyTm95OutlierAlarm;
this.addIntegrationLatencyTm9999Alarm = (java.util.Map)builder.addIntegrationLatencyTm9999Alarm;
this.addIntegrationLatencyTm9999OutlierAlarm = (java.util.Map)builder.addIntegrationLatencyTm9999OutlierAlarm;
this.addIntegrationLatencyTm999Alarm = (java.util.Map)builder.addIntegrationLatencyTm999Alarm;
this.addIntegrationLatencyTm999OutlierAlarm = (java.util.Map)builder.addIntegrationLatencyTm999OutlierAlarm;
this.addIntegrationLatencyTm99Alarm = (java.util.Map)builder.addIntegrationLatencyTm99Alarm;
this.addIntegrationLatencyTm99OutlierAlarm = (java.util.Map)builder.addIntegrationLatencyTm99OutlierAlarm;
this.addLatencyAverageAlarm = (java.util.Map)builder.addLatencyAverageAlarm;
this.addLatencyP100Alarm = (java.util.Map)builder.addLatencyP100Alarm;
this.addLatencyP50Alarm = (java.util.Map)builder.addLatencyP50Alarm;
this.addLatencyP70Alarm = (java.util.Map)builder.addLatencyP70Alarm;
this.addLatencyP90Alarm = (java.util.Map)builder.addLatencyP90Alarm;
this.addLatencyP95Alarm = (java.util.Map)builder.addLatencyP95Alarm;
this.addLatencyP9999Alarm = (java.util.Map)builder.addLatencyP9999Alarm;
this.addLatencyP999Alarm = (java.util.Map)builder.addLatencyP999Alarm;
this.addLatencyP99Alarm = (java.util.Map)builder.addLatencyP99Alarm;
this.addLatencyTm50Alarm = (java.util.Map)builder.addLatencyTm50Alarm;
this.addLatencyTm70Alarm = (java.util.Map)builder.addLatencyTm70Alarm;
this.addLatencyTm90Alarm = (java.util.Map)builder.addLatencyTm90Alarm;
this.addLatencyTm95Alarm = (java.util.Map)builder.addLatencyTm95Alarm;
this.addLatencyTm95OutlierAlarm = (java.util.Map)builder.addLatencyTm95OutlierAlarm;
this.addLatencyTm9999Alarm = (java.util.Map)builder.addLatencyTm9999Alarm;
this.addLatencyTm9999OutlierAlarm = (java.util.Map)builder.addLatencyTm9999OutlierAlarm;
this.addLatencyTm999Alarm = (java.util.Map)builder.addLatencyTm999Alarm;
this.addLatencyTm999OutlierAlarm = (java.util.Map)builder.addLatencyTm999OutlierAlarm;
this.addLatencyTm99Alarm = (java.util.Map)builder.addLatencyTm99Alarm;
this.addLatencyTm99OutlierAlarm = (java.util.Map)builder.addLatencyTm99OutlierAlarm;
this.addLowTpsAlarm = (java.util.Map)builder.addLowTpsAlarm;
this.latencyTypesToRender = (java.util.List)builder.latencyTypesToRender;
this.useCreatedAlarms = builder.useCreatedAlarms;
this.alarmFriendlyName = builder.alarmFriendlyName;
this.humanReadableName = builder.humanReadableName;
this.localAlarmNamePrefixOverride = builder.localAlarmNamePrefixOverride;
this.addToAlarmDashboard = builder.addToAlarmDashboard;
this.addToDetailDashboard = builder.addToDetailDashboard;
this.addToSummaryDashboard = builder.addToSummaryDashboard;
}
@Override
public final software.amazon.awscdk.services.apigatewayv2.IHttpApi getApi() {
return this.api;
}
@Override
public final java.lang.String getApiMethod() {
return this.apiMethod;
}
@Override
public final java.lang.String getApiResource() {
return this.apiResource;
}
@Override
public final java.lang.String getApiStage() {
return this.apiStage;
}
@Override
public final java.lang.Boolean getFillTpsWithZeroes() {
return this.fillTpsWithZeroes;
}
@Override
public final io.github.cdklabs.cdkmonitoringconstructs.RateComputationMethod getRateComputationMethod() {
return this.rateComputationMethod;
}
@Override
public final java.lang.String getAccount() {
return this.account;
}
@Override
public final java.lang.String getRegion() {
return this.region;
}
@Override
public final java.util.Map getAdd4xxCountAlarm() {
return this.add4XxCountAlarm;
}
@Override
public final java.util.Map getAdd4xxRateAlarm() {
return this.add4XxRateAlarm;
}
@Override
public final java.util.Map getAdd5xxCountAlarm() {
return this.add5XxCountAlarm;
}
@Override
public final java.util.Map getAdd5xxRateAlarm() {
return this.add5XxRateAlarm;
}
@Override
public final java.util.Map getAddHighTpsAlarm() {
return this.addHighTpsAlarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyAverageAlarm() {
return this.addIntegrationLatencyAverageAlarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP100Alarm() {
return this.addIntegrationLatencyP100Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP50Alarm() {
return this.addIntegrationLatencyP50Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP70Alarm() {
return this.addIntegrationLatencyP70Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP90Alarm() {
return this.addIntegrationLatencyP90Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP95Alarm() {
return this.addIntegrationLatencyP95Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP9999Alarm() {
return this.addIntegrationLatencyP9999Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP999Alarm() {
return this.addIntegrationLatencyP999Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyP99Alarm() {
return this.addIntegrationLatencyP99Alarm;
}
@Override
public final java.util.Map getAddIntegrationLatencyTM50Alarm() {
return this.addIntegrationLatencyTm50Alarm;
}
@Override
public final java.util.Map