Documentation ¶
Index ¶
- Constants
- func FilterAtLeastOne(vv []interface{}) bool
- func GetFirstInfluxInt(builder *influxql.Builder) (i int64, err error)
- func GetInfluxTrendFromResponse(builder *influxql.Builder, padding int) (trend float64, err error)
- func GetInfluxTrendFromSeries(series models.Row, padding int) (trend float64)
- func GetWriter() api.WriteAPI
- func InfluxQuery(builder *influxql.Builder) (resp *influx.Response, err error)
- func InfluxResponseToImageChartData(series models.Row) (x []time.Time, y []float64)
- func InfluxWrite(retention InfluxRetentionPolicy, point influx.Point) (resp *influx.Response, err error)
- func InfluxWriteMany(retention InfluxRetentionPolicy, batch influx.BatchPoints) (resp *influx.Response, err error)
- func Read(builder *influxql.Builder) error
- func Write(measurement InfluxMeasurement, tags map[string]string, ...)
- type HCFilter
- type HighChartsJSON
- type HighChartsJSONMulti
- type InfluxMeasurement
- type InfluxRetentionPolicy
Constants ¶
View Source
const ( InfluxGameDB = "GameDB" InfluxTelegrafDB = "Telegraf" InfluxRetentionPolicyAllTime InfluxRetentionPolicy = "alltime" InfluxRetentionPolicy14Day InfluxRetentionPolicy = "14d" InfluxMeasurementAPICalls InfluxMeasurement = "api_calls" InfluxMeasurementApps InfluxMeasurement = "apps" InfluxMeasurementChanges InfluxMeasurement = "changes" InfluxMeasurementChatBot InfluxMeasurement = "chat_bot" InfluxMeasurementGameDBStats InfluxMeasurement = "gamedb-stats" InfluxMeasurementGroups InfluxMeasurement = "groups" InfluxMeasurementPlayers InfluxMeasurement = "players" InfluxMeasurementPlayerUpdates InfluxMeasurement = "player_updates" InfluxMeasurementRabbitQueue InfluxMeasurement = "rabbitmq_queue" InfluxMeasurementSignups InfluxMeasurement = "signups" InfluxMeasurementStats InfluxMeasurement = "stats" )
Variables ¶
This section is empty.
Functions ¶
func FilterAtLeastOne ¶
func FilterAtLeastOne(vv []interface{}) bool
func GetInfluxTrendFromSeries ¶
Padding is for charts without a start time
func InfluxWrite ¶
func InfluxWriteMany ¶
func InfluxWriteMany(retention InfluxRetentionPolicy, batch influx.BatchPoints) (resp *influx.Response, err error)
Types ¶
type HighChartsJSON ¶
type HighChartsJSON map[string][][]interface{}
func InfluxResponseToHighCharts ¶
func InfluxResponseToHighCharts(series models.Row, trimLeft bool, filters ...HCFilter) HighChartsJSON
type HighChartsJSONMulti ¶
type HighChartsJSONMulti struct { Key string `json:"key"` Value HighChartsJSON `json:"value"` }
type InfluxMeasurement ¶
type InfluxMeasurement string
func (InfluxMeasurement) String ¶
func (im InfluxMeasurement) String() string
type InfluxRetentionPolicy ¶
type InfluxRetentionPolicy string
func (InfluxRetentionPolicy) String ¶
func (irp InfluxRetentionPolicy) String() string
Click to show internal directories.
Click to hide internal directories.