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 ¶
- Variables
- type DropPolicy
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetAggregationTypes() []aggregationpb.AggregationType
- func (m *Policy) GetStoragePolicy() *StoragePolicy
- func (m *Policy) Marshal() (dAtA []byte, err error)
- func (m *Policy) MarshalTo(dAtA []byte) (int, error)
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) Size() (n int)
- func (m *Policy) String() string
- func (m *Policy) Unmarshal(dAtA []byte) error
- type Resolution
- func (*Resolution) Descriptor() ([]byte, []int)
- func (m *Resolution) GetPrecision() int64
- func (m *Resolution) GetWindowSize() int64
- func (m *Resolution) Marshal() (dAtA []byte, err error)
- func (m *Resolution) MarshalTo(dAtA []byte) (int, error)
- func (*Resolution) ProtoMessage()
- func (m *Resolution) Reset()
- func (m *Resolution) Size() (n int)
- func (m *Resolution) String() string
- func (m *Resolution) Unmarshal(dAtA []byte) error
- type Retention
- func (*Retention) Descriptor() ([]byte, []int)
- func (m *Retention) GetPeriod() int64
- func (m *Retention) Marshal() (dAtA []byte, err error)
- func (m *Retention) MarshalTo(dAtA []byte) (int, error)
- func (*Retention) ProtoMessage()
- func (m *Retention) Reset()
- func (m *Retention) Size() (n int)
- func (m *Retention) String() string
- func (m *Retention) Unmarshal(dAtA []byte) error
- type StoragePolicy
- func (*StoragePolicy) Descriptor() ([]byte, []int)
- func (m *StoragePolicy) GetResolution() *Resolution
- func (m *StoragePolicy) GetRetention() *Retention
- func (m *StoragePolicy) Marshal() (dAtA []byte, err error)
- func (m *StoragePolicy) MarshalTo(dAtA []byte) (int, error)
- func (*StoragePolicy) ProtoMessage()
- func (m *StoragePolicy) Reset()
- func (m *StoragePolicy) Size() (n int)
- func (m *StoragePolicy) String() string
- func (m *StoragePolicy) Unmarshal(dAtA []byte) error
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) GetAggregationTypes ¶
func (m *Policy) GetAggregationTypes() []aggregationpb.AggregationType
func (*Policy) GetStoragePolicy ¶
func (m *Policy) GetStoragePolicy() *StoragePolicy
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
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) 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) ProtoMessage ¶
func (*Retention) ProtoMessage()
type StoragePolicy ¶
type StoragePolicy struct { Resolution *Resolution `protobuf:"bytes,1,opt,name=resolution" json:"resolution,omitempty"` Retention *Retention `protobuf:"bytes,2,opt,name=retention" json:"retention,omitempty"` }
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) 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
Click to show internal directories.
Click to hide internal directories.