Documentation ¶
Index ¶
- func SetConfigMongo(host string, port int, dbname string)
- func SetConfigPG(host string, port int, user string, password string, dbname string)
- func SetupMongo(host string, port int, dbname string)
- func SetupPG(host string, port int, user string, password string, dbname string)
- type Metric
- func MongoQuery(metric string, begin time.Time, end time.Time) ([]Metric, error)
- func MongoQuerySource(metric string, begin time.Time, end time.Time, source string) ([]Metric, error)
- func PgQuery(metric string, begin time.Time, end time.Time) ([]Metric, error)
- func PgQuerySource(metric string, begin time.Time, end time.Time, source string) ([]Metric, error)
- func Query(metric string, begin time.Time, end time.Time) ([]Metric, error)
- func QuerySource(metric string, begin time.Time, end time.Time, source string) ([]Metric, error)
- type MongoMetric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConfigMongo ¶
func SetConfigPG ¶
func SetupMongo ¶
Types ¶
type Metric ¶
type Metric struct { Date time.Time `json:"date"` Metric string `json:"metric"` Source string `json:"source"` Tags map[string]interface{} `json:"tags"` Value float64 `json:"value"` }
func MongoQuerySource ¶
func PgQuerySource ¶
type MongoMetric ¶
Click to show internal directories.
Click to hide internal directories.