1. Packages
  2. Grafana Cloud
  3. API Docs
  4. onCall
  5. OnCallShift
Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse

grafana.onCall.OnCallShift

Explore with Pulumi AI

Create OnCallShift Resource

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

Constructor syntax

new OnCallShift(name: string, args: OnCallShiftArgs, opts?: CustomResourceOptions);
@overload
def OnCallShift(resource_name: str,
                args: OnCallShiftArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def OnCallShift(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                duration: Optional[int] = None,
                type: Optional[str] = None,
                start: Optional[str] = None,
                rolling_users: Optional[Sequence[Sequence[str]]] = None,
                start_rotation_from_user_index: Optional[int] = None,
                interval: Optional[int] = None,
                level: Optional[int] = None,
                name: Optional[str] = None,
                by_days: Optional[Sequence[str]] = None,
                by_months: Optional[Sequence[int]] = None,
                frequency: Optional[str] = None,
                team_id: Optional[str] = None,
                time_zone: Optional[str] = None,
                by_monthdays: Optional[Sequence[int]] = None,
                until: Optional[str] = None,
                users: Optional[Sequence[str]] = None,
                week_start: Optional[str] = None)
func NewOnCallShift(ctx *Context, name string, args OnCallShiftArgs, opts ...ResourceOption) (*OnCallShift, error)
public OnCallShift(string name, OnCallShiftArgs args, CustomResourceOptions? opts = null)
public OnCallShift(String name, OnCallShiftArgs args)
public OnCallShift(String name, OnCallShiftArgs args, CustomResourceOptions options)
type: grafana:onCall:OnCallShift
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OnCallShiftArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OnCallShiftArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OnCallShiftArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OnCallShiftArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OnCallShiftArgs
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 onCallShiftResource = new Grafana.OnCall.OnCallShift("onCallShiftResource", new()
{
    Duration = 0,
    Type = "string",
    Start = "string",
    RollingUsers = new[]
    {
        new[]
        {
            "string",
        },
    },
    StartRotationFromUserIndex = 0,
    Interval = 0,
    Level = 0,
    Name = "string",
    ByDays = new[]
    {
        "string",
    },
    ByMonths = new[]
    {
        0,
    },
    Frequency = "string",
    TeamId = "string",
    TimeZone = "string",
    ByMonthdays = new[]
    {
        0,
    },
    Until = "string",
    Users = new[]
    {
        "string",
    },
    WeekStart = "string",
});
Copy
example, err := onCall.NewOnCallShift(ctx, "onCallShiftResource", &onCall.OnCallShiftArgs{
	Duration: pulumi.Int(0),
	Type:     pulumi.String("string"),
	Start:    pulumi.String("string"),
	RollingUsers: pulumi.StringArrayArray{
		pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	StartRotationFromUserIndex: pulumi.Int(0),
	Interval:                   pulumi.Int(0),
	Level:                      pulumi.Int(0),
	Name:                       pulumi.String("string"),
	ByDays: pulumi.StringArray{
		pulumi.String("string"),
	},
	ByMonths: pulumi.IntArray{
		pulumi.Int(0),
	},
	Frequency: pulumi.String("string"),
	TeamId:    pulumi.String("string"),
	TimeZone:  pulumi.String("string"),
	ByMonthdays: pulumi.IntArray{
		pulumi.Int(0),
	},
	Until: pulumi.String("string"),
	Users: pulumi.StringArray{
		pulumi.String("string"),
	},
	WeekStart: pulumi.String("string"),
})
Copy
var onCallShiftResource = new OnCallShift("onCallShiftResource", OnCallShiftArgs.builder()
    .duration(0)
    .type("string")
    .start("string")
    .rollingUsers("string")
    .startRotationFromUserIndex(0)
    .interval(0)
    .level(0)
    .name("string")
    .byDays("string")
    .byMonths(0)
    .frequency("string")
    .teamId("string")
    .timeZone("string")
    .byMonthdays(0)
    .until("string")
    .users("string")
    .weekStart("string")
    .build());
Copy
on_call_shift_resource = grafana.on_call.OnCallShift("onCallShiftResource",
    duration=0,
    type="string",
    start="string",
    rolling_users=[["string"]],
    start_rotation_from_user_index=0,
    interval=0,
    level=0,
    name="string",
    by_days=["string"],
    by_months=[0],
    frequency="string",
    team_id="string",
    time_zone="string",
    by_monthdays=[0],
    until="string",
    users=["string"],
    week_start="string")
Copy
const onCallShiftResource = new grafana.oncall.OnCallShift("onCallShiftResource", {
    duration: 0,
    type: "string",
    start: "string",
    rollingUsers: [["string"]],
    startRotationFromUserIndex: 0,
    interval: 0,
    level: 0,
    name: "string",
    byDays: ["string"],
    byMonths: [0],
    frequency: "string",
    teamId: "string",
    timeZone: "string",
    byMonthdays: [0],
    until: "string",
    users: ["string"],
    weekStart: "string",
});
Copy
type: grafana:onCall:OnCallShift
properties:
    byDays:
        - string
    byMonthdays:
        - 0
    byMonths:
        - 0
    duration: 0
    frequency: string
    interval: 0
    level: 0
    name: string
    rollingUsers:
        - - string
    start: string
    startRotationFromUserIndex: 0
    teamId: string
    timeZone: string
    type: string
    until: string
    users:
        - string
    weekStart: string
Copy

OnCallShift 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 OnCallShift resource accepts the following input properties:

Duration This property is required. int
The duration of the event.
Start This property is required. string
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
Type This property is required. string
The shift's type. Can be rollingusers, recurrentevent, single_event
ByDays List<string>
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
ByMonthdays List<int>
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
ByMonths List<int>
This parameter takes a list of months. Valid values are 1 to 12
Frequency string
The frequency of the event. Can be hourly, daily, weekly, monthly
Interval int
The positive integer representing at which intervals the recurrence rule repeats.
Level int
The priority level. The higher the value, the higher the priority.
Name string
The shift's name.
RollingUsers List<ImmutableArray<string>>
The list of lists with on-call users (for rolling_users event type)
StartRotationFromUserIndex int
The index of the list of users in rolling_users, from which on-call rotation starts.
TeamId string
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
TimeZone string
The shift's timezone. Overrides schedule's timezone.
Until string
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
Users List<string>
The list of on-call users (for singleevent and recurrentevent event type).
WeekStart string
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
Duration This property is required. int
The duration of the event.
Start This property is required. string
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
Type This property is required. string
The shift's type. Can be rollingusers, recurrentevent, single_event
ByDays []string
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
ByMonthdays []int
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
ByMonths []int
This parameter takes a list of months. Valid values are 1 to 12
Frequency string
The frequency of the event. Can be hourly, daily, weekly, monthly
Interval int
The positive integer representing at which intervals the recurrence rule repeats.
Level int
The priority level. The higher the value, the higher the priority.
Name string
The shift's name.
RollingUsers [][]string
The list of lists with on-call users (for rolling_users event type)
StartRotationFromUserIndex int
The index of the list of users in rolling_users, from which on-call rotation starts.
TeamId string
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
TimeZone string
The shift's timezone. Overrides schedule's timezone.
Until string
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
Users []string
The list of on-call users (for singleevent and recurrentevent event type).
WeekStart string
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
duration This property is required. Integer
The duration of the event.
start This property is required. String
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
type This property is required. String
The shift's type. Can be rollingusers, recurrentevent, single_event
byDays List<String>
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byMonthdays List<Integer>
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
byMonths List<Integer>
This parameter takes a list of months. Valid values are 1 to 12
frequency String
The frequency of the event. Can be hourly, daily, weekly, monthly
interval Integer
The positive integer representing at which intervals the recurrence rule repeats.
level Integer
The priority level. The higher the value, the higher the priority.
name String
The shift's name.
rollingUsers List<List<String>>
The list of lists with on-call users (for rolling_users event type)
startRotationFromUserIndex Integer
The index of the list of users in rolling_users, from which on-call rotation starts.
teamId String
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
timeZone String
The shift's timezone. Overrides schedule's timezone.
until String
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users List<String>
The list of on-call users (for singleevent and recurrentevent event type).
weekStart String
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
duration This property is required. number
The duration of the event.
start This property is required. string
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
type This property is required. string
The shift's type. Can be rollingusers, recurrentevent, single_event
byDays string[]
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byMonthdays number[]
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
byMonths number[]
This parameter takes a list of months. Valid values are 1 to 12
frequency string
The frequency of the event. Can be hourly, daily, weekly, monthly
interval number
The positive integer representing at which intervals the recurrence rule repeats.
level number
The priority level. The higher the value, the higher the priority.
name string
The shift's name.
rollingUsers string[][]
The list of lists with on-call users (for rolling_users event type)
startRotationFromUserIndex number
The index of the list of users in rolling_users, from which on-call rotation starts.
teamId string
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
timeZone string
The shift's timezone. Overrides schedule's timezone.
until string
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users string[]
The list of on-call users (for singleevent and recurrentevent event type).
weekStart string
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
duration This property is required. int
The duration of the event.
start This property is required. str
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
type This property is required. str
The shift's type. Can be rollingusers, recurrentevent, single_event
by_days Sequence[str]
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
by_monthdays Sequence[int]
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
by_months Sequence[int]
This parameter takes a list of months. Valid values are 1 to 12
frequency str
The frequency of the event. Can be hourly, daily, weekly, monthly
interval int
The positive integer representing at which intervals the recurrence rule repeats.
level int
The priority level. The higher the value, the higher the priority.
name str
The shift's name.
rolling_users Sequence[Sequence[str]]
The list of lists with on-call users (for rolling_users event type)
start_rotation_from_user_index int
The index of the list of users in rolling_users, from which on-call rotation starts.
team_id str
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
time_zone str
The shift's timezone. Overrides schedule's timezone.
until str
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users Sequence[str]
The list of on-call users (for singleevent and recurrentevent event type).
week_start str
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
duration This property is required. Number
The duration of the event.
start This property is required. String
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
type This property is required. String
The shift's type. Can be rollingusers, recurrentevent, single_event
byDays List<String>
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byMonthdays List<Number>
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
byMonths List<Number>
This parameter takes a list of months. Valid values are 1 to 12
frequency String
The frequency of the event. Can be hourly, daily, weekly, monthly
interval Number
The positive integer representing at which intervals the recurrence rule repeats.
level Number
The priority level. The higher the value, the higher the priority.
name String
The shift's name.
rollingUsers List<List<String>>
The list of lists with on-call users (for rolling_users event type)
startRotationFromUserIndex Number
The index of the list of users in rolling_users, from which on-call rotation starts.
teamId String
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
timeZone String
The shift's timezone. Overrides schedule's timezone.
until String
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users List<String>
The list of on-call users (for singleevent and recurrentevent event type).
weekStart String
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing OnCallShift Resource

Get an existing OnCallShift resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OnCallShiftState, opts?: CustomResourceOptions): OnCallShift
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        by_days: Optional[Sequence[str]] = None,
        by_monthdays: Optional[Sequence[int]] = None,
        by_months: Optional[Sequence[int]] = None,
        duration: Optional[int] = None,
        frequency: Optional[str] = None,
        interval: Optional[int] = None,
        level: Optional[int] = None,
        name: Optional[str] = None,
        rolling_users: Optional[Sequence[Sequence[str]]] = None,
        start: Optional[str] = None,
        start_rotation_from_user_index: Optional[int] = None,
        team_id: Optional[str] = None,
        time_zone: Optional[str] = None,
        type: Optional[str] = None,
        until: Optional[str] = None,
        users: Optional[Sequence[str]] = None,
        week_start: Optional[str] = None) -> OnCallShift
