Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmMasking ¶
type CreateOpts ¶
type CreateOpts struct { Path string `json:"path" required:"true"` EventID string `json:"rule" required:"true"` }
CreateOpts contains all the values needed to create a new falsealarmmasking rule.
func (CreateOpts) ToAlarmMaskingCreateMap ¶
func (opts CreateOpts) ToAlarmMaskingCreateMap() (map[string]interface{}, error)
ToAlarmMaskingCreateMap builds a create request body from CreateOpts.
type CreateOptsBuilder ¶
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult represents the result of a create operation. Call its Extract method to interpret it as a False Alarm Masking rule.
func Create ¶
func Create(c *golangsdk.ServiceClient, policyID string, opts CreateOptsBuilder) (r CreateResult)
Create will create a new falsealarmmasking rule based on the values in CreateOpts.
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*AlarmMasking, error)
Extract is a function that accepts a result and extracts a falsealarmmasking rule.
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
DeleteResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.
func Delete ¶
func Delete(c *golangsdk.ServiceClient, policyID, ruleID string) (r DeleteResult)
Delete will permanently delete a particular falsealarmmasking rule based on its unique ID.
type ListResponse ¶
type ListResponse struct { // Total number of the Rules Total int `json:"total"` // List of AlarmMasking Items []AlarmMasking `json:"items"` }
type ListResult ¶
type ListResult struct {
// contains filtered or unexported fields
}
func List ¶
func List(c *golangsdk.ServiceClient, policyID string) (r ListResult)
List retrieves falsealarmmasking rules.
func (ListResult) Extract ¶
func (r ListResult) Extract() ([]AlarmMasking, error)