Class Schedule
(experimental) Schedule for canary runs.
Inheritance
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.AWS.Synthetics.dll
Syntax (csharp)
public class Schedule : DeputyBase
Syntax (vb)
Public Class Schedule
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var schedule = Schedule.Rate(Duration.Minutes(5));
Synopsis
Constructors
Schedule(By |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Schedule(Deputy |
Used by jsii to construct an instance of this class from DeputyProps |
Properties
Expression |
(experimental) The Schedule expression. |
Methods
Cron(ICron |
(experimental) Create a schedule from a set of cron fields. |
Expression(String) | (experimental) Construct a schedule from a literal schedule expression. |
Once() | (experimental) The canary will be executed once. |
Rate(Duration) | (experimental) Construct a schedule from an interval. |
Constructors
Schedule(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Schedule(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
Schedule(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Schedule(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Properties
ExpressionString
(experimental) The Schedule expression.
public virtual string ExpressionString { get; }
Property Value
System.
Remarks
Stability: Experimental
Methods
Cron(ICronOptions)
(experimental) Create a schedule from a set of cron fields.
public static Schedule Cron(ICronOptions options)
Parameters
- options ICron
Options
Returns
Remarks
Stability: Experimental
Expression(String)
(experimental) Construct a schedule from a literal schedule expression.
public static Schedule Expression(string expression)
Parameters
- expression System.
String The expression to use.
Returns
Remarks
The expression must be in a rate(number units)
format.
For example, Schedule.expression('rate(10 minutes)')
Stability: Experimental
Once()
(experimental) The canary will be executed once.
public static Schedule Once()
Returns
Remarks
Stability: Experimental
Rate(Duration)
(experimental) Construct a schedule from an interval.
public static Schedule Rate(Duration interval)
Parameters
- interval Duration
The interval at which to run the canary.
Returns
Remarks
Allowed values: 0 (for a single run) or between 1 and 60 minutes.
To specify a single run, you can use Schedule.once()
.
Stability: Experimental