func GetOnCallShift(ctx *Context, name string, id IDInput, state *OnCallShiftState, opts ...ResourceOption) (*OnCallShift, error)
public static OnCallShift Get(string name, Input<string> id, OnCallShiftState? state, CustomResourceOptions? opts = null)
public static OnCallShift get(String name, Output<String> id, OnCallShiftState state, CustomResourceOptions options)
resources:  _:    type: grafana:onCall:OnCallShift    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ByDays List<string>
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
ByMonthdays List<int>
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
ByMonths List<int>
This parameter takes a list of months. Valid values are 1 to 12
Duration int
The duration of the event.
Frequency string
The frequency of the event. Can be hourly, daily, weekly, monthly
Interval int
The positive integer representing at which intervals the recurrence rule repeats.
Level int
The priority level. The higher the value, the higher the priority.
Name string
The shift's name.
RollingUsers List<ImmutableArray<string>>
The list of lists with on-call users (for rolling_users event type)
Start string
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
StartRotationFromUserIndex int
The index of the list of users in rolling_users, from which on-call rotation starts.
TeamId string
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
TimeZone string
The shift's timezone. Overrides schedule's timezone.
Type string
The shift's type. Can be rollingusers, recurrentevent, single_event
Until string
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
Users List<string>
The list of on-call users (for singleevent and recurrentevent event type).
WeekStart string
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
ByDays []string
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
ByMonthdays []int
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
ByMonths []int
This parameter takes a list of months. Valid values are 1 to 12
Duration int
The duration of the event.
Frequency string
The frequency of the event. Can be hourly, daily, weekly, monthly
Interval int
The positive integer representing at which intervals the recurrence rule repeats.
Level int
The priority level. The higher the value, the higher the priority.
Name string
The shift's name.
RollingUsers [][]string
The list of lists with on-call users (for rolling_users event type)
Start string
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
StartRotationFromUserIndex int
The index of the list of users in rolling_users, from which on-call rotation starts.
TeamId string
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
TimeZone string
The shift's timezone. Overrides schedule's timezone.
Type string
The shift's type. Can be rollingusers, recurrentevent, single_event
Until string
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
Users []string
The list of on-call users (for singleevent and recurrentevent event type).
WeekStart string
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byDays List<String>
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byMonthdays List<Integer>
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
byMonths List<Integer>
This parameter takes a list of months. Valid values are 1 to 12
duration Integer
The duration of the event.
frequency String
The frequency of the event. Can be hourly, daily, weekly, monthly
interval Integer
The positive integer representing at which intervals the recurrence rule repeats.
level Integer
The priority level. The higher the value, the higher the priority.
name String
The shift's name.
rollingUsers List<List<String>>
The list of lists with on-call users (for rolling_users event type)
start String
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
startRotationFromUserIndex Integer
The index of the list of users in rolling_users, from which on-call rotation starts.
teamId String
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
timeZone String
The shift's timezone. Overrides schedule's timezone.
type String
The shift's type. Can be rollingusers, recurrentevent, single_event
until String
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users List<String>
The list of on-call users (for singleevent and recurrentevent event type).
weekStart String
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byDays string[]
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byMonthdays number[]
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
byMonths number[]
This parameter takes a list of months. Valid values are 1 to 12
duration number
The duration of the event.
frequency string
The frequency of the event. Can be hourly, daily, weekly, monthly
interval number
The positive integer representing at which intervals the recurrence rule repeats.
level number
The priority level. The higher the value, the higher the priority.
name string
The shift's name.
rollingUsers string[][]
The list of lists with on-call users (for rolling_users event type)
start string
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
startRotationFromUserIndex number
The index of the list of users in rolling_users, from which on-call rotation starts.
teamId string
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
timeZone string
The shift's timezone. Overrides schedule's timezone.
type string
The shift's type. Can be rollingusers, recurrentevent, single_event
until string
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users string[]
The list of on-call users (for singleevent and recurrentevent event type).
weekStart string
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
by_days Sequence[str]
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
by_monthdays Sequence[int]
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
by_months Sequence[int]
This parameter takes a list of months. Valid values are 1 to 12
duration int
The duration of the event.
frequency str
The frequency of the event. Can be hourly, daily, weekly, monthly
interval int
The positive integer representing at which intervals the recurrence rule repeats.
level int
The priority level. The higher the value, the higher the priority.
name str
The shift's name.
rolling_users Sequence[Sequence[str]]
The list of lists with on-call users (for rolling_users event type)
start str
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
start_rotation_from_user_index int
The index of the list of users in rolling_users, from which on-call rotation starts.
team_id str
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
time_zone str
The shift's timezone. Overrides schedule's timezone.
type str
The shift's type. Can be rollingusers, recurrentevent, single_event
until str
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users Sequence[str]
The list of on-call users (for singleevent and recurrentevent event type).
week_start str
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byDays List<String>
This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
byMonthdays List<Number>
This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
byMonths List<Number>
This parameter takes a list of months. Valid values are 1 to 12
duration Number
The duration of the event.
frequency String
The frequency of the event. Can be hourly, daily, weekly, monthly
interval Number
The positive integer representing at which intervals the recurrence rule repeats.
level Number
The priority level. The higher the value, the higher the priority.
name String
The shift's name.
rollingUsers List<List<String>>
The list of lists with on-call users (for rolling_users event type)
start String
The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
startRotationFromUserIndex Number
The index of the list of users in rolling_users, from which on-call rotation starts.
teamId String
The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.onCall.getTeam datasource.
timeZone String
The shift's timezone. Overrides schedule's timezone.
type String
The shift's type. Can be rollingusers, recurrentevent, single_event
until String
The end time of recurrent on-call shifts (endless if null). This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00")
users List<String>
The list of on-call users (for singleevent and recurrentevent event type).
weekStart String
Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU

Import

$ pulumi import grafana:onCall/onCallShift:OnCallShift name "{{ id }}"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
grafana pulumiverse/pulumi-grafana
License
Apache-2.0
Notes
This Pulumi package is based on the grafana Terraform Provider.