OpsGenie REST API v0.1.0 OpsGenieRESTAPI.Api.DeprecatedPolicy
API calls for all endpoints tagged DeprecatedPolicy
.
Link to this section Summary
Functions
Change Alert Policy Order Change execution order of the alert policy with given id
Create Alert Policy Creates a new alert policy
Delete Alert Policy Delete alert policy with given id
Disable Alert Policy Disable the alert policy with given id
Enable Alert Policy Enable the alert policy with given id
Get Alert Policy Used to get details of a single policy with id
List Alert Policies Returns list alert policies
Update Alert Policy Update alert policy with given id
Link to this section Functions
change_alert_policy_order( Tesla.Env.client(), String.t(), OpsGenieRESTAPI.Model.DeprecatedChangeAlertPolicyOrderPayload.t(), keyword() ) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Change Alert Policy Order Change execution order of the alert policy with given id
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- policy_id (String.t): Id of the requested policy
- body (DeprecatedChangeAlertPolicyOrderPayload): Change order payload
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure
create_alert_policy( Tesla.Env.client(), OpsGenieRESTAPI.Model.DeprecatedAlertPolicy.t(), keyword() ) :: {:ok, OpsGenieRESTAPI.Model.DeprecatedCreateAlertPolicyResponse.t()} | {:error, Tesla.Env.t()}
Create Alert Policy Creates a new alert policy
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- body (DeprecatedAlertPolicy): Payload of created alert policy
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.DeprecatedCreateAlertPolicyResponse{}} on success {:error, info} on failure
delete_alert_policy(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Delete Alert Policy Delete alert policy with given id
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- policy_id (String.t): Id of the requested policy
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure
disable_alert_policy(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Disable Alert Policy Disable the alert policy with given id
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- policy_id (String.t): Id of the requested policy
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure
enable_alert_policy(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Enable Alert Policy Enable the alert policy with given id
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- policy_id (String.t): Id of the requested policy
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure
get_alert_policy(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.DeprecatedGetAlertPolicyResponse.t()} | {:error, Tesla.Env.t()}
Get Alert Policy Used to get details of a single policy with id
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- policy_id (String.t): Id of the requested policy
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.DeprecatedGetAlertPolicyResponse{}} on success {:error, info} on failure
list_alert_policies(Tesla.Env.client(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.DeprecatedListAlertPoliciesResponse.t()} | {:error, Tesla.Env.t()}
List Alert Policies Returns list alert policies
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.DeprecatedListAlertPoliciesResponse{}} on success {:error, info} on failure
update_alert_policy( Tesla.Env.client(), String.t(), OpsGenieRESTAPI.Model.DeprecatedAlertPolicy.t(), keyword() ) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Update Alert Policy Update alert policy with given id
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- policy_id (String.t): Id of the requested policy
- body (DeprecatedAlertPolicy): Payload of updated alert policy
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure