1. Registry
  2. Packages
  3. Oh Dear
  4. API Docs
  5. CronCheck
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
ohdear logo
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher

    An Oh Dear cron job monitor. Curl pingUrl from the job on success.

    Create CronCheck Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CronCheck(name: string, args: CronCheckArgs, opts?: CustomResourceOptions);
    @overload
    def CronCheck(resource_name: str,
                  args: CronCheckArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def CronCheck(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  monitor_id: Optional[int] = None,
                  name: Optional[str] = None,
                  type: Optional[str] = None,
                  cron_expression: Optional[str] = None,
                  description: Optional[str] = None,
                  frequency_in_minutes: Optional[int] = None,
                  grace_time_in_minutes: Optional[int] = None,
                  server_timezone: Optional[str] = None)
    func NewCronCheck(ctx *Context, name string, args CronCheckArgs, opts ...ResourceOption) (*CronCheck, error)
    public CronCheck(string name, CronCheckArgs args, CustomResourceOptions? opts = null)
    public CronCheck(String name, CronCheckArgs args)
    public CronCheck(String name, CronCheckArgs args, CustomResourceOptions options)
    
    type: ohdear:CronCheck
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ohdear_cron_check" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CronCheckArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CronCheckArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CronCheckArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CronCheckArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CronCheckArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cronCheckResource = new Ohdear.CronCheck("cronCheckResource", new()
    {
        MonitorId = 0,
        Name = "string",
        Type = "string",
        CronExpression = "string",
        Description = "string",
        FrequencyInMinutes = 0,
        GraceTimeInMinutes = 0,
        ServerTimezone = "string",
    });
    
    example, err := ohdear.NewCronCheck(ctx, "cronCheckResource", &ohdear.CronCheckArgs{
    	MonitorId:          pulumi.Int(0),
    	Name:               pulumi.String("string"),
    	Type:               pulumi.String("string"),
    	CronExpression:     pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	FrequencyInMinutes: pulumi.Int(0),
    	GraceTimeInMinutes: pulumi.Int(0),
    	ServerTimezone:     pulumi.String("string"),
    })
    
    resource "ohdear_cron_check" "cronCheckResource" {
      pulumi {
        replace_on_changes = [monitor_id]
      }
      lifecycle {
        create_before_destroy = true
      }
      monitor_id            = 0
      name                  = "string"
      type                  = "string"
      cron_expression       = "string"
      description           = "string"
      frequency_in_minutes  = 0
      grace_time_in_minutes = 0
      server_timezone       = "string"
    }
    
    var cronCheckResource = new CronCheck("cronCheckResource", CronCheckArgs.builder()
        .monitorId(0)
        .name("string")
        .type("string")
        .cronExpression("string")
        .description("string")
        .frequencyInMinutes(0)
        .graceTimeInMinutes(0)
        .serverTimezone("string")
        .build());
    
    cron_check_resource = ohdear.CronCheck("cronCheckResource",
        monitor_id=0,
        name="string",
        type="string",
        cron_expression="string",
        description="string",
        frequency_in_minutes=0,
        grace_time_in_minutes=0,
        server_timezone="string")
    
    const cronCheckResource = new ohdear.CronCheck("cronCheckResource", {
        monitorId: 0,
        name: "string",
        type: "string",
        cronExpression: "string",
        description: "string",
        frequencyInMinutes: 0,
        graceTimeInMinutes: 0,
        serverTimezone: "string",
    });
    
    type: ohdear:CronCheck
    properties:
        cronExpression: string
        description: string
        frequencyInMinutes: 0
        graceTimeInMinutes: 0
        monitorId: 0
        name: string
        serverTimezone: string
        type: string
    

    CronCheck Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CronCheck resource accepts the following input properties:

    MonitorId int
    Monitor this cron check belongs to. Immutable — the API cannot move a check between monitors.
    Name string
    Display name for the cron check.
    Type string
    One of "simple" (uses frequencyInMinutes) or "cron" (uses cronExpression + serverTimezone).
    CronExpression string
    For "cron" checks: crontab expression for when a ping is expected.
    Description string
    Free-form description.
    FrequencyInMinutes int
    For "simple" checks: how often a ping is expected.
    GraceTimeInMinutes int
    How long a ping may be late before the check alerts.
    ServerTimezone string
    For "cron" checks: timezone the expression is evaluated in, e.g. Europe/Berlin.
    MonitorId int
    Monitor this cron check belongs to. Immutable — the API cannot move a check between monitors.
    Name string
    Display name for the cron check.
    Type string
    One of "simple" (uses frequencyInMinutes) or "cron" (uses cronExpression + serverTimezone).
    CronExpression string
    For "cron" checks: crontab expression for when a ping is expected.
    Description string
    Free-form description.
    FrequencyInMinutes int
    For "simple" checks: how often a ping is expected.
    GraceTimeInMinutes int
    How long a ping may be late before the check alerts.
    ServerTimezone string
    For "cron" checks: timezone the expression is evaluated in, e.g. Europe/Berlin.
    monitor_id number
    Monitor this cron check belongs to. Immutable — the API cannot move a check between monitors.
    name string
    Display name for the cron check.
    type string
    One of "simple" (uses frequencyInMinutes) or "cron" (uses cronExpression + serverTimezone).
    cron_expression string
    For "cron" checks: crontab expression for when a ping is expected.
    description string
    Free-form description.
    frequency_in_minutes number
    For "simple" checks: how often a ping is expected.
    grace_time_in_minutes number
    How long a ping may be late before the check alerts.
    server_timezone string
    For "cron" checks: timezone the expression is evaluated in, e.g. Europe/Berlin.
    monitorId Integer
    Monitor this cron check belongs to. Immutable — the API cannot move a check between monitors.
    name String
    Display name for the cron check.
    type String
    One of "simple" (uses frequencyInMinutes) or "cron" (uses cronExpression + serverTimezone).
    cronExpression String
    For "cron" checks: crontab expression for when a ping is expected.
    description String
    Free-form description.
    frequencyInMinutes Integer
    For "simple" checks: how often a ping is expected.
    graceTimeInMinutes Integer
    How long a ping may be late before the check alerts.
    serverTimezone String
    For "cron" checks: timezone the expression is evaluated in, e.g. Europe/Berlin.
    monitorId number
    Monitor this cron check belongs to. Immutable — the API cannot move a check between monitors.
    name string
    Display name for the cron check.
    type string
    One of "simple" (uses frequencyInMinutes) or "cron" (uses cronExpression + serverTimezone).
    cronExpression string
    For "cron" checks: crontab expression for when a ping is expected.
    description string
    Free-form description.
    frequencyInMinutes number
    For "simple" checks: how often a ping is expected.
    graceTimeInMinutes number
    How long a ping may be late before the check alerts.
    serverTimezone string
    For "cron" checks: timezone the expression is evaluated in, e.g. Europe/Berlin.
    monitor_id int
    Monitor this cron check belongs to. Immutable — the API cannot move a check between monitors.
    name str
    Display name for the cron check.
    type str
    One of "simple" (uses frequencyInMinutes) or "cron" (uses cronExpression + serverTimezone).
    cron_expression str
    For "cron" checks: crontab expression for when a ping is expected.
    description str
    Free-form description.
    frequency_in_minutes int
    For "simple" checks: how often a ping is expected.
    grace_time_in_minutes int
    How long a ping may be late before the check alerts.
    server_timezone str
    For "cron" checks: timezone the expression is evaluated in, e.g. Europe/Berlin.
    monitorId Number
    Monitor this cron check belongs to. Immutable — the API cannot move a check between monitors.
    name String
    Display name for the cron check.
    type String
    One of "simple" (uses frequencyInMinutes) or "cron" (uses cronExpression + serverTimezone).
    cronExpression String
    For "cron" checks: crontab expression for when a ping is expected.
    description String
    Free-form description.
    frequencyInMinutes Number
    For "simple" checks: how often a ping is expected.
    graceTimeInMinutes Number
    How long a ping may be late before the check alerts.
    serverTimezone String
    For "cron" checks: timezone the expression is evaluated in, e.g. Europe/Berlin.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CronCheck resource produces the following output properties:

    CreatedAt string
    When the cron check was created, as an ISO 8601 timestamp.
    CronCheckId int
    Numeric Oh Dear cron check ID.
    HumanReadableCronExpression string
    Plain-English rendering of the schedule.
    Id string
    The provider-assigned unique ID for this managed resource.
    PingUrl string
    URL the job must request on each successful run.
    Uuid string
    Stable UUID for the cron check; part of the ping URL.
    CreatedAt string
    When the cron check was created, as an ISO 8601 timestamp.
    CronCheckId int
    Numeric Oh Dear cron check ID.
    HumanReadableCronExpression string
    Plain-English rendering of the schedule.
    Id string
    The provider-assigned unique ID for this managed resource.
    PingUrl string
    URL the job must request on each successful run.
    Uuid string
    Stable UUID for the cron check; part of the ping URL.
    created_at string
    When the cron check was created, as an ISO 8601 timestamp.
    cron_check_id number
    Numeric Oh Dear cron check ID.
    human_readable_cron_expression string
    Plain-English rendering of the schedule.
    id string
    The provider-assigned unique ID for this managed resource.
    ping_url string
    URL the job must request on each successful run.
    uuid string
    Stable UUID for the cron check; part of the ping URL.
    createdAt String
    When the cron check was created, as an ISO 8601 timestamp.
    cronCheckId Integer
    Numeric Oh Dear cron check ID.
    humanReadableCronExpression String
    Plain-English rendering of the schedule.
    id String
    The provider-assigned unique ID for this managed resource.
    pingUrl String
    URL the job must request on each successful run.
    uuid String
    Stable UUID for the cron check; part of the ping URL.
    createdAt string
    When the cron check was created, as an ISO 8601 timestamp.
    cronCheckId number
    Numeric Oh Dear cron check ID.
    humanReadableCronExpression string
    Plain-English rendering of the schedule.
    id string
    The provider-assigned unique ID for this managed resource.
    pingUrl string
    URL the job must request on each successful run.
    uuid string
    Stable UUID for the cron check; part of the ping URL.
    created_at str
    When the cron check was created, as an ISO 8601 timestamp.
    cron_check_id int
    Numeric Oh Dear cron check ID.
    human_readable_cron_expression str
    Plain-English rendering of the schedule.
    id str
    The provider-assigned unique ID for this managed resource.
    ping_url str
    URL the job must request on each successful run.
    uuid str
    Stable UUID for the cron check; part of the ping URL.
    createdAt String
    When the cron check was created, as an ISO 8601 timestamp.
    cronCheckId Number
    Numeric Oh Dear cron check ID.
    humanReadableCronExpression String
    Plain-English rendering of the schedule.
    id String
    The provider-assigned unique ID for this managed resource.
    pingUrl String
    URL the job must request on each successful run.
    uuid String
    Stable UUID for the cron check; part of the ping URL.

    Package Details

    Repository
    ohdear matthiashamacher/pulumi-ohdear
    License
    Apache-2.0
    ohdear logo
    Viewing docs for Oh Dear v1.0.0
    published on Tuesday, Sep 1, 2026 by Matthias Hamacher

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial