Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶ added in v0.9.4
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (string, error)
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"`
// Tags - tags of a group.
Tags []tags.ResourceTag `json:"tags,omitempty"`
// Log group alias.
Alias string `json:"log_group_name_alias,omitempty"`
}
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 Update ¶ added in v0.9.4
func Update(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"`
// Tags - tags of a group.
Tags []tags.ResourceTag `json:"tags,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.