Build Time Restriction Object

Build a new Opsgenie Time Restriction object for schedule rotations as an input value with Opsgenie action cards.

Time restrictions are used to limit schedule rotation to a certain day and time of the week, using multiple start and end times for each day of the week. This allows for applying different scheduling rotations at different times.

Options

Field Definition Type Required
Restriction Type Choose one of the following options to build a time restriction object:
  • Time Only: Assemble a time restriction object with time values only.
  • Day and Time: Assemble a time restriction object with time and day values.

Dropdown

TRUE

Input

Field Definition Type Required

Restriction

Start Day Start day of the rotation. Options are individual days of the week.

Dropdown

FALSE

End Day End day of the rotation. Options are individual days of the week.

Dropdown

FALSE

Start Hour Hour value for the start of the time restriction, in whole numbers from 0 to 23.

Dropdown

FALSE

Start Minute Minute value for the start of the time restriction. Options are 00 or 30.

Dropdown

FALSE

End Hour Hour value for the end of the time restriction, in whole numbers from 0 to 23.

Dropdown

FALSE

End Minute Minute value for the end of the time restriction. Options are 00 or 30.

Dropdown

FALSE

Output

Field Definition Type
Time Restriction Resulting time restriction object.

Example with time values only:

Copy
{
"startHour": 5
"startMin": 30
"endHour": 16
"endMin": 0
}

Example with day and time values:

Copy
[
{
"startDay":"monday",
"endDay":"tuesday",
"startHour":8,
"endHour":18,
"startMin":0,
"endMin":30
},
{
"startDay":"thursday",
"endDay":"sunday",
"startHour":6,
"endHour":8,
"startMin":0,
"endMin":30
}
]

Object

Related topics

Opsgenie connector

Workflow elements

Opsgenie API overview