tracker

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 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(client *golangsdk.ServiceClient, trackerName string) (err error)

Delete will permanently delete a particular tracker.

Types

type CreateLts added in v0.5.25

type CreateLts struct {
	IsLtsEnabled *bool `json:"is_lts_enabled,omitempty"`
}

type CreateOpts

type CreateOpts struct {
	// OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter.
	// Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
	BucketName string `json:"bucket_name" required:"true"`
	// Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters,
	// including letters, digits, hyphens (-), underscores (_), and periods (.).
	FilePrefixName string `json:"file_prefix_name,omitempty"`
	// Whether trace analysis is enabled.
	// When you enable trace analysis, a log group named CTS and a log stream named system-trace are created in LTS.
	Lts CreateLts `json:"lts,omitempty"`
}

type Lts added in v0.5.25

type Lts struct {
	// Whether trace analysis is enabled.
	IsLtsEnabled bool `json:"is_lts_enabled"`
	// Name of the Log Tank Service (LTS) log group.
	LogGroupName string `json:"log_group_name"`
	// Name of the LTS log stream.
	LogTopicName string `json:"log_topic_name"`
}

type Tracker

type Tracker struct {
	// Status of a tracker. The value is enabled.
	Status string `json:"status"`
	// OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter.
	// Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
	BucketName string `json:"bucket_name"`
	// Prefix of trace files that need to be stored in OBS buckets.
	FilePrefixName string `json:"file_prefix_name"`
	// Tracker name. The default value is system.
	TrackerName string `json:"tracker_name"`
	// Lts whether trace analysis is enabled.
	Lts Lts `json:"lts"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Tracker, error)

func Get added in v0.5.25

func Get(client *golangsdk.ServiceClient, trackerName string) (*Tracker, error)

func Update

func Update(client *golangsdk.ServiceClient, opts UpdateOpts, trackerName string) (*Tracker, error)

type UpdateOpts

type UpdateOpts struct {
	// OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter.
	// Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
	BucketName string `json:"bucket_name" required:"true"`
	// Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters,
	// including letters, digits, hyphens (-), underscores (_), and periods (.).
	FilePrefixName string `json:"file_prefix_name,omitempty"`
	// Status of a tracker. The value can be enabled or disabled.
	// If you change the value to disabled, the tracker stops recording traces.
	Status string `json:"status,omitempty"`
	// Whether trace analysis is enabled.
	// When you enable trace analysis, a log group named CTS and a log stream named system-trace are created in LTS.
	Lts CreateLts `json:"lts,omitempty"`
}

Jump to

Keyboard shortcuts

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