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 ¶
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 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"` }
Click to show internal directories.
Click to hide internal directories.