1. Packages
  2. Grafana Cloud
  3. API Docs
  4. OncallOnCallShift
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

grafana.OncallOnCallShift

Explore with Pulumi AI

grafana logo
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

    Create OncallOnCallShift Resource

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

    Constructor syntax

    new OncallOnCallShift(name: string, args: OncallOnCallShiftArgs, opts?: CustomResourceOptions);
    @overload
    def OncallOnCallShift(resource_name: str,
                          args: OncallOnCallShiftArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def OncallOnCallShift(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 NewOncallOnCallShift(ctx *Context, name string, args OncallOnCallShiftArgs, opts ...ResourceOption) (*OncallOnCallShift, error)
    public OncallOnCallShift(string name, OncallOnCallShiftArgs args, CustomResourceOptions? opts = null)
    public OncallOnCallShift(String name, OncallOnCallShiftArgs args)
    public OncallOnCallShift(String name, OncallOnCallShiftArgs args, CustomResourceOptions options)
    
    type: grafana:OncallOnCallShift
    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 OncallOnCallShiftArgs
    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 OncallOnCallShiftArgs
    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 OncallOnCallShiftArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OncallOnCallShiftArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OncallOnCallShiftArgs
    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 oncallOnCallShiftResource = new Grafana.OncallOnCallShift("oncallOnCallShiftResource", 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 := grafana.NewOncallOnCallShift(ctx, "oncallOnCallShiftResource", &grafana.OncallOnCallShiftArgs{
    	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 oncallOnCallShiftResource = new OncallOnCallShift("oncallOnCallShiftResource", OncallOnCallShiftArgs.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());
    
    oncall_on_call_shift_resource = grafana.OncallOnCallShift("oncallOnCallShiftResource",
        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 oncallOnCallShiftResource = new grafana.OncallOnCallShift("oncallOnCallShiftResource", {
        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:OncallOnCallShift
    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
    

    OncallOnCallShift Resource Properties

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

    Inputs

    The OncallOnCallShift 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
    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.getOncallTeam datasource.
    TimeZone string
    The shift's timezone. Overrides schedule's timezone.
    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 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
    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.getOncallTeam datasource.
    TimeZone string
    The shift's timezone. Overrides schedule's timezone.
    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 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
    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.getOncallTeam datasource.
    timeZone String
    The shift's timezone. Overrides schedule's timezone.
    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 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
    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.getOncallTeam datasource.
    timeZone string
    The shift's timezone. Overrides schedule's timezone.
    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 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_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.getOncallTeam 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
    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.getOncallTeam datasource.
    timeZone String
    The shift's timezone. Overrides schedule's timezone.
    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 OncallOnCallShift 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 OncallOnCallShift Resource

    Get an existing OncallOnCallShift 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?: OncallOnCallShiftState, opts?: CustomResourceOptions): OncallOnCallShift
    @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) -> OncallOnCallShift
    func GetOncallOnCallShift(ctx *Context, name string, id IDInput, state *OncallOnCallShiftState, opts ...ResourceOption) (*OncallOnCallShift, error)
    public static OncallOnCallShift Get(string name, Input<string> id, OncallOnCallShiftState? state, CustomResourceOptions? opts = null)
    public static OncallOnCallShift get(String name, Output<String> id, OncallOnCallShiftState 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.
    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.getOncallTeam datasource.
    TimeZone 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).
    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.getOncallTeam datasource.
    TimeZone 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).
    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.getOncallTeam datasource.
    timeZone 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).
    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.getOncallTeam datasource.
    timeZone 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).
    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.getOncallTeam 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
    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.getOncallTeam datasource.
    timeZone 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).
    weekStart String
    Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU

    Import

    $ pulumi import grafana:index/oncallOnCallShift:OncallOnCallShift 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.
    grafana logo
    Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse