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,
frequency: Optional[str] = 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,
start_rotation_from_user_index: Optional[int] = None,
team_id: Optional[str] = None,
time_zone: Optional[str] = None,
by_monthdays: Optional[Sequence[int]] = 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 string
- The unique name of the resource.
- args OnCallShiftArgs
- 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 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 string
- The unique name of the resource.
- args OnCallShiftArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OnCallShiftArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
},
Frequency = "string",
Interval = 0,
Level = 0,
Name = "string",
ByDays = new[]
{
"string",
},
ByMonths = new[]
{
0,
},
StartRotationFromUserIndex = 0,
TeamId = "string",
TimeZone = "string",
ByMonthdays = new[]
{
0,
},
Users = new[]
{
"string",
},
WeekStart = "string",
});
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"),
},
},
Frequency: pulumi.String("string"),
Interval: pulumi.Int(0),
Level: pulumi.Int(0),
Name: pulumi.String("string"),
ByDays: pulumi.StringArray{
pulumi.String("string"),
},
ByMonths: pulumi.IntArray{
pulumi.Int(0),
},
StartRotationFromUserIndex: pulumi.Int(0),
TeamId: pulumi.String("string"),
TimeZone: pulumi.String("string"),
ByMonthdays: pulumi.IntArray{
pulumi.Int(0),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
WeekStart: pulumi.String("string"),
})
var onCallShiftResource = new OnCallShift("onCallShiftResource", OnCallShiftArgs.builder()
.duration(0)
.type("string")
.start("string")
.rollingUsers("string")
.frequency("string")
.interval(0)
.level(0)
.name("string")
.byDays("string")
.byMonths(0)
.startRotationFromUserIndex(0)
.teamId("string")
.timeZone("string")
.byMonthdays(0)
.users("string")
.weekStart("string")
.build());
on_call_shift_resource = grafana.on_call.OnCallShift("onCallShiftResource",
duration=0,
type="string",
start="string",
rolling_users=[["string"]],
frequency="string",
interval=0,
level=0,
name="string",
by_days=["string"],
by_months=[0],
start_rotation_from_user_index=0,
team_id="string",
time_zone="string",
by_monthdays=[0],
users=["string"],
week_start="string")
const onCallShiftResource = new grafana.oncall.OnCallShift("onCallShiftResource", {
duration: 0,
type: "string",
start: "string",
rollingUsers: [["string"]],
frequency: "string",
interval: 0,
level: 0,
name: "string",
byDays: ["string"],
byMonths: [0],
startRotationFromUserIndex: 0,
teamId: "string",
timeZone: "string",
byMonthdays: [0],
users: ["string"],
weekStart: "string",
});
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
users:
- string
weekStart: string
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 int
- The duration of the event.
- 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")
- Type string
- The shift's type. Can be rollingusers, recurrentevent, single_event
- By
Days List<string> - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- By
Monthdays List<int> - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- By
Months 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.
- Rolling
Users List<ImmutableArray<string>> - The list of lists with on-call users (for rolling_users event type)
- Start
Rotation intFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- Team
Id 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. - Time
Zone string - The shift's timezone. Overrides schedule's timezone.
- Users List<string>
- The list of on-call users (for singleevent and recurrentevent event type).
- Week
Start string - Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- Duration int
- The duration of the event.
- 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")
- Type string
- The shift's type. Can be rollingusers, recurrentevent, single_event
- By
Days []string - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- By
Monthdays []int - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- By
Months []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.
- Rolling
Users [][]string - The list of lists with on-call users (for rolling_users event type)
- Start
Rotation intFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- Team
Id 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. - Time
Zone string - The shift's timezone. Overrides schedule's timezone.
- Users []string
- The list of on-call users (for singleevent and recurrentevent event type).
- Week
Start string - Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- duration Integer
- The duration of the event.
- 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")
- type String
- The shift's type. Can be rollingusers, recurrentevent, single_event
- by
Days List<String> - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Monthdays List<Integer> - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- by
Months 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.
- rolling
Users List<List<String>> - The list of lists with on-call users (for rolling_users event type)
- start
Rotation IntegerFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- team
Id 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. - time
Zone String - The shift's timezone. Overrides schedule's timezone.
- users List<String>
- The list of on-call users (for singleevent and recurrentevent event type).
- week
Start String - Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- duration number
- The duration of the event.
- 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")
- type string
- The shift's type. Can be rollingusers, recurrentevent, single_event
- by
Days string[] - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Monthdays number[] - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- by
Months 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.
- rolling
Users string[][] - The list of lists with on-call users (for rolling_users event type)
- start
Rotation numberFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- team
Id 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. - time
Zone string - The shift's timezone. Overrides schedule's timezone.
- users string[]
- The list of on-call users (for singleevent and recurrentevent event type).
- week
Start string - Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- duration int
- The duration of the event.
- 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")
- type 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_ intfrom_ user_ index - 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.
- 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 Number
- The duration of the event.
- 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")
- type String
- The shift's type. Can be rollingusers, recurrentevent, single_event
- by
Days List<String> - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Monthdays List<Number> - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- by
Months 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.
- rolling
Users List<List<String>> - The list of lists with on-call users (for rolling_users event type)
- start
Rotation NumberFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- team
Id 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. - time
Zone String - The shift's timezone. Overrides schedule's timezone.
- users List<String>
- The list of on-call users (for singleevent and recurrentevent event type).
- week
Start 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,
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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- By
Days List<string> - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- By
Monthdays List<int> - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- By
Months 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.
- Rolling
Users 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")
- Start
Rotation intFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- Team
Id 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. - Time
Zone string - The shift's timezone. Overrides schedule's timezone.
- Type string
- The shift's type. Can be rollingusers, recurrentevent, single_event
- Users List<string>
- The list of on-call users (for singleevent and recurrentevent event type).
- Week
Start string - Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- By
Days []string - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- By
Monthdays []int - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- By
Months []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.
- Rolling
Users [][]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")
- Start
Rotation intFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- Team
Id 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. - Time
Zone string - The shift's timezone. Overrides schedule's timezone.
- Type string
- The shift's type. Can be rollingusers, recurrentevent, single_event
- Users []string
- The list of on-call users (for singleevent and recurrentevent event type).
- Week
Start string - Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Days List<String> - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Monthdays List<Integer> - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- by
Months 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.
- rolling
Users 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")
- start
Rotation IntegerFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- team
Id 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. - time
Zone String - The shift's timezone. Overrides schedule's timezone.
- type String
- The shift's type. Can be rollingusers, recurrentevent, single_event
- users List<String>
- The list of on-call users (for singleevent and recurrentevent event type).
- week
Start String - Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Days string[] - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Monthdays number[] - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- by
Months 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.
- rolling
Users 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")
- start
Rotation numberFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- team
Id 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. - time
Zone string - The shift's timezone. Overrides schedule's timezone.
- type string
- The shift's type. Can be rollingusers, recurrentevent, single_event
- users string[]
- The list of on-call users (for singleevent and recurrentevent event type).
- week
Start 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_ intfrom_ user_ index - 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
- 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
- by
Days List<String> - This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU
- by
Monthdays List<Number> - This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1
- by
Months 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.
- rolling
Users 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")
- start
Rotation NumberFrom User Index - The index of the list of users in rolling_users, from which on-call rotation starts.
- team
Id 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. - time
Zone String - The shift's timezone. Overrides schedule's timezone.
- type String
- The shift's type. Can be rollingusers, recurrentevent, single_event
- users List<String>
- The list of on-call users (for singleevent and recurrentevent event type).
- week
Start 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 }}"
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.