Documentation ¶
Index ¶
- func NewFeatureUsageAggregator() (core.Aggregator, error)
- type FeatureUsageAggregator
- func (agg *FeatureUsageAggregator) DumpToPostgresql(ctx *core.AggregationContext, sqlDb *sql.DB) error
- func (agg *FeatureUsageAggregator) DumpToStream(ctx *core.AggregationContext, stream io.Writer) error
- func (agg *FeatureUsageAggregator) IngestRecord(ctx *core.ExecutionContext, lineNumber int, op byte, fields []string) error
- type UsageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFeatureUsageAggregator ¶
func NewFeatureUsageAggregator() (core.Aggregator, error)
NewFeatureUsageAggregator constructs a new FeatureUsageAggregator
Types ¶
type FeatureUsageAggregator ¶
type FeatureUsageAggregator struct {
// contains filtered or unexported fields
}
FeatureUsageAggregator implements the Aggregator interface for heavy-weight feature usage aggregates and script creation/harvesting
func (*FeatureUsageAggregator) DumpToPostgresql ¶
func (agg *FeatureUsageAggregator) DumpToPostgresql(ctx *core.AggregationContext, sqlDb *sql.DB) error
DumpToMongresql handles tuple and blob insertion for feature usage (mono/polymorphic callsites), script creation, and script archiving
func (*FeatureUsageAggregator) DumpToStream ¶
func (agg *FeatureUsageAggregator) DumpToStream(ctx *core.AggregationContext, stream io.Writer) error
DumpToStream sends feature/script/blob data to stdout for inspection
func (*FeatureUsageAggregator) IngestRecord ¶
func (agg *FeatureUsageAggregator) IngestRecord(ctx *core.ExecutionContext, lineNumber int, op byte, fields []string) error
IngestRecord parses a trace/callsite record and aggregates API feature usage
type UsageInfo ¶
type UsageInfo struct { // Active security origin Origin string // Active script Script *core.ScriptInfo // Character offset into script (determines "call site") Offset int // Feature name (generally, RECEVER_CTOR_NAME.ITEM_NAME) Name string // Usage mode ('g' get, 'c' call, 's' set, 'n' new-style call) Usage rune }
UsageInfo provides the key type for our map of feature-tuple aggregates
Click to show internal directories.
Click to hide internal directories.