recorder

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: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRecorder

func DeleteRecorder(client *golangsdk.ServiceClient, domainId string) (err error)

func UpdateRecorder

func UpdateRecorder(client *golangsdk.ServiceClient, opts UpdateOpts) error

Types

type ChannelConfigBody

type ChannelConfigBody struct {
	Smn *TrackerSMNConfigBody `json:"smn,omitempty"`
	Obs *TrackerObsConfigBody `json:"obs,omitempty"`
}

type Recorder

type Recorder struct {
	Channel         ChannelConfigBody  `json:"channel"`
	Selector        SelectorConfigBody `json:"selector"`
	RetentionPeriod int                `json:"retention_period_in_days"`
	AgencyName      string             `json:"agency_name"`
}

func GetRecorder

func GetRecorder(client *golangsdk.ServiceClient, domainId string) (*Recorder, error)

type SelectorConfigBody

type SelectorConfigBody struct {
	AllSupported  bool     `json:"all_supported"`
	ResourceTypes []string `json:"resource_types"`
}

type TrackerObsConfigBody

type TrackerObsConfigBody struct {
	BucketName   string  `json:"bucket_name"`
	BucketPrefix *string `json:"bucket_prefix,omitempty"`
	RegionId     string  `json:"region_id"`
}

type TrackerSMNConfigBody

type TrackerSMNConfigBody struct {
	RegionId  string `json:"region_id"`
	ProjectId string `json:"project_id"`
	TopicUrn  string `json:"topic_urn"`
}

type UpdateOpts

type UpdateOpts struct {
	// Recorder domain id
	DomainId string `json:"-"`
	// Specifies configurations for the tracker channel.
	Channel ChannelConfigBody `json:"channel" required:"true"`
	// Specifies the selector.
	Selector SelectorConfigBody `json:"selector" required:"true"`
	// Number of days for data storage.
	RetentionDays *int `json:"retention_period_in_days,omitempty"`
	// Specifies the IAM agency name.
	AgencyName string `json:"agency_name" required:"true"`
}

Jump to

Keyboard shortcuts

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