Documentation ¶
Index ¶
- type AggregationOp
- func (op AggregationOp) Clone() AggregationOp
- func (op AggregationOp) Equal(other AggregationOp) bool
- func (op AggregationOp) MarshalJSON() ([]byte, error)
- func (op AggregationOp) Proto() (*pipelinepb.AggregationOp, error)
- func (op AggregationOp) String() string
- func (op *AggregationOp) UnmarshalJSON(data []byte) error
- func (op *AggregationOp) UnmarshalYAML(unmarshal func(interface{}) error) error
- type OpType
- type OpUnion
- func (u OpUnion) Clone() OpUnion
- func (u OpUnion) Equal(other OpUnion) bool
- func (u OpUnion) MarshalJSON() ([]byte, error)
- func (u OpUnion) Proto() (*pipelinepb.PipelineOp, error)
- func (u OpUnion) String() string
- func (u *OpUnion) UnmarshalJSON(data []byte) error
- func (u *OpUnion) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Pipeline
- func (p Pipeline) At(i int) OpUnion
- func (p Pipeline) Clone() Pipeline
- func (p Pipeline) Equal(other Pipeline) bool
- func (p Pipeline) IsEmpty() bool
- func (p Pipeline) Len() int
- func (p Pipeline) MarshalJSON() ([]byte, error)
- func (p Pipeline) Proto() (*pipelinepb.Pipeline, error)
- func (p Pipeline) String() string
- func (p Pipeline) SubPipeline(startInclusive int, endExclusive int) Pipeline
- func (p *Pipeline) UnmarshalJSON(data []byte) error
- func (p *Pipeline) UnmarshalYAML(unmarshal func(interface{}) error) error
- type RollupOp
- func (op RollupOp) Clone() RollupOp
- func (op RollupOp) Equal(other RollupOp) bool
- func (op RollupOp) MarshalJSON() ([]byte, error)
- func (op RollupOp) Proto() (*pipelinepb.RollupOp, error)
- func (op RollupOp) SameTransform(other RollupOp) bool
- func (op RollupOp) String() string
- func (op *RollupOp) UnmarshalJSON(data []byte) error
- func (op *RollupOp) UnmarshalYAML(unmarshal func(interface{}) error) error
- type TransformationOp
- func (op TransformationOp) Clone() TransformationOp
- func (op TransformationOp) Equal(other TransformationOp) bool
- func (op *TransformationOp) FromProto(pb *pipelinepb.TransformationOp) error
- func (op TransformationOp) MarshalJSON() ([]byte, error)
- func (op TransformationOp) Proto() (*pipelinepb.TransformationOp, error)
- func (op TransformationOp) String() string
- func (op TransformationOp) ToProto(pb *pipelinepb.TransformationOp) error
- func (op *TransformationOp) UnmarshalJSON(data []byte) error
- func (op *TransformationOp) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationOp ¶
type AggregationOp struct { // Type of aggregation performed. Type aggregation.Type }
AggregationOp is an aggregation operation.
func NewAggregationOpFromProto ¶
func NewAggregationOpFromProto(pb *pipelinepb.AggregationOp) (AggregationOp, error)
NewAggregationOpFromProto creates a new aggregation op from proto.
func (AggregationOp) Clone ¶
func (op AggregationOp) Clone() AggregationOp
Clone clones the aggregation operation.
func (AggregationOp) Equal ¶
func (op AggregationOp) Equal(other AggregationOp) bool
Equal determines whether two aggregation operations are equal.
func (AggregationOp) MarshalJSON ¶
func (op AggregationOp) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON encoding of an aggregation operation.
func (AggregationOp) Proto ¶
func (op AggregationOp) Proto() (*pipelinepb.AggregationOp, error)
Proto returns the proto message for the given aggregation operation.
func (AggregationOp) String ¶
func (op AggregationOp) String() string
func (*AggregationOp) UnmarshalJSON ¶
func (op *AggregationOp) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals JSON-encoded data into an aggregation operation.
func (*AggregationOp) UnmarshalYAML ¶
func (op *AggregationOp) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmarshals YAML-encoded data into an aggregation operation.
type OpType ¶
type OpType int
OpType defines the type of an operation.
List of supported operation types.
type OpUnion ¶
type OpUnion struct { Type OpType Aggregation AggregationOp Transformation TransformationOp Rollup RollupOp }
OpUnion is a union of different types of operation.
func NewOpUnionFromProto ¶
func NewOpUnionFromProto(pb pipelinepb.PipelineOp) (OpUnion, error)
NewOpUnionFromProto creates a new operation union from proto.
func (OpUnion) MarshalJSON ¶
MarshalJSON returns the JSON encoding of an operation union.
func (OpUnion) Proto ¶
func (u OpUnion) Proto() (*pipelinepb.PipelineOp, error)
Proto creates a proto message for the given operation.
func (*OpUnion) UnmarshalJSON ¶
UnmarshalJSON unmarshals JSON-encoded data into an operation union.
func (*OpUnion) UnmarshalYAML ¶
UnmarshalYAML unmarshals YAML-encoded data into an operation union.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline is a pipeline of operations.
func NewPipelineFromProto ¶
func NewPipelineFromProto(pb *pipelinepb.Pipeline) (Pipeline, error)
NewPipelineFromProto creates a new pipeline from proto.
func (Pipeline) MarshalJSON ¶
MarshalJSON returns the JSON encoding of a pipeline.
func (Pipeline) Proto ¶
func (p Pipeline) Proto() (*pipelinepb.Pipeline, error)
Proto returns the proto message for a given pipeline.
func (Pipeline) SubPipeline ¶
SubPipeline returns a sub-pipeline containing operations between step `startInclusive` and step `endExclusive` of the current pipeline.
func (*Pipeline) UnmarshalJSON ¶
UnmarshalJSON unmarshals JSON-encoded data into a pipeline.
func (*Pipeline) UnmarshalYAML ¶
UnmarshalYAML unmarshals YAML-encoded data into a pipeline.
type RollupOp ¶
type RollupOp struct { // New metric name generated as a result of the rollup. NewName []byte // Dimensions along which the rollup is performed. Tags [][]byte // Types of aggregation performed within each unique dimension combination. AggregationID aggregation.ID }
RollupOp is a rollup operation.
func NewRollupOpFromProto ¶
func NewRollupOpFromProto(pb *pipelinepb.RollupOp) (RollupOp, error)
NewRollupOpFromProto creates a new rollup op from proto. NB: the rollup tags are always sorted on construction.
func (RollupOp) MarshalJSON ¶
MarshalJSON returns the JSON encoding of a rollup operation.
func (RollupOp) Proto ¶
func (op RollupOp) Proto() (*pipelinepb.RollupOp, error)
Proto returns the proto message for the given rollup op.
func (RollupOp) SameTransform ¶
SameTransform returns true if the two rollup operations have the same rollup transformation (i.e., same new rollup metric name and same set of rollup tags).
func (*RollupOp) UnmarshalJSON ¶
UnmarshalJSON unmarshals JSON-encoded data into a rollup operation.
func (*RollupOp) UnmarshalYAML ¶
UnmarshalYAML unmarshals YAML-encoded data into a rollup operation.
type TransformationOp ¶
type TransformationOp struct { // Type of transformation performed. Type transformation.Type }
TransformationOp is a transformation operation.
func NewTransformationOpFromProto ¶
func NewTransformationOpFromProto(pb *pipelinepb.TransformationOp) (TransformationOp, error)
NewTransformationOpFromProto creates a new transformation op from proto.
func (TransformationOp) Clone ¶
func (op TransformationOp) Clone() TransformationOp
Clone clones the transformation operation.
func (TransformationOp) Equal ¶
func (op TransformationOp) Equal(other TransformationOp) bool
Equal determines whether two transformation operations are equal.
func (*TransformationOp) FromProto ¶
func (op *TransformationOp) FromProto(pb *pipelinepb.TransformationOp) error
FromProto converts the protobuf message to a transformation in place.
func (TransformationOp) MarshalJSON ¶
func (op TransformationOp) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON encoding of a transformation operation.
func (TransformationOp) Proto ¶
func (op TransformationOp) Proto() (*pipelinepb.TransformationOp, error)
Proto returns the proto message for the given transformation op.
func (TransformationOp) String ¶
func (op TransformationOp) String() string
func (TransformationOp) ToProto ¶
func (op TransformationOp) ToProto(pb *pipelinepb.TransformationOp) error
ToProto converts the transformation op to a protobuf message in place.
func (*TransformationOp) UnmarshalJSON ¶
func (op *TransformationOp) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals JSON-encoded data into a transformation operation.
func (*TransformationOp) UnmarshalYAML ¶
func (op *TransformationOp) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmarshals YAML-encoded data into a transformation operation.