timeseriesv1

package
v0.0.0-...-0f6a5af Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_timeseries_v1_timeseries_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Point

type Point struct {

	// Types that are assignable to Timestamp:
	//
	//	*Point_Range
	//	*Point_Millis
	Timestamp   isPoint_Timestamp `protobuf_oneof:"timestamp"`
	Pb          *anypb.Any        `protobuf:"bytes,3,opt,name=pb,proto3" json:"pb,omitempty"`
	Description string            `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Href        string            `protobuf:"bytes,5,opt,name=href,proto3" json:"href,omitempty"`
	// contains filtered or unexported fields
}

A timeseries Point message is useful for organizing events to be displayed in a timeline view. Users can transform data into a timeseries format and be able to organize them.

func (*Point) Descriptor deprecated

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

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetDescription

func (x *Point) GetDescription() string

func (*Point) GetHref

func (x *Point) GetHref() string

func (*Point) GetMillis

func (x *Point) GetMillis() int64

func (*Point) GetPb

func (x *Point) GetPb() *anypb.Any

func (*Point) GetRange

func (x *Point) GetRange() *TimeRange

func (*Point) GetTimestamp

func (m *Point) GetTimestamp() isPoint_Timestamp

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

func (x *Point) ProtoReflect() protoreflect.Message

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

func (*Point) Validate

func (m *Point) Validate() error

Validate checks the field values on Point with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Point) ValidateAll

func (m *Point) ValidateAll() error

ValidateAll checks the field values on Point with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PointMultiError, or nil if none found.

type PointMultiError

type PointMultiError []error

PointMultiError is an error wrapping multiple validation errors returned by Point.ValidateAll() if the designated constraints aren't met.

func (PointMultiError) AllErrors

func (m PointMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PointMultiError) Error

func (m PointMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PointValidationError

type PointValidationError struct {
	// contains filtered or unexported fields
}

PointValidationError is the validation error returned by Point.Validate if the designated constraints aren't met.

func (PointValidationError) Cause

func (e PointValidationError) Cause() error

Cause function returns cause value.

func (PointValidationError) Error

func (e PointValidationError) Error() string

Error satisfies the builtin error interface

func (PointValidationError) ErrorName

func (e PointValidationError) ErrorName() string

ErrorName returns error name.

func (PointValidationError) Field

func (e PointValidationError) Field() string

Field function returns field value.

func (PointValidationError) Key

func (e PointValidationError) Key() bool

Key function returns key value.

func (PointValidationError) Reason

func (e PointValidationError) Reason() string

Reason function returns reason value.

type Point_Millis

type Point_Millis struct {
	Millis int64 `protobuf:"varint,2,opt,name=millis,proto3,oneof"`
}

type Point_Range

type Point_Range struct {
	Range *TimeRange `protobuf:"bytes,1,opt,name=range,proto3,oneof"`
}

type TimeRange

type TimeRange struct {
	StartMillis int64 `protobuf:"varint,1,opt,name=start_millis,json=startMillis,proto3" json:"start_millis,omitempty"`
	EndMillis   int64 `protobuf:"varint,2,opt,name=end_millis,json=endMillis,proto3" json:"end_millis,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeRange) Descriptor deprecated

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

Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.

func (*TimeRange) GetEndMillis

func (x *TimeRange) GetEndMillis() int64

func (*TimeRange) GetStartMillis

func (x *TimeRange) GetStartMillis() int64

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) ProtoReflect

func (x *TimeRange) ProtoReflect() protoreflect.Message

func (*TimeRange) Reset

func (x *TimeRange) Reset()

func (*TimeRange) String

func (x *TimeRange) String() string

func (*TimeRange) Validate

func (m *TimeRange) Validate() error

Validate checks the field values on TimeRange with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TimeRange) ValidateAll

func (m *TimeRange) ValidateAll() error

ValidateAll checks the field values on TimeRange with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TimeRangeMultiError, or nil if none found.

type TimeRangeMultiError

type TimeRangeMultiError []error

TimeRangeMultiError is an error wrapping multiple validation errors returned by TimeRange.ValidateAll() if the designated constraints aren't met.

func (TimeRangeMultiError) AllErrors

func (m TimeRangeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TimeRangeMultiError) Error

func (m TimeRangeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TimeRangeValidationError

type TimeRangeValidationError struct {
	// contains filtered or unexported fields
}

TimeRangeValidationError is the validation error returned by TimeRange.Validate if the designated constraints aren't met.

func (TimeRangeValidationError) Cause

func (e TimeRangeValidationError) Cause() error

Cause function returns cause value.

func (TimeRangeValidationError) Error

func (e TimeRangeValidationError) Error() string

Error satisfies the builtin error interface

func (TimeRangeValidationError) ErrorName

func (e TimeRangeValidationError) ErrorName() string

ErrorName returns error name.

func (TimeRangeValidationError) Field

func (e TimeRangeValidationError) Field() string

Field function returns field value.

func (TimeRangeValidationError) Key

Key function returns key value.

func (TimeRangeValidationError) Reason

func (e TimeRangeValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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