Class CanaryRunConfig


  • public final class CanaryRunConfig
    extends java.lang.Object
    • Method Detail

      • activeTracing

        public java.util.Optional<java.lang.Boolean> activeTracing()
        Returns:
        Whether this canary is to use active AWS X-Ray tracing when it runs. You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime.
      • environmentVariables

        public java.util.Map<java.lang.String,​java.lang.String> environmentVariables()
        Returns:
        Map of environment variables that are accessible from the canary during execution. Please see [AWS Docs](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime) for variables reserved for Lambda.
      • memoryInMb

        public java.util.Optional<java.lang.Integer> memoryInMb()
        Returns:
        Maximum amount of memory available to the canary while it is running, in MB. The value you specify must be a multiple of 64.
      • timeoutInSeconds

        public java.util.Optional<java.lang.Integer> timeoutInSeconds()
        Returns:
        Number of seconds the canary is allowed to run before it must stop. If you omit this field, the frequency of the canary is used, up to a maximum of 840 (14 minutes).