Documentation ¶
Index ¶
- Constants
- func BuildQuery(isPush bool, vmId string, metric string, period string, aggregateType string, ...) (string, error)
- type Config
- type Storage
- func (s Storage) DeleteMetric(database string, metric, duration string) error
- func (s Storage) Initialize() error
- func (s Storage) ReadMetric(isPush bool, nsId string, mcisId string, vmId string, metric string, ...) (interface{}, error)
- func (s Storage) WriteMetric(dbName string, metrics map[string]interface{}) error
- func (s Storage) WriteOnDemandMetric(dbName string, metricName string, tagArr map[string]string, ...) error
Constants ¶
View Source
const ( DefaultDatabase = "cbmon" PullDatabase = "cbmonpull" CBRetentionPolicyName = "df_rp" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct { Config Config Client influxdbClient.Client }
func GetInstance ¶
func GetInstance() *Storage
func (Storage) DeleteMetric ¶
func (Storage) Initialize ¶
func (Storage) ReadMetric ¶
func (Storage) WriteMetric ¶
Click to show internal directories.
Click to hide internal directories.