falsealarmmasking_rules

package
v0.5.23 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmMasking

type AlarmMasking struct {
	// False Alarm Masking Rule ID
	Id string `json:"id"`
	// False Alarm Maksing Rule URL
	Path string `json:"path"`
	// Rule ID
	Rule      string `json:"rule"`
	EventID   string `json:"event_id"`
	EventType string `json:"event_type"`
	// Policy ID
	PolicyID string `json:"policy_id"`
}

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

type CreateOptsBuilder interface {
	ToAlarmMaskingCreateMap() (map[string]interface{}, error)
}

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)

Jump to

Keyboard shortcuts

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