Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mts is a mocked metrics Mts = []plugin.MetricType{ plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName1", "categoryA")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName1", "categoryB")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName1", "categoryC")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "categoryA")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "categoryB")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "categoryC")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "rName1", "category_prefix", "categoryA")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "rName1", "category_prefix", "categoryB")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "rName1", "category_prefix", "categoryC")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "rName2", "categoryA")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "rName2", "categoryB")}, plugin.MetricType{Namespace_: core.NewNamespace("intel", "dbi", "dbName2", "rName2", "categoryC")}, } // QueryOutput is a mocked query output QueryOutput = map[string][]interface{}{ "category": []interface{}{[]byte(`categoryA`), []byte(`categoryB`), "categoryC"}, "value": []interface{}{-10.5, 0.0, 10.5}, } // QueryOutputTimestamp is a mocked query output, where values are timestamps QueryOutputTimestamp = map[string][]interface{}{ "category": []interface{}{[]byte(`categoryA`), []byte(`categoryB`), "categoryC"}, "value": []interface{}{time.Now(), time.Now().Add(1 * time.Hour), time.Now().Add(2 * time.Hour)}, } // FileName is a path of mock setfile FileName = "temp_setfile.json" SetfileCorr = "mock/corrMockSetfile.json" SetfileIncorr = "mock/incorrMockSetfile.json" )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.