mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Export all ccMetric functions
This commit is contained in:
parent
d8ab3b0eb0
commit
6dd95d6fed
@ -31,16 +31,22 @@ type CCMetric interface {
|
|||||||
Meta() map[string]string // Map of meta data tags
|
Meta() map[string]string // Map of meta data tags
|
||||||
MetaList() []*lp.Tag // Ordered list of meta data
|
MetaList() []*lp.Tag // Ordered list of meta data
|
||||||
AddMeta(key, value string) // Add a meta data tag
|
AddMeta(key, value string) // Add a meta data tag
|
||||||
|
HasMeta(key string) bool // Check a meta data tag
|
||||||
GetMeta(key string) (string, bool) // Get a meta data tab addressed by its key
|
GetMeta(key string) (string, bool) // Get a meta data tab addressed by its key
|
||||||
|
RemoveMeta(key string) // Remove a meta data tag by its key
|
||||||
|
|
||||||
Tags() map[string]string // Map of tags
|
Tags() map[string]string // Map of tags
|
||||||
|
TagList() []*lp.Tag // Ordered list of tags
|
||||||
AddTag(key, value string) // Add a tag
|
AddTag(key, value string) // Add a tag
|
||||||
GetTag(key string) (string, bool) // Get a tag by its key
|
GetTag(key string) (string, bool) // Get a tag by its key
|
||||||
|
HasTag(key string) bool // Check a tag
|
||||||
RemoveTag(key string) // Remove a tag by its key
|
RemoveTag(key string) // Remove a tag by its key
|
||||||
|
|
||||||
GetField(key string) (interface{}, bool) // Get a field addressed by its key
|
GetField(key string) (interface{}, bool) // Get a field addressed by its key
|
||||||
HasField(key string) bool // Check if a field key is present
|
HasField(key string) bool // Check if a field key is present
|
||||||
RemoveField(key string) // Remove a field addressed by its key
|
RemoveField(key string) // Remove a field addressed by its key
|
||||||
|
Fields() map[string]interface{} // Map of fields
|
||||||
|
FieldList() []*lp.Field // Ordered list of fields
|
||||||
}
|
}
|
||||||
|
|
||||||
// Meta returns the meta data tags as key-value mapping
|
// Meta returns the meta data tags as key-value mapping
|
||||||
|
Loading…
Reference in New Issue
Block a user