notifications

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteURL

func DeleteURL(c *gophercloud.ServiceClient, scalingGroupId string, topicUrn string) string

func EnableURL

func EnableURL(c *gophercloud.ServiceClient, scalingGroupId string) string

func ListURL

func ListURL(c *gophercloud.ServiceClient, scalingGroupId string) string

Types

type ConfigNotificationOpts

type ConfigNotificationOpts struct {
	// Specifies a unified topic in SMN.
	TopicUrn string `json:"topic_urn" required:"true"`

	// Specifies a notification scenario, which can be one of the
	// following:SCALING_UP: indicates that the capacity is expanded.SCALING_UP_FAIL:
	// indicates that the capacity expansion failed.SCALING_DOWN: indicates that the
	// capacity is reduced.SCALING_DOWN_FAIL: indicates that the capacity reduction
	// failed.SCALING_GROUP_ABNORMAL: indicates that an exception has occurred in the AS
	// group.
	TopicScene []string `json:"topic_scene" required:"true"`
}

func (ConfigNotificationOpts) ToNotificationsOptsMap

func (opts ConfigNotificationOpts) ToNotificationsOptsMap() (map[string]interface{}, error)

type ConfigNotificationOptsBuilder

type ConfigNotificationOptsBuilder interface {
	ToNotificationsOptsMap() (map[string]interface{}, error)
}

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

func Delete(client *gophercloud.ServiceClient, scalingGroupId string, topicUrn string) (r DeleteResult)

type EnableResponse

type EnableResponse struct {

	// Specifies a unified topic in SMN.
	TopicUrn string `json:"topic_urn"`

	// Specifies a notification scenario, which can be one of the
	// following:
	TopicScene []string `json:"topic_scene"`

	// Specifies the topic name in SMN.
	TopicName string `json:"topic_name"`
}

type EnableResult

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

func ConfigNotification

func ConfigNotification(client *gophercloud.ServiceClient, scalingGroupId string, opts ConfigNotificationOptsBuilder) (r EnableResult)

func (EnableResult) Extract

func (r EnableResult) Extract() (*EnableResponse, error)

type ListResponse

type ListResponse struct {

	// Specifies the AS group notification list.
	Topics []Topic `json:"topics"`
}

type ListResult

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

func List

func List(client *gophercloud.ServiceClient, scalingGroupId string) (r ListResult)

func (ListResult) Extract

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

type Topic

type Topic struct {

	// Specifies a unified topic in SMN.
	TopicUrn string `json:"topic_urn"`

	// Specifies a notification scenario, which can be one of the
	// following:
	TopicScene []string `json:"topic_scene"`

	// Specifies the topic name in SMN.
	TopicName string `json:"topic_name"`
}

Jump to

Keyboard shortcuts

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