Help us shape the future of Go! Take the 2026 Go Developer Survey

groups

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogGroup

func CreateLogGroup(client *golangsdk.ServiceClient, opts CreateOpts) (string, error)

func DeleteLogGroup

func DeleteLogGroup(client *golangsdk.ServiceClient, groupId string) (err error)

DeleteLogGroup a log group by id

Types

type CreateOpts

type CreateOpts struct {
	// Name of the log group to be created.
	// Minimum length: 1 character
	// Maximum length: 64 characters
	// Enumerated value:
	// lts-group-01nh
	LogGroupName string `json:"log_group_name" required:"true"`
	// Log retention duration, in days (fixed to 7 days).
	TTLInDays int `json:"ttl_in_days"`
}

CreateOpts is a struct that contains all the parameters.

type LogGroup

type LogGroup struct {
	// Time when a log group was created.
	CreationTime int64 `json:"creation_time"`
	// Log group name.
	// Minimum length: 1 character
	// Maximum length: 64 characters
	LogGroupName string `json:"log_group_name"`
	// Log group ID.
	// Value length: 36 characters
	LogGroupId string `json:"log_group_id"`
	// Log retention duration, in days (fixed to 7 days).
	TTLInDays int `json:"ttl_in_days"`
	// Log group tag.
	Tag map[string]string `json:"tag,omitempty"`
}

func ListLogGroups

func ListLogGroups(client *golangsdk.ServiceClient) ([]LogGroup, error)

func UpdateLogGroup

func UpdateLogGroup(client *golangsdk.ServiceClient, opts UpdateLogGroupOpts) (*LogGroup, error)

type UpdateLogGroupOpts

type UpdateLogGroupOpts struct {
	// Log group ID. For details about how to obtain a log group ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.
	// Default value: None
	// Value length: 36 characters
	LogGroupId string `json:"-" required:"true"`
	// Log retention duration, in days (fixed to 7 days).
	TTLInDays int32 `json:"ttl_in_days" required:"true"`
}

Jump to

Keyboard shortcuts

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