Documentation ¶
Index ¶
- Constants
- Variables
- type CassandraSettings
- type ElasticsearchSettings
- type Error
- type EsPost
- type Headers
- type Keyspace
- type KeyspaceAttributes
- type KeyspaceEdit
- type KeyspaceProperties
- type KeyspaceResp
- type Meta
- type Metasource
- type Metric
- type MsgV2
- type Msource
- type MycenaePoints
- type MycenaePointsText
- type MycenaeSettings
- type PayPoints
- type Payload
- type PayloadSlice
- type Point
- type ResponseMeta
- type ResponseMetricTags
- type ResponseQuery
- type RestError
- type RestErrors
- type TKsource
- type TSDBfilter
- type TSDBquery
- type TSDBqueryPayload
- type TSDBrateOptions
- type TVsource
- type TableProperties
- type TagKey
- type TagMeta
- type TagValue
- type TagValuePostHits
- type TextPoint
- type Tool
- type TsError
- type TsErrorV2
- type TsMeta
- type TsTagV2
- type User
Constants ¶
View Source
const MetricForm string = "testMetric-"
View Source
const TagKeyForm string = "testTagKey-"
View Source
const TagValueForm string = "testTagValue-"
Variables ¶
View Source
var Sleep2 = 5 * time.Second
View Source
var Sleep3 = 3 * time.Second
Functions ¶
This section is empty.
Types ¶
type CassandraSettings ¶
type CassandraSettings struct { Keyspace string Consistency string Nodes []string Username string Password string Connections int Retry int DiscoverHosts bool DiscoverySleep int PageSize int Timeout string ProtoVersion int }
CassandraSettings abstracts the configuration of a cassandra cluster
type ElasticsearchSettings ¶
ElasticsearchSettings abstracts the configuration of an Elastic Search cluster
type EsPost ¶
type EsPost struct {
Hits TagValuePostHits `json:"hits"`
}
type Keyspace ¶
type Keyspace struct { ID string `json:"key,omitempty"` Name string `json:"name,omitempty"` Datacenter string `json:"datacenter,omitempty"` ReplicationFactor int `json:"replicationFactor,omitempty"` Contact string `json:"contact,omitempty"` TTL int `json:"ttl,omitempty"` TUUID bool `json:"tuuid,omitempty"` }
type KeyspaceAttributes ¶
type KeyspaceEdit ¶
func (KeyspaceEdit) Marshal ¶
func (ke KeyspaceEdit) Marshal() []byte
type KeyspaceProperties ¶
type KeyspaceResp ¶
type KeyspaceResp struct {
KSID string `json:"ksid"`
}
type Meta ¶
type Meta struct { ID string `json:"_id"` Source Metasource `json:"_source"` Found bool }
type Metasource ¶
type MycenaePoints ¶
type MycenaePoints struct {
Payload map[string]respPoints `json:"payload"`
}
type MycenaePointsText ¶
type MycenaePointsText struct {
Payload map[string]respPointsText `json:"payload"`
}
type MycenaeSettings ¶
type Payload ¶
type Payload struct { Value *float32 `json:"value,omitempty"` Text *string `json:"text,omitempty"` Metric string `json:"metric"` Tags map[string]string `json:"tags"` TagKey string `json:"-"` TagValue string `json:"-"` TagKey2 string `json:"-"` TagValue2 string `json:"-"` Timestamp *int64 `json:"timestamp,omitempty"` Random int `json:"-"` }
func (Payload) StringArray ¶
type PayloadSlice ¶
type PayloadSlice struct {
PS []Payload
}
func (PayloadSlice) Marshal ¶
func (p PayloadSlice) Marshal() []byte
type ResponseMeta ¶
type ResponseMetricTags ¶
type ResponseQuery ¶
type RestErrors ¶
type TSDBfilter ¶
type TSDBquery ¶
type TSDBquery struct { Aggregator string `json:"aggregator"` Downsample string `json:"downsample"` Metric string `json:"metric"` Tags map[string]string `json:"tags"` Rate bool `json:"rate"` RateOptions TSDBrateOptions `json:"rateOptions"` Order []string `json:"order"` FilterValue string `json:"filterValue"` Filters []TSDBfilter `json:"filters"` }
type TSDBqueryPayload ¶
type TSDBrateOptions ¶
type TableProperties ¶
type TableProperties struct { Bloom_filter_fp_chance float64 Caching map[string]string Comment string Compaction map[string]string Compression map[string]string Dclocal_read_repair_chance float64 Default_time_to_live int Gc_grace_seconds int Max_index_interval int Memtable_flush_period_in_ms int Min_index_interval int Read_repair_chance float64 Speculative_retry string }
type TagValuePostHits ¶
type TagValuePostHits struct {
Total int `json:"total"`
}
type Tool ¶
type Tool struct { Cassandra *cassTool ElasticSearch *esTool HTTP *httpTool UDP *udpTool Mycenae *mycenaeTool }
Tool is the main structure to be created from this package
func (*Tool) InitCass ¶
func (t *Tool) InitCass(cassSet CassandraSettings)
InitCass initializes the cassandra session
func (*Tool) InitEs ¶
func (t *Tool) InitEs(esSet ElasticsearchSettings)
InitEs initializes the Elastic Search connection
func (*Tool) InitMycenae ¶
func (t *Tool) InitMycenae(mSet MycenaeSettings)
InitMycenae initializes the Mycenae connection
Click to show internal directories.
Click to hide internal directories.