55 lines
1.6 KiB
Go
55 lines
1.6 KiB
Go
/*
|
|
Copyright IBM Corp. All Rights Reserved.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
package testdata
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/hyperledger/fabric/common/metrics"
|
|
)
|
|
|
|
// These variables should be discovered as valid metric options.
|
|
|
|
var (
|
|
Counter = metrics.CounterOpts{
|
|
Namespace: "fixtures",
|
|
Name: "counter",
|
|
Help: "This is some help text that is more than a few words long. It really can be quite long. Really long.",
|
|
LabelNames: []string{"label_one", "label_two", "missing_help"},
|
|
LabelHelp: map[string]string{
|
|
"label_one": "this is a really cool label that is the first of many",
|
|
"label_two": "short and sweet",
|
|
},
|
|
StatsdFormat: "%{#fqname}.%{label_one}.%{label_two}",
|
|
}
|
|
|
|
Gauge = metrics.GaugeOpts{
|
|
Namespace: "fixtures",
|
|
Name: "gauge",
|
|
Help: "This is some help text that is more than a few words long. It really can be quite long. Really long. This is some help text that is more than a few words long. It really can be quite long. Really long.",
|
|
LabelNames: []string{"label_one", "label_two"},
|
|
StatsdFormat: "%{#fqname}.%{label_one}.%{label_two}",
|
|
}
|
|
|
|
Histogram = metrics.HistogramOpts{
|
|
Namespace: "fixtures",
|
|
Name: "histogram",
|
|
Help: "This is some help text",
|
|
LabelNames: []string{"label_one", "label_two"},
|
|
LabelHelp: map[string]string{
|
|
"label_one": "This is a very long help message for label_one, which could be really, really long, and it may never end...",
|
|
},
|
|
StatsdFormat: "%{#fqname}.%{label_one}.%{label_two}",
|
|
}
|
|
|
|
ignoredStruct = struct{}{}
|
|
|
|
ignoredInt = 0
|
|
|
|
ignoredTime = time.Now()
|
|
)
|