Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmNotification ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.