policy

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: 0

Documentation

Overview

Package policy provides requests and response structures to achieve Policy API actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisablePolicyRequest

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

DisablePolicyRequest provides necessary parameter structure to Disable a policy at OpsGenie.

type DisablePolicyResponse

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

DisablePolicyResponse holds the result data of the DisablePolicyRequest.

type EnablePolicyRequest

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

EnablePolicyRequest provides necessary parameter structure to Enable a policy at OpsGenie.

type EnablePolicyResponse

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

EnablePolicyResponse holds the result data of the EnablePolicyRequest.

Jump to

Keyboard shortcuts

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