Class Canary
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.synthetics.alpha.Canary
- All Implemented Interfaces:
IResource,IConnectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-10-16T19:21:19.995Z")
@Stability(Deprecated)
@Deprecated
public class Canary
extends Resource
implements IConnectable
Deprecated.
(deprecated) Define a new Canary.
Example:
Canary canary = Canary.Builder.create(this, "MyCanary")
.schedule(Schedule.rate(Duration.minutes(5)))
.test(Test.custom(CustomTestOptions.builder()
.code(Code.fromAsset(join(__dirname, "canary")))
.handler("index.handler")
.build()))
.runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_4_0)
.environmentVariables(Map.of(
"stage", "prod"))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCanary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedCanary(software.amazon.jsii.JsiiObjectRef objRef) Deprecated.Canary(software.constructs.Construct scope, String id, CanaryProps props) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.getRole()Deprecated.Deprecated.metricDuration(MetricOptions options) Deprecated.Deprecated.metricFailed(MetricOptions options) Deprecated.Deprecated.metricSuccessPercent(MetricOptions options) Deprecated.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Canary
protected Canary(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Canary
protected Canary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
Canary
@Stability(Deprecated) @Deprecated public Canary(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CanaryProps props) Deprecated.- Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
metricDuration
@Stability(Deprecated) @Deprecated @NotNull public Metric metricDuration(@Nullable MetricOptions options) Deprecated.(deprecated) Measure the Duration of a single canary run, in seconds.Default: avg over 5 minutes
- Parameters:
options-- configuration options for the metric.
-
metricDuration
Deprecated.(deprecated) Measure the Duration of a single canary run, in seconds.Default: avg over 5 minutes
-
metricFailed
@Stability(Deprecated) @Deprecated @NotNull public Metric metricFailed(@Nullable MetricOptions options) Deprecated.(deprecated) Measure the number of failed canary runs over a given time period.Default: sum over 5 minutes
- Parameters:
options-- configuration options for the metric.
-
metricFailed
Deprecated.(deprecated) Measure the number of failed canary runs over a given time period.Default: sum over 5 minutes
-
metricSuccessPercent
@Stability(Deprecated) @Deprecated @NotNull public Metric metricSuccessPercent(@Nullable MetricOptions options) Deprecated.(deprecated) Measure the percentage of successful canary runs.Default: avg over 5 minutes
- Parameters:
options-- configuration options for the metric.
-
metricSuccessPercent
Deprecated.(deprecated) Measure the percentage of successful canary runs.Default: avg over 5 minutes
-
getArtifactsBucket
Deprecated.(deprecated) Bucket where data from each canary run is stored. -
getCanaryId
Deprecated.(deprecated) The canary ID. -
getCanaryName
Deprecated.(deprecated) The canary Name. -
getCanaryState
Deprecated.(deprecated) The state of the canary.For example, 'RUNNING', 'STOPPED', 'NOT STARTED', or 'ERROR'.
-
getConnections
Deprecated.(deprecated) Access the Connections object.Will fail if not a VPC-enabled Canary
- Specified by:
getConnectionsin interfaceIConnectable
-
getRole
Deprecated.(deprecated) Execution role associated with this Canary.
-