logstreams

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 1 Imported by: 0

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 stream name.
	LogStreamName string `json:"log_stream_name" required:"true"`
}

CreateOpts is a struct that contains all the parameters.

func (CreateOpts) ToLogStreamsCreateMap

func (ops CreateOpts) ToLogStreamsCreateMap() (map[string]interface{}, error)

ToLogStreamsCreateMap is used for type convert

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToLogStreamsCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder is used for creating log stream parameters.

type CreateResponse

type CreateResponse struct {
	ID string `json:"log_stream_id"`
}

Log stream 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, groupId string, ops CreateOptsBuilder) (r CreateResult)

Create a log stream 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, groupId string, id string) (r DeleteResult)

Delete a log stream by id

type ListResults

type ListResults struct {
	golangsdk.Result
}

ListResults contains the body of getting list

func List

func List(client *golangsdk.ServiceClient, groupId string) (r ListResults)

Get log stream list

func (ListResults) Extract

func (r ListResults) Extract() (*LogStreams, error)

Extract list from GetResult

type LogStream

type LogStream struct {
	ID           string `json:"log_stream_id"`
	Name         string `json:"log_stream_name"`
	CreationTime int64  `json:"creation_time"`
	FilterCount  int64  `json:"filter_count"`
}

Log stream response

type LogStreams

type LogStreams struct {
	LogStreams []LogStream `json:"log_streams"`
}

Log stream list response

Jump to

Keyboard shortcuts

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