Documentation ¶
Index ¶
- type OpUnion
- type Pipeline
- func (p Pipeline) At(i int) OpUnion
- func (p Pipeline) Clone() Pipeline
- func (p Pipeline) Equal(other Pipeline) bool
- func (p *Pipeline) FromProto(pb pipelinepb.AppliedPipeline) error
- func (p Pipeline) IsEmpty() bool
- func (p Pipeline) Len() int
- func (p Pipeline) String() string
- func (p Pipeline) SubPipeline(startInclusive int, endExclusive int) Pipeline
- func (p Pipeline) ToProto(pb *pipelinepb.AppliedPipeline) error
- type RollupOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpUnion ¶
type OpUnion struct { Type pipeline.OpType Transformation pipeline.TransformationOp Rollup RollupOp }
OpUnion is a union of different types of operation.
func (*OpUnion) FromProto ¶
func (u *OpUnion) FromProto(pb pipelinepb.AppliedPipelineOp) error
FromProto converts the protobuf message to an applied pipeline op in place.
func (OpUnion) ToProto ¶
func (u OpUnion) ToProto(pb *pipelinepb.AppliedPipelineOp) error
ToProto converts the applied pipeline op to a protobuf message in place.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline is a pipeline of operations.
var ( // DefaultPipeline is a default pipeline. DefaultPipeline Pipeline )
func (*Pipeline) FromProto ¶
func (p *Pipeline) FromProto(pb pipelinepb.AppliedPipeline) error
FromProto converts the protobuf message to an applied pipeline in place.
func (Pipeline) SubPipeline ¶
SubPipeline returns a sub-pipeline containing operations between step `startInclusive` and step `endExclusive` of the current pipeline.
func (Pipeline) ToProto ¶
func (p Pipeline) ToProto(pb *pipelinepb.AppliedPipeline) error
ToProto converts the applied pipeline to a protobuf message in place.
type RollupOp ¶
type RollupOp struct { // Metric ID generated as a result of the rollup. ID []byte // Type of aggregations performed within each unique dimension combination. AggregationID aggregation.ID }
RollupOp captures the rollup metadata after the operation is applied against a metric ID.
func (*RollupOp) FromProto ¶
func (op *RollupOp) FromProto(pb *pipelinepb.AppliedRollupOp) error
FromProto converts the protobuf message to an applied rollup op in place.
func (RollupOp) ToProto ¶
func (op RollupOp) ToProto(pb *pipelinepb.AppliedRollupOp) error
ToProto converts the applied rollup op to a protobuf message in place.