structs

package
v2.24.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: GPL-3.0 Imports: 16 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DSoptions

type DSoptions struct {
	Downsample string `json:"approximation"`
	Unit       string `json:"unit"`
	Value      int    `json:"value"`
	Fill       string
}

type DataOperations

type DataOperations struct {
	Downsample  Downsample
	Merge       string
	Rate        RateOperation
	Order       []string
	FilterValue FilterValueOperation
}

type Downsample

type Downsample struct {
	Enabled     bool      `json:"enabled"`
	PointLimit  bool      `json:"pointLimit"`
	TotalPoints int       `json:"totalPoints"`
	Options     DSoptions `json:"options"`
}

type FilterValueOperation

type FilterValueOperation struct {
	Enabled  bool
	BoolOper string
	Value    float64
}

type GlobalTelnetServerConfiguration

type GlobalTelnetServerConfiguration struct {
	MaxTelnetConnections              uint32
	MaxUnbalancedTelnetConnsPerNode   uint32
	TelnetConnsBalanceCheckInterval   string
	MaxWaitForDropTelnetConnsInterval string
	HTTPRequestTimeout                string
	MaxWaitForOtherNodeConnsBalancing string
	ConnectionCloseChannelSize        int
	Nodes                             []string
	SilenceLogs                       bool
}

type Key

type Key struct {
	TSid string `json:"tsid"`
	TTL  int    `json:"ttl"`
}

type LoggerSettings

type LoggerSettings struct {
	Level  logh.Level
	Format logh.Format
}

type Merge

type Merge struct {
	Option string `json:"option"`
	Keys   []Key  `json:"keys"`
}

type RateOperation

type RateOperation struct {
	Enabled bool
	Options TSDBrateOptions
}

type Settings

type Settings struct {
	MaxTimeseries                   int
	LogQueryTSthreshold             int
	MaxConcurrentPoints             int
	DefaultPaginationSize           int
	MaxBytesOnQueryProcessing       uint32
	SilencePointValidationErrors    bool
	GarbageCollectorPercentage      int
	TSIDKeySize                     int
	GlobalTelnetServerConfiguration GlobalTelnetServerConfiguration
	HTTPserver                      SettingsHTTP
	UDPserver                       SettingsUDP
	TELNETserver                    TelnetServerConfiguration
	NetdataServer                   TelnetServerConfiguration
	DefaultTTL                      int
	MaxAllowedTTL                   int
	DefaultKeysets                  []string
	BlacklistedKeysets              []string
	DefaultKeyspaceData             keyspace.Config
	DefaultKeyspaces                map[string]int
	Cassandra                       cassandra.Settings
	Memcached                       memcached.Configuration
	Logs                            LoggerSettings
	Stats                           snitch.Settings
	StatsAnalytic                   snitch.Settings
	MetadataSettings                metadata.Settings
	Probe                           struct {
		Threshold float64
	}
}

type SettingsHTTP

type SettingsHTTP struct {
	Port              int
	Bind              string
	EnableProfiling   bool
	ForceErrorAsDebug bool
	AllowCORS         bool
}

type SettingsUDP

type SettingsUDP struct {
	Port             int
	SendStatsTimeout string
	ReadBuffer       int
}

type TSDBfilter

type TSDBfilter struct {
	Ftype   string `json:"type"`
	Tagk    string `json:"tagk"`
	Filter  string `json:"filter"`
	GroupBy bool   `json:"groupBy"`
}

type TSDBquery

type TSDBquery struct {
	Aggregator  string            `json:"aggregator"`
	Downsample  string            `json:"downsample,omitempty"`
	Metric      string            `json:"metric"`
	Tags        map[string]string `json:"tags"`
	Rate        bool              `json:"rate,omitempty"`
	RateOptions TSDBrateOptions   `json:"rateOptions,omitempty"`
	Order       []string          `json:"order,omitempty"`
	FilterValue string            `json:"filterValue,omitempty"`
	Filters     []TSDBfilter      `json:"filters,omitempty"`
}

type TSDBqueryPayload

type TSDBqueryPayload struct {
	Start        int64       `json:"start,omitempty"`
	End          int64       `json:"end,omitempty"`
	Relative     string      `json:"relative,omitempty"`
	Queries      []TSDBquery `json:"queries"`
	ShowTSUIDs   bool        `json:"showTSUIDs"`
	MsResolution bool        `json:"msResolution"`
	EstimateSize bool        `json:"estimateSize"`
}

func (TSDBqueryPayload) Validate

func (query TSDBqueryPayload) Validate() gobol.Error

type TSDBrateOptions

type TSDBrateOptions struct {
	Counter    bool   `json:"counter"`
	CounterMax *int64 `json:"counterMax,omitempty"`
	ResetValue int64  `json:"resetValue,omitempty"`
}

type TelnetServerConfiguration

type TelnetServerConfiguration struct {
	Port                     int
	Host                     string
	OnErrorTimeout           string
	SendStatsTimeout         string
	MaxBufferSize            int64
	CacheDuration            string
	MaxIdleConnectionTimeout string
	ServerName               string
}

type TsQuery

type TsQuery struct {
	Downsample Downsample       `json:"downsample"`
	Start      int64            `json:"start"`
	End        int64            `json:"end"`
	Keys       []Key            `json:"keys"`
	Merge      map[string]Merge `json:"merge"`
	Text       []Key            `json:"text"`
	TextSearch string           `json:"textSearch"`
	// contains filtered or unexported fields
}

func (*TsQuery) GetRe

func (query *TsQuery) GetRe() *regexp.Regexp

func (*TsQuery) Validate

func (query *TsQuery) Validate() gobol.Error

Jump to

Keyboard shortcuts

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