Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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)
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"`
}
Click to show internal directories.
Click to hide internal directories.