mirror of
https://github.com/usememos/memos.git
synced 2025-01-03 11:57:48 +03:00
15 lines
287 B
Go
15 lines
287 B
Go
package metric
|
|
|
|
// Metric is the API message for metric.
|
|
type Metric struct {
|
|
ID string
|
|
Name string
|
|
Labels map[string]string
|
|
}
|
|
|
|
// Collector is the interface definition for metric collector.
|
|
type Collector interface {
|
|
Identify(id string) error
|
|
Collect(metric *Metric) error
|
|
}
|