rules

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMetricConfig

type LogMetricConfig struct {
	ID         int64              `json:"id"`
	OrgID      int64              `json:"org_id"`
	Scope      string             `json:"scope"`
	ScopeID    string             `json:"Scope_id"`
	Name       string             `json:"name"`
	Metric     string             `json:"metric"`
	Filters    []*Tag             `json:"filters"`
	Processors []*ProcessorConfig `json:"processors"`
	Enable     bool               `json:"enable"`
	CreateTime int64              `json:"create_time"`
	UpdateTime int64              `json:"update_time"`
}

LogMetricConfig .

func (*LogMetricConfig) FromModel

FromModel .

func (*LogMetricConfig) ToModel

func (c *LogMetricConfig) ToModel() *db.LogMetricConfig

ToModel .

type LogMetricConfigSimple

type LogMetricConfigSimple struct {
	ID         int64  `json:"id"`
	OrgID      int64  `json:"org_id"`
	Scope      string `json:"scope"`
	ScopeID    string `json:"scope_id"`
	Name       string `json:"name"`
	Types      string `json:"types"`
	Metric     string `json:"metric"`
	Enable     bool   `json:"enable"`
	CreateTime int64  `json:"create_time"`
	UpdateTime int64  `json:"update_time"`
}

LogMetricConfigSimple .

func (*LogMetricConfigSimple) FromModel

FromModel .

type ProcessorConfig

type ProcessorConfig struct {
	Type   string                 `json:"type"`
	Config map[string]interface{} `json:"config"`
}

ProcessorConfig .

type Tag

type Tag struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Tag .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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