structs

package
v0.0.0-...-1b5f0b1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

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    float32
}

type Key

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

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 {
	ReadConsistency            []string
	WriteConsisteny            []string
	BoltPath                   string
	WAL                        *wal.Settings
	MaxTimeseries              int
	MaxConcurrentTimeseries    int
	MaxKeyspaceWriteRequests   int64
	BurstKeyspaceWriteRequests int
	MaxConcurrentReads         int
	MaxConcurrentPoints        int
	MaxConcurrentUDPPoints     int64
	LogQueryTSthreshold        int
	MaxRateLimit               int64
	Burst                      int
	CompactionStrategy         string
	Meta                       *meta.Settings
	MetaValidationTimeout      string
	PersistInterval            int64
	HTTPserver                 SettingsHTTP
	UDPserver                  SettingsUDP
	UDPserverV2                SettingsUDP
	Depot                      depot.Settings
	Cluster                    *cluster.Config
	TTL                        struct {
		Max int
	}
	Logs struct {
		Environment string
		LogLevel    string
	}
	Stats     snitch.Settings
	StatsFile struct {
		Path string
	}
	ElasticSearch struct {
		Cluster rubber.Settings
		Index   string
	}
	Probe struct {
		Threshold float64
	}
}

type SettingsHTTP

type SettingsHTTP struct {
	Path string
	Port string
	Bind string
}

type SettingsUDP

type SettingsUDP struct {
	Port       string
	ReadBuffer int
}

type TSDBfilter

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

type TSDBquery

type TSDBquery struct {
	Aggregator   string            `json:"aggregator"`
	Metric       string            `json:"metric"`
	TSUIDs       []string          `json:"tsuids"`
	Downsample   *string           `json:"downsample"`
	Rate         bool              `json:"rate"`
	Filters      []TSDBfilter      `json:"filters"`
	Index        *int              `json:"index,omitempty"`
	Tags         map[string]string `json:"tags"`
	FilterTagKs  []string          `json:"filterTagKs"`
	RateOptions  *TSDBrateOptions  `json:"rateOptions"`
	Order        []string          `json:"order,omitempty"`
	FilterValue  string            `json:"filterValue,omitempty"`
	ExplicitTags bool              `json:"explicitTags"`
}

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"`
	ShowQuery    bool        `json:"showQuery"`
}

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 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