structs

package
v2.28.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 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
	MultipleConnsAllowedHosts         []string
	RemoveMultipleConnsRestriction    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
	UnlimitedQueryBytesKeysetWhiteList []string
	SilencePointValidationErrors       bool
	GarbageCollectorPercentage         int
	TSIDKeySize                        int
	DelayedMetricsThreshold            int64
	GlobalTelnetServerConfiguration    GlobalTelnetServerConfiguration
	HTTPserver                         SettingsHTTP
	UDPserver                          SettingsUDP
	TELNETserver                       TelnetServerConfiguration
	NetdataServer                      TelnetServerConfiguration
	MaxAllowedTTL                      int
	DefaultKeysets                     []string
	BlacklistedKeysets                 []string
	DefaultKeyspaceData                keyspace.Config
	DefaultKeyspaces                   map[string]int
	EnableAutoKeyspaceCreation         bool
	Cassandra                          cassandra.Settings
	Memcached                          memcached.Configuration
	Logs                               LoggerSettings
	Stats                              tlmanager.Configuration
	MetadataSettings                   metadata.Settings
	Validation                         ValidationConfiguration
}

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 TSDBTag

type TSDBTag struct {
	Name  string
	Value string
}

TSDBTag - a tag from the opentsdb point

type TSDBfilter

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

type TSDBpoint

type TSDBpoint struct {
	Metric    string
	Timestamp int64
	Value     *float64
	Text      string
	Tags      []TSDBTag
	TTL       int
	Keyset    string
}

TSDBpoint - an opentsdb point

type TSDBpoints

type TSDBpoints []*TSDBpoint

TSDBpoints - an array of point

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

type ValidationConfiguration

type ValidationConfiguration struct {
	MaxTextValueSize int
	MaxNumTags       int
	PropertyRegexp   string
	KeysetNameRegexp string
	DefaultTTL       int
	MaxPropertySize  int
}

ValidationConfiguration - validation configurations

Jump to

Keyboard shortcuts

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