public static interface CfnCanary.VisualReferenceProperty
If you omit this parameter, no changes are made to any baseline screenshots that the canary might be using already.
Visual monitoring is supported only on canaries running the syn-puppeteer-node-3.2 runtime or later. For more information, see Visual monitoring and Visual monitoring blueprint
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.synthetics.*; VisualReferenceProperty visualReferenceProperty = VisualReferenceProperty.builder() .baseCanaryRunId("baseCanaryRunId") // the properties below are optional .baseScreenshots(List.of(BaseScreenshotProperty.builder() .screenshotName("screenshotName") // the properties below are optional .ignoreCoordinates(List.of("ignoreCoordinates")) .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnCanary.VisualReferenceProperty.Builder
A builder for
CfnCanary.VisualReferenceProperty |
static class |
CfnCanary.VisualReferenceProperty.Jsii$Proxy
An implementation for
CfnCanary.VisualReferenceProperty |
Modifier and Type | Method and Description |
---|---|
static CfnCanary.VisualReferenceProperty.Builder |
builder() |
java.lang.String |
getBaseCanaryRunId()
Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this canary.
|
default java.lang.Object |
getBaseScreenshots()
An array of screenshots that are used as the baseline for comparisons during visual monitoring.
|
java.lang.String getBaseCanaryRunId()
Valid values are nextrun
to use the screenshots from the next run after this update is made, lastrun
to use the screenshots from the most recent run before this update was made, or the value of Id
in the CanaryRun from any past run of this canary.
default java.lang.Object getBaseScreenshots()
static CfnCanary.VisualReferenceProperty.Builder builder()