grafana.onCall.Escalation
Explore with Pulumi AI
Create Escalation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Escalation(name: string, args: EscalationArgs, opts?: CustomResourceOptions);
@overload
def Escalation(resource_name: str,
args: EscalationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Escalation(resource_name: str,
opts: Optional[ResourceOptions] = None,
position: Optional[int] = None,
type: Optional[str] = None,
escalation_chain_id: Optional[str] = None,
notify_if_time_to: Optional[str] = None,
important: Optional[bool] = None,
notify_if_time_from: Optional[str] = None,
action_to_trigger: Optional[str] = None,
notify_on_call_from_schedule: Optional[str] = None,
notify_to_team_members: Optional[str] = None,
persons_to_notifies: Optional[Sequence[str]] = None,
persons_to_notify_next_each_times: Optional[Sequence[str]] = None,
group_to_notify: Optional[str] = None,
duration: Optional[int] = None)
func NewEscalation(ctx *Context, name string, args EscalationArgs, opts ...ResourceOption) (*Escalation, error)
public Escalation(string name, EscalationArgs args, CustomResourceOptions? opts = null)
public Escalation(String name, EscalationArgs args)
public Escalation(String name, EscalationArgs args, CustomResourceOptions options)
type: grafana:onCall:Escalation
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 EscalationArgs
- 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 EscalationArgs
- 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 EscalationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EscalationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EscalationArgs
- 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 escalationResource = new Grafana.OnCall.Escalation("escalationResource", new()
{
Position = 0,
Type = "string",
EscalationChainId = "string",
NotifyIfTimeTo = "string",
Important = false,
NotifyIfTimeFrom = "string",
ActionToTrigger = "string",
NotifyOnCallFromSchedule = "string",
NotifyToTeamMembers = "string",
PersonsToNotifies = new[]
{
"string",
},
PersonsToNotifyNextEachTimes = new[]
{
"string",
},
GroupToNotify = "string",
Duration = 0,
});
example, err := onCall.NewEscalation(ctx, "escalationResource", &onCall.EscalationArgs{
Position: pulumi.Int(0),
Type: pulumi.String("string"),
EscalationChainId: pulumi.String("string"),
NotifyIfTimeTo: pulumi.String("string"),
Important: pulumi.Bool(false),
NotifyIfTimeFrom: pulumi.String("string"),
ActionToTrigger: pulumi.String("string"),
NotifyOnCallFromSchedule: pulumi.String("string"),
NotifyToTeamMembers: pulumi.String("string"),
PersonsToNotifies: pulumi.StringArray{
pulumi.String("string"),
},
PersonsToNotifyNextEachTimes: pulumi.StringArray{
pulumi.String("string"),
},
GroupToNotify: pulumi.String("string"),
Duration: pulumi.Int(0),
})
var escalationResource = new Escalation("escalationResource", EscalationArgs.builder()
.position(0)
.type("string")
.escalationChainId("string")
.notifyIfTimeTo("string")
.important(false)
.notifyIfTimeFrom("string")
.actionToTrigger("string")
.notifyOnCallFromSchedule("string")
.notifyToTeamMembers("string")
.personsToNotifies("string")
.personsToNotifyNextEachTimes("string")
.groupToNotify("string")
.duration(0)
.build());
escalation_resource = grafana.on_call.Escalation("escalationResource",
position=0,
type="string",
escalation_chain_id="string",
notify_if_time_to="string",
important=False,
notify_if_time_from="string",
action_to_trigger="string",
notify_on_call_from_schedule="string",
notify_to_team_members="string",
persons_to_notifies=["string"],
persons_to_notify_next_each_times=["string"],
group_to_notify="string",
duration=0)
const escalationResource = new grafana.oncall.Escalation("escalationResource", {
position: 0,
type: "string",
escalationChainId: "string",
notifyIfTimeTo: "string",
important: false,
notifyIfTimeFrom: "string",
actionToTrigger: "string",
notifyOnCallFromSchedule: "string",
notifyToTeamMembers: "string",
personsToNotifies: ["string"],
personsToNotifyNextEachTimes: ["string"],
groupToNotify: "string",
duration: 0,
});
type: grafana:onCall:Escalation
properties:
actionToTrigger: string
duration: 0
escalationChainId: string
groupToNotify: string
important: false
notifyIfTimeFrom: string
notifyIfTimeTo: string
notifyOnCallFromSchedule: string
notifyToTeamMembers: string
personsToNotifies:
- string
personsToNotifyNextEachTimes:
- string
position: 0
type: string
Escalation 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 Escalation resource accepts the following input properties:
- Escalation
Chain stringId - The ID of the escalation chain.
- Position int
- The position of the escalation step (starts from 0).
- Type string
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- Action
To stringTrigger - The ID of an Action for trigger_webhook type step.
- Duration int
- The duration of delay for wait type step.
- Group
To stringNotify - The ID of a User Group for notifyusergroup type step.
- Important bool
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- Notify
If stringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- Notify
If stringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- Notify
On stringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- Notify
To stringTeam Members - The ID of a Team for a notifyteammembers type step.
- Persons
To List<string>Notifies - The list of ID's of users for notify_persons type step.
- Persons
To List<string>Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- Escalation
Chain stringId - The ID of the escalation chain.
- Position int
- The position of the escalation step (starts from 0).
- Type string
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- Action
To stringTrigger - The ID of an Action for trigger_webhook type step.
- Duration int
- The duration of delay for wait type step.
- Group
To stringNotify - The ID of a User Group for notifyusergroup type step.
- Important bool
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- Notify
If stringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- Notify
If stringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- Notify
On stringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- Notify
To stringTeam Members - The ID of a Team for a notifyteammembers type step.
- Persons
To []stringNotifies - The list of ID's of users for notify_persons type step.
- Persons
To []stringNotify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- escalation
Chain StringId - The ID of the escalation chain.
- position Integer
- The position of the escalation step (starts from 0).
- type String
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action
To StringTrigger - The ID of an Action for trigger_webhook type step.
- duration Integer
- The duration of delay for wait type step.
- group
To StringNotify - The ID of a User Group for notifyusergroup type step.
- important Boolean
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify
If StringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify
If StringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify
On StringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify
To StringTeam Members - The ID of a Team for a notifyteammembers type step.
- persons
To List<String>Notifies - The list of ID's of users for notify_persons type step.
- persons
To List<String>Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- escalation
Chain stringId - The ID of the escalation chain.
- position number
- The position of the escalation step (starts from 0).
- type string
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action
To stringTrigger - The ID of an Action for trigger_webhook type step.
- duration number
- The duration of delay for wait type step.
- group
To stringNotify - The ID of a User Group for notifyusergroup type step.
- important boolean
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify
If stringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify
If stringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify
On stringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify
To stringTeam Members - The ID of a Team for a notifyteammembers type step.
- persons
To string[]Notifies - The list of ID's of users for notify_persons type step.
- persons
To string[]Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- escalation_
chain_ strid - The ID of the escalation chain.
- position int
- The position of the escalation step (starts from 0).
- type str
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action_
to_ strtrigger - The ID of an Action for trigger_webhook type step.
- duration int
- The duration of delay for wait type step.
- group_
to_ strnotify - The ID of a User Group for notifyusergroup type step.
- important bool
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify_
if_ strtime_ from - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify_
if_ strtime_ to - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify_
on_ strcall_ from_ schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify_
to_ strteam_ members - The ID of a Team for a notifyteammembers type step.
- persons_
to_ Sequence[str]notifies - The list of ID's of users for notify_persons type step.
- persons_
to_ Sequence[str]notify_ next_ each_ times - The list of ID's of users for notifypersonnexteachtime type step.
- escalation
Chain StringId - The ID of the escalation chain.
- position Number
- The position of the escalation step (starts from 0).
- type String
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action
To StringTrigger - The ID of an Action for trigger_webhook type step.
- duration Number
- The duration of delay for wait type step.
- group
To StringNotify - The ID of a User Group for notifyusergroup type step.
- important Boolean
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify
If StringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify
If StringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify
On StringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify
To StringTeam Members - The ID of a Team for a notifyteammembers type step.
- persons
To List<String>Notifies - The list of ID's of users for notify_persons type step.
- persons
To List<String>Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
Outputs
All input properties are implicitly available as output properties. Additionally, the Escalation 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 Escalation Resource
Get an existing Escalation 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?: EscalationState, opts?: CustomResourceOptions): Escalation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_to_trigger: Optional[str] = None,
duration: Optional[int] = None,
escalation_chain_id: Optional[str] = None,
group_to_notify: Optional[str] = None,
important: Optional[bool] = None,
notify_if_time_from: Optional[str] = None,
notify_if_time_to: Optional[str] = None,
notify_on_call_from_schedule: Optional[str] = None,
notify_to_team_members: Optional[str] = None,
persons_to_notifies: Optional[Sequence[str]] = None,
persons_to_notify_next_each_times: Optional[Sequence[str]] = None,
position: Optional[int] = None,
type: Optional[str] = None) -> Escalation
func GetEscalation(ctx *Context, name string, id IDInput, state *EscalationState, opts ...ResourceOption) (*Escalation, error)
public static Escalation Get(string name, Input<string> id, EscalationState? state, CustomResourceOptions? opts = null)
public static Escalation get(String name, Output<String> id, EscalationState 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.
- Action
To stringTrigger - The ID of an Action for trigger_webhook type step.
- Duration int
- The duration of delay for wait type step.
- Escalation
Chain stringId - The ID of the escalation chain.
- Group
To stringNotify - The ID of a User Group for notifyusergroup type step.
- Important bool
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- Notify
If stringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- Notify
If stringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- Notify
On stringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- Notify
To stringTeam Members - The ID of a Team for a notifyteammembers type step.
- Persons
To List<string>Notifies - The list of ID's of users for notify_persons type step.
- Persons
To List<string>Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- Position int
- The position of the escalation step (starts from 0).
- Type string
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- Action
To stringTrigger - The ID of an Action for trigger_webhook type step.
- Duration int
- The duration of delay for wait type step.
- Escalation
Chain stringId - The ID of the escalation chain.
- Group
To stringNotify - The ID of a User Group for notifyusergroup type step.
- Important bool
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- Notify
If stringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- Notify
If stringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- Notify
On stringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- Notify
To stringTeam Members - The ID of a Team for a notifyteammembers type step.
- Persons
To []stringNotifies - The list of ID's of users for notify_persons type step.
- Persons
To []stringNotify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- Position int
- The position of the escalation step (starts from 0).
- Type string
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action
To StringTrigger - The ID of an Action for trigger_webhook type step.
- duration Integer
- The duration of delay for wait type step.
- escalation
Chain StringId - The ID of the escalation chain.
- group
To StringNotify - The ID of a User Group for notifyusergroup type step.
- important Boolean
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify
If StringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify
If StringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify
On StringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify
To StringTeam Members - The ID of a Team for a notifyteammembers type step.
- persons
To List<String>Notifies - The list of ID's of users for notify_persons type step.
- persons
To List<String>Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- position Integer
- The position of the escalation step (starts from 0).
- type String
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action
To stringTrigger - The ID of an Action for trigger_webhook type step.
- duration number
- The duration of delay for wait type step.
- escalation
Chain stringId - The ID of the escalation chain.
- group
To stringNotify - The ID of a User Group for notifyusergroup type step.
- important boolean
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify
If stringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify
If stringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify
On stringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify
To stringTeam Members - The ID of a Team for a notifyteammembers type step.
- persons
To string[]Notifies - The list of ID's of users for notify_persons type step.
- persons
To string[]Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- position number
- The position of the escalation step (starts from 0).
- type string
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action_
to_ strtrigger - The ID of an Action for trigger_webhook type step.
- duration int
- The duration of delay for wait type step.
- escalation_
chain_ strid - The ID of the escalation chain.
- group_
to_ strnotify - The ID of a User Group for notifyusergroup type step.
- important bool
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify_
if_ strtime_ from - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify_
if_ strtime_ to - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify_
on_ strcall_ from_ schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify_
to_ strteam_ members - The ID of a Team for a notifyteammembers type step.
- persons_
to_ Sequence[str]notifies - The list of ID's of users for notify_persons type step.
- persons_
to_ Sequence[str]notify_ next_ each_ times - The list of ID's of users for notifypersonnexteachtime type step.
- position int
- The position of the escalation step (starts from 0).
- type str
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
- action
To StringTrigger - The ID of an Action for trigger_webhook type step.
- duration Number
- The duration of delay for wait type step.
- escalation
Chain StringId - The ID of the escalation chain.
- group
To StringNotify - The ID of a User Group for notifyusergroup type step.
- important Boolean
- Will activate "important" personal notification rules. Actual for steps: notifypersons, notifyoncallfromschedule and notifyusergroup,notifyteam_members
- notify
If StringTime From - The beginning of the time interval for notifyiftimefromto type step in UTC (for example 08:00:00Z).
- notify
If StringTime To - The end of the time interval for notifyiftimefromto type step in UTC (for example 18:00:00Z).
- notify
On StringCall From Schedule - ID of a Schedule for notifyoncallfromschedule type step.
- notify
To StringTeam Members - The ID of a Team for a notifyteammembers type step.
- persons
To List<String>Notifies - The list of ID's of users for notify_persons type step.
- persons
To List<String>Notify Next Each Times - The list of ID's of users for notifypersonnexteachtime type step.
- position Number
- The position of the escalation step (starts from 0).
- type String
- The type of escalation policy. Can be wait, notifypersons, notifypersonnexteachtime, notifyoncallfromschedule, triggerwebhook, notifyusergroup, resolve, notifywholechannel, notifyiftimefromto, repeatescalation, notifyteam_members
Import
$ pulumi import grafana:onCall/escalation:Escalation 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.