Interface CfnMonitoringSchedule.IScheduleConfigProperty
Configuration details about the monitoring schedule.
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IScheduleConfigProperty
Syntax (vb)
Public Interface IScheduleConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var scheduleConfigProperty = new ScheduleConfigProperty {
ScheduleExpression = "scheduleExpression",
// the properties below are optional
DataAnalysisEndTime = "dataAnalysisEndTime",
DataAnalysisStartTime = "dataAnalysisStartTime"
};
Synopsis
Properties
DataAnalysisEndTime | Sets the end time for a monitoring job window. |
DataAnalysisStartTime | Sets the start time for a monitoring job window. |
ScheduleExpression | A cron expression that describes details about the monitoring schedule. |
Properties
DataAnalysisEndTime
Sets the end time for a monitoring job window.
virtual string DataAnalysisEndTime { get; }
Property Value
System.String
Remarks
Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression
parameter. Specify this offset in ISO 8601 duration format. For example, if you want to end the window one hour before the start of each monitoring job, you would specify: "-PT1H"
.
The end time that you specify must not follow the start time that you specify by more than 24 hours. You specify the start time with the DataAnalysisStartTime
parameter.
If you set ScheduleExpression
to NOW
, this parameter is required.
DataAnalysisStartTime
Sets the start time for a monitoring job window.
virtual string DataAnalysisStartTime { get; }
Property Value
System.String
Remarks
Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression
parameter. Specify this offset in ISO 8601 duration format. For example, if you want to monitor the five hours of data in your dataset that precede the start of each monitoring job, you would specify: "-PT5H"
.
The start time that you specify must not precede the end time that you specify by more than 24 hours. You specify the end time with the DataAnalysisEndTime
parameter.
If you set ScheduleExpression
to NOW
, this parameter is required.
ScheduleExpression
A cron expression that describes details about the monitoring schedule.
string ScheduleExpression { get; }
Property Value
System.String
Remarks
The supported cron expressions are:
Hourly: cron(0 * ? * * *)
cron(0 [00-23] ? * * *)
NOW
For example, the following are valid cron expressions:
To support running every 6, 12 hours, the following are also supported:
cron(0 [00-23]/[01-24] ? * * *)
For example, the following are valid cron expressions:
You can also specify the keyword NOW
to run the monitoring job immediately, one time, without recurring.