escalation

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2019 License: Apache-2.0, GPL-2.0 Imports: 0 Imported by: 5

Documentation

Overview

Package escalation provides requests and response structures to achieve Escalation API actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEscalationRequest

type CreateEscalationRequest struct {
	APIKey string `json:"apiKey,omitempty"`
	Name   string `json:"name,omitempty"`
	Rules  []Rule `json:"rules,omitempty"`
}

CreateEscalationRequest provides necessary parameter structure for creating escalation

type CreateEscalationResponse

type CreateEscalationResponse struct {
	Id     string `json:"id"`
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Create escalation response structure

type DeleteEscalationRequest

type DeleteEscalationRequest struct {
	APIKey string `url:"apiKey,omitempty"`
	ID     string `url:"id,omitempty"`
	Name   string `url:"name,omitempty"`
}

DeleteEscalationRequest provides necessary parameter structure for deleting an escalation

type DeleteEscalationResponse

type DeleteEscalationResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Delete escalation response structure

type GetEscalationRequest

type GetEscalationRequest struct {
	APIKey string `url:"apiKey,omitempty"`
	Id     string `url:"id,omitempty"`
	Name   string `url:"name,omitempty"`
}

GetEscalationRequest provides necessary parameter structure for requesting escalation information

type GetEscalationResponse

type GetEscalationResponse struct {
	Id    string `json:"id,omitempty"`
	Name  string `json:"name,omitempty"`
	Team  string `json:"team,omitempty"`
	Rules []Rule `json:"rules,omitempty"`
}

Get escalation structure

type ListEscalationsRequest

type ListEscalationsRequest struct {
	APIKey string `url:"apiKey,omitempty"`
}

ListEscalationRequest provides necessary parameter structure for listing escalations

type ListEscalationsResponse

type ListEscalationsResponse struct {
	Escalations []GetEscalationResponse `json:"escalations,omitempty"`
}

List escalations response structure

type Rule

type Rule struct {
	Delay           int    `json:"delay"`
	Notify          string `json:"notify,omitempty"`
	NotifyType      string `json:"notifyType,omitempty"`
	NotifyCondition string `json:"notifyCondition,omitempty"`
}

Rule defines the structure for each escalation rule definition

type UpdateEscalationRequest

type UpdateEscalationRequest struct {
	APIKey string `json:"apiKey,omitempty"`
	Id     string `json:"id,omitempty"`
	Name   string `json:"name,omitempty"`
	Rules  []Rule `json:"rules,omitempty"`
}

UpdateEscalationRequest provides necessary parameter structure for updating an escalation

type UpdateEscalationResponse

type UpdateEscalationResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Update escalation response structure

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL