Versions in this module Expand all Collapse all v1 v1.4.0 Oct 4, 2023 Changes in this version + type Client struct + func NewClient(config *client.Config) (*Client, error) + func (c *Client) Create(context context.Context, request *CreateRequest) (*CreateResult, error) + func (c *Client) Delete(context context.Context, request *DeleteRequest) (*DeleteResult, error) + func (c *Client) Get(context context.Context, request *GetRequest) (*GetResult, error) + func (c *Client) List(context context.Context) (*ListResult, error) + func (c *Client) Update(context context.Context, request *UpdateRequest) (*UpdateResult, error) + type CreateRequest struct + Description string + Name string + OwnerTeam *og.OwnerTeam + Repeat *RepeatRequest + Rules []RuleRequest + func (r *CreateRequest) Method() string + func (r *CreateRequest) ResourcePath() string + func (r *CreateRequest) Validate() error + type CreateResult struct + Errors map[string]string + Id string + Message string + Name string + Result string + type DeleteRequest struct + Identifier string + IdentifierType Identifier + func (r *DeleteRequest) Method() string + func (r *DeleteRequest) RequestParams() map[string]string + func (r *DeleteRequest) ResourcePath() string + func (r *DeleteRequest) Validate() error + type DeleteResult struct + Message string + Result string + type Escalation struct + Description string + Id string + Name string + OwnerTeam *og.OwnerTeam + Repeat *Repeat + Rules []Rule + type EscalationDelay struct + TimeAmount uint32 + TimeUnit og.TimeUnit + type EscalationDelayRequest struct + TimeAmount uint32 + type GetRequest struct + Identifier string + IdentifierType Identifier + func (r *GetRequest) Method() string + func (r *GetRequest) RequestParams() map[string]string + func (r *GetRequest) ResourcePath() string + func (r *GetRequest) Validate() error + type GetResult struct + type Identifier string + const Id + const Name + type ListResult struct + Escalations []Escalation + type Repeat struct + CloseAlertAfterAll bool + Count uint32 + ResetRecipientStates bool + WaitInterval uint32 + type RepeatRequest struct + CloseAlertAfterAll *bool + Count uint32 + ResetRecipientStates *bool + WaitInterval uint32 + type Rule struct + Condition og.EscalationCondition + Delay EscalationDelay + NotifyType og.NotifyType + Recipient og.Participant + type RuleRequest struct + Condition og.EscalationCondition + Delay EscalationDelayRequest + NotifyType og.NotifyType + Recipient og.Participant + type UpdateRequest struct + Description string + Identifier string + IdentifierType Identifier + Name string + OwnerTeam *og.OwnerTeam + Repeat *RepeatRequest + Rules []RuleRequest + func (r *UpdateRequest) Method() string + func (r *UpdateRequest) RequestParams() map[string]string + func (r *UpdateRequest) ResourcePath() string + func (r *UpdateRequest) Validate() error + type UpdateResult struct + Errors map[string]string + Id string + Message string + Name string + Result string