log

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (err error)

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)

func Get

func Get(client *golangsdk.ServiceClient, id string) (*Log, error)

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOpts) (*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"`
}

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]Logtank, error)

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"`
}

Jump to

Keyboard shortcuts

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