policypb

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 14

Documentation

Overview

Package policypb is a generated protocol buffer package.

It is generated from these files:

github.com/m3db/m3/src/metrics/generated/proto/policypb/policy.proto

It has these top-level messages:

Resolution
Retention
StoragePolicy
Policy

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPolicy = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPolicy   = fmt.Errorf("proto: integer overflow")
)
View Source
var DropPolicy_name = map[int32]string{
	0: "NONE",
	1: "DROP_MUST",
	2: "DROP_IF_ONLY_MATCH",
}
View Source
var DropPolicy_value = map[string]int32{
	"NONE":               0,
	"DROP_MUST":          1,
	"DROP_IF_ONLY_MATCH": 2,
}

Functions

This section is empty.

Types

type DropPolicy

type DropPolicy int32
const (
	DropPolicy_NONE               DropPolicy = 0
	DropPolicy_DROP_MUST          DropPolicy = 1
	DropPolicy_DROP_IF_ONLY_MATCH DropPolicy = 2
)

func (DropPolicy) EnumDescriptor

func (DropPolicy) EnumDescriptor() ([]byte, []int)

func (DropPolicy) String

func (x DropPolicy) String() string

type Policy

type Policy struct {
	StoragePolicy    *StoragePolicy                  `protobuf:"bytes,1,opt,name=storage_policy,json=storagePolicy" json:"storage_policy,omitempty"`
	AggregationTypes []aggregationpb.AggregationType `` /* 145-byte string literal not displayed */
}

func (*Policy) Descriptor

func (*Policy) Descriptor() ([]byte, []int)

func (*Policy) GetAggregationTypes

func (m *Policy) GetAggregationTypes() []aggregationpb.AggregationType

func (*Policy) GetStoragePolicy

func (m *Policy) GetStoragePolicy() *StoragePolicy

func (*Policy) Marshal

func (m *Policy) Marshal() (dAtA []byte, err error)

func (*Policy) MarshalTo

func (m *Policy) MarshalTo(dAtA []byte) (int, error)

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) Size

func (m *Policy) Size() (n int)

func (*Policy) String

func (m *Policy) String() string

func (*Policy) Unmarshal

func (m *Policy) Unmarshal(dAtA []byte) error

type Resolution

type Resolution struct {
	WindowSize int64 `protobuf:"varint,1,opt,name=window_size,json=windowSize,proto3" json:"window_size,omitempty"`
	Precision  int64 `protobuf:"varint,2,opt,name=precision,proto3" json:"precision,omitempty"`
}

func (*Resolution) Descriptor

func (*Resolution) Descriptor() ([]byte, []int)

func (*Resolution) GetPrecision

func (m *Resolution) GetPrecision() int64

func (*Resolution) GetWindowSize

func (m *Resolution) GetWindowSize() int64

func (*Resolution) Marshal

func (m *Resolution) Marshal() (dAtA []byte, err error)

func (*Resolution) MarshalTo

func (m *Resolution) MarshalTo(dAtA []byte) (int, error)

func (*Resolution) ProtoMessage

func (*Resolution) ProtoMessage()

func (*Resolution) Reset

func (m *Resolution) Reset()

func (*Resolution) Size

func (m *Resolution) Size() (n int)

func (*Resolution) String

func (m *Resolution) String() string

func (*Resolution) Unmarshal

func (m *Resolution) Unmarshal(dAtA []byte) error

type Retention

type Retention struct {
	Period int64 `protobuf:"varint,1,opt,name=period,proto3" json:"period,omitempty"`
}

func (*Retention) Descriptor

func (*Retention) Descriptor() ([]byte, []int)

func (*Retention) GetPeriod

func (m *Retention) GetPeriod() int64

func (*Retention) Marshal

func (m *Retention) Marshal() (dAtA []byte, err error)

func (*Retention) MarshalTo

func (m *Retention) MarshalTo(dAtA []byte) (int, error)

func (*Retention) ProtoMessage

func (*Retention) ProtoMessage()

func (*Retention) Reset

func (m *Retention) Reset()

func (*Retention) Size

func (m *Retention) Size() (n int)

func (*Retention) String

func (m *Retention) String() string

func (*Retention) Unmarshal

func (m *Retention) Unmarshal(dAtA []byte) error

type StoragePolicy

type StoragePolicy struct {
	Resolution Resolution `protobuf:"bytes,1,opt,name=resolution" json:"resolution"`
	Retention  Retention  `protobuf:"bytes,2,opt,name=retention" json:"retention"`
}

func (*StoragePolicy) Descriptor

func (*StoragePolicy) Descriptor() ([]byte, []int)

func (*StoragePolicy) GetResolution

func (m *StoragePolicy) GetResolution() Resolution

func (*StoragePolicy) GetRetention

func (m *StoragePolicy) GetRetention() Retention

func (*StoragePolicy) Marshal

func (m *StoragePolicy) Marshal() (dAtA []byte, err error)

func (*StoragePolicy) MarshalTo

func (m *StoragePolicy) MarshalTo(dAtA []byte) (int, error)

func (*StoragePolicy) ProtoMessage

func (*StoragePolicy) ProtoMessage()

func (*StoragePolicy) Reset

func (m *StoragePolicy) Reset()

func (*StoragePolicy) Size

func (m *StoragePolicy) Size() (n int)

func (*StoragePolicy) String

func (m *StoragePolicy) String() string

func (*StoragePolicy) Unmarshal

func (m *StoragePolicy) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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