/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Configuration details about the monitoring schedule.

See Also:

* AWS * API Reference

*/ class ScheduleConfig { public: AWS_SAGEMAKER_API ScheduleConfig(); AWS_SAGEMAKER_API ScheduleConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API ScheduleConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; } /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; } /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; } /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); } /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); } /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline ScheduleConfig& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;} /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline ScheduleConfig& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;} /** *

A cron expression that describes details about the monitoring schedule.

*

Currently the only supported cron expressions are:

  • If you * want to set the job to start every hour, please use the following:

    * Hourly: cron(0 * ? * * *)

  • If you want to start * the job daily:

    cron(0 [00-23] ? * * *)

*

For example, the following are valid cron expressions:

  • Daily * at noon UTC: cron(0 12 ? * * *)

  • Daily at * midnight UTC: cron(0 0 ? * * *)

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:

  • Every 12 hours, starting at 5pm * UTC: cron(0 17/12 ? * * *)

  • Every two hours * starting at midnight: cron(0 0/2 ? * * *)

*
  • Even though the cron expression is set to start at 5PM UTC, note * that there could be a delay of 0-20 minutes from the actual requested time to * run the execution.

  • We recommend that if you would like a * daily schedule, you do not provide this parameter. Amazon SageMaker will pick a * time for running every day.

*/ inline ScheduleConfig& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;} private: Aws::String m_scheduleExpression; bool m_scheduleExpressionHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws