Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOpts ¶
type CreateOpts struct { // Specifies the log group name. LogGroupName string `json:"log_group_name" required:"true"` // Specifies the log expiration time. The value is fixed to 7 days. TTL int `json:"ttl_in_daysion,omitempty"` }
CreateOpts is a struct that contains all the parameters.
func (CreateOpts) ToLogGroupsCreateMap ¶
func (ops CreateOpts) ToLogGroupsCreateMap() (map[string]interface{}, error)
ToLogGroupsCreateMap is used for type convert
type CreateOptsBuilder ¶
CreateOptsBuilder is used for creating log group parameters.
type CreateResponse ¶
type CreateResponse struct {
ID string `json:"log_group_id"`
}
Log group Create response
type CreateResult ¶
type CreateResult struct {
golangsdk.Result
}
CreateResult is a struct that contains all the return parameters of creation
func Create ¶
func Create(client *golangsdk.ServiceClient, ops CreateOptsBuilder) (r CreateResult)
Create a log group with given parameters.
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*CreateResponse, error)
Extract from CreateResult
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
DeleteResult is a struct which contains the result of deletion
func Delete ¶
func Delete(client *golangsdk.ServiceClient, id string) (r DeleteResult)
Delete a log group by id
Click to show internal directories.
Click to hide internal directories.