Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
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:
- Monitor
Id 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).
- Cron
Expression string - For "cron" checks: crontab expression for when a ping is expected.
- Description string
- Free-form description.
- Frequency
In intMinutes - For "simple" checks: how often a ping is expected.
- Grace
Time intIn Minutes - 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.
- Monitor
Id 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).
- Cron
Expression string - For "cron" checks: crontab expression for when a ping is expected.
- Description string
- Free-form description.
- Frequency
In intMinutes - For "simple" checks: how often a ping is expected.
- Grace
Time intIn Minutes - 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.
- 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_ numberminutes - For "simple" checks: how often a ping is expected.
- grace_
time_ numberin_ minutes - 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.
- monitor
Id 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).
- cron
Expression String - For "cron" checks: crontab expression for when a ping is expected.
- description String
- Free-form description.
- frequency
In IntegerMinutes - For "simple" checks: how often a ping is expected.
- grace
Time IntegerIn Minutes - 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.
- 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 numberMinutes - For "simple" checks: how often a ping is expected.
- grace
Time numberIn Minutes - 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.
- 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_ intminutes - For "simple" checks: how often a ping is expected.
- grace_
time_ intin_ minutes - 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.
- 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 NumberMinutes - For "simple" checks: how often a ping is expected.
- grace
Time NumberIn Minutes - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the CronCheck resource produces the following output properties:
- Created
At string - When the cron check was created, as an ISO 8601 timestamp.
- Cron
Check intId - Numeric Oh Dear cron check ID.
- Human
Readable stringCron Expression - 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.
- Created
At string - When the cron check was created, as an ISO 8601 timestamp.
- Cron
Check intId - Numeric Oh Dear cron check ID.
- Human
Readable stringCron Expression - 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.
- created_
at string - When the cron check was created, as an ISO 8601 timestamp.
- cron_
check_ numberid - Numeric Oh Dear cron check ID.
- human_
readable_ stringcron_ expression - 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.
- created
At String - When the cron check was created, as an ISO 8601 timestamp.
- cron
Check IntegerId - Numeric Oh Dear cron check ID.
- human
Readable StringCron Expression - 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.
- created
At string - When the cron check was created, as an ISO 8601 timestamp.
- cron
Check numberId - Numeric Oh Dear cron check ID.
- human
Readable stringCron Expression - 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.
- created_
at str - When the cron check was created, as an ISO 8601 timestamp.
- cron_
check_ intid - Numeric Oh Dear cron check ID.
- human_
readable_ strcron_ expression - 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.
- created
At String - When the cron check was created, as an ISO 8601 timestamp.
- cron
Check NumberId - Numeric Oh Dear cron check ID.
- human
Readable StringCron Expression - 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.
Package Details
- Repository
- ohdear matthiashamacher/pulumi-ohdear
- License
- Apache-2.0
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
published on Tuesday, Sep 1, 2026 by Matthias Hamacher