rules

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(rule grpc.Rule, data map[string]string, pidRuntime string) bool

Match checks the filter properties for a rule against the data from the event.

func Parse

func Parse(file string) (grpc.Rule, error)

Parse parses a rules file and returns the rule.

func ParseFiles

func ParseFiles(files ...string) (map[string]map[string]grpc.Rule, []string, error)

ParseFiles parses the rules files and returns an array of rules for each tracer.

func Validate

func Validate(rule grpc.Rule) error

Validate checks that the rule is valid.

func ValidateTracersAndActions

func ValidateTracersAndActions(rule grpc.Rule, tracers, actions []string) error

ValidateTracersAndActions checks that the tracer and action parts of a rule are valid against the given options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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