buckets

package
v1.67.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Statuses = struct {
	Creating Status
	Active   Status
	Updating Status
	Deleting Status
}{
	"creating",
	"active",
	"updating",
	"deleting",
}
View Source
var Tables = struct {
	Logs      Table
	Spans     Table
	Events    Table
	BizEvents Table
}{
	"logs",
	"spans",
	"events",
	"bizevents",
}

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Name          string `json:"bucketName"`       // The name / id of the bucket definition
	Table         Table  `json:"table"`            // The table the bucket definition applies to. Possible values are `logs`, `spans`,	`events` and `bizevents`
	DisplayName   string `json:"displayName"`      // The name of the bucket definition when visualized within the UI
	Status        Status `json:"status,omitempty"` // The current status of the bucket definition. Possible values are `creating`, `active`, `updating` and `deleting`
	RetentionDays int    `json:"retentionDays"`    // The retention in days
	Version       int    `json:"version"`          // The REST API keeps track of changes by increasing that value with every update
}

func (*Bucket) ForUpdate

func (me *Bucket) ForUpdate() *BucketUpdate

func (*Bucket) MarshalHCL

func (me *Bucket) MarshalHCL(properties hcl.Properties) error

func (*Bucket) Schema

func (me *Bucket) Schema() map[string]*schema.Schema

func (*Bucket) UnmarshalHCL

func (me *Bucket) UnmarshalHCL(decoder hcl.Decoder) error

type BucketUpdate

type BucketUpdate struct {
	DisplayName   string `json:"displayName"`   // TODO
	RetentionDays int    `json:"retentionDays"` // TODO
}

type Status

type Status string

type Table

type Table string

Jump to

Keyboard shortcuts

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