Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type CreateOpts struct {
// Specifies the load balancer ID.
LoadbalancerId string `json:"loadbalancer_id" required:"true"`
// Specifies the log group ID.
// This parameter is available for all services other than ELB.
LogGroupId string `json:"log_group_id" required:"true"`
// Specifies the ID of the log subscription topic.
// This parameter is available for all services other than ELB.
LogStreamId string `json:"log_topic_id" required:"true"`
}
type ListOpts ¶
type ListOpts struct {
// Specifies the number of records on each page.
Limit int `q:"limit"`
// Specifies the ID of the last record on the previous page.
Marker string `q:"marker"`
// Specifies whether to use reverse query. Values:
// true: Query the previous page.
// false (default): Query the next page.
PageReverse bool `q:"page_reverse"`
// Specifies the enterprise project ID.
EnterpriseProjectId []string `q:"enterprise_project_id"`
// Specifies the ID of the log tank.
ID []string `q:"id"`
// Specifies the ID of a load balancer.
LoadbalancerId []string `q:"loadbalancer_id"`
// Specifies the log group ID.
LogGroupId []string `q:"log_group_id"`
// Specifies the log stream ID.
LogStreamId []string `q:"log_topic_id"`
}
type Log ¶
type Log struct {
// Provides supplementary information.
Logtank *Logtank `json:"logtank"`
// Specifies the request ID. The value is automatically generated.
RequestId string `json:"request_id"`
}
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*Log, error)
type Logtank ¶
type Logtank struct {
// Specifies the log ID.
ID string `json:"id"`
// Specifies the ID of a load balancer.
ProjectId string `json:"project_id"`
// Specifies the ID of a load balancer.
LoadbalancerId string `json:"loadbalancer_id"`
// Specifies the log group ID.
LogGroupId string `json:"log_group_id"`
// Specifies the log stream ID.
LogStreamId string `json:"log_topic_id"`
}
type UpdateOpts ¶
type UpdateOpts struct {
// Specifies the log group ID.
// This parameter is available for all services other than ELB.
LogGroupId string `json:"log_group_id,omitempty"`
// Specifies the ID of the log subscription topic.
// This parameter is available for all services other than ELB.
LogStreamId string `json:"log_topic_id,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.