alarmnotifications

package
v0.5.27 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 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 AlarmNotification

type AlarmNotification struct {
	ID            string   `json:"id"`
	Enabled       bool     `json:"enabled"`
	TopicURN      string   `json:"topic_urn"`
	SendFrequency int      `json:"sendfreq"`
	Times         int      `json:"times"`
	Threat        []string `json:"threat"`
	Locale        string   `json:"locale"`
}

type ListResult

type ListResult struct {
	// contains filtered or unexported fields
}

func List

func List(client *golangsdk.ServiceClient) (r ListResult)

List is method that can be able to list all alarm notification of WAF service

func (ListResult) Extract

func (r ListResult) Extract() (*AlarmNotification, error)

type UpdateOpts

type UpdateOpts struct {
	Enabled       *bool    `json:"enabled" required:"true"`
	TopicURN      *string  `json:"topic_urn" required:"true"`
	SendFrequency int      `json:"sendfreq" required:"true"`
	Times         int      `json:"times" required:"true"`
	Threat        []string `json:"threat" required:"true"`
	Locale        string   `json:"locale,omitempty"`
}

UpdateOpts contains all the values needed to update the alarm notification.

func (UpdateOpts) ToAlarmNotificationUpdateMap

func (opts UpdateOpts) ToAlarmNotificationUpdateMap() (map[string]interface{}, error)

ToAlarmNotificationUpdateMap casts a UpdateOpts struct to a map.

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToAlarmNotificationUpdateMap() (map[string]interface{}, error)
}

UpdateOptsBuilder allows extensions to add additional parameters to the Update request.

type UpdateResult

type UpdateResult struct {
	// contains filtered or unexported fields
}

func Update

func Update(client *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)

Update is an operation which modifies the attributes of the specified alarm notification.

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*AlarmNotification, error)

Jump to

Keyboard shortcuts

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