mockdata

package
v0.0.0-...-bcbbf8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL