File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ import (
16
16
"github.com/blang/semver"
17
17
)
18
18
19
- type VersionQueries struct {
19
+ type VersionQ struct {
20
20
Version string `yaml:"version"`
21
21
ver semver.Version
22
22
Query string `yaml:"query"`
23
23
}
24
24
25
- func (v * VersionQueries ) parseVerTolerant () error {
25
+ func (v * VersionQ ) parseVerTolerant () error {
26
26
bcVer , err := semver .ParseTolerant (v .Version )
27
27
if err != nil {
28
28
return err
Original file line number Diff line number Diff line change @@ -119,12 +119,12 @@ type Mapping map[string]MappingOptions
119
119
120
120
// nolint: golint
121
121
type UserQuery struct {
122
- Query string `yaml:"query"`
123
- Metrics []Mapping `yaml:"metrics"`
124
- VersionQueries []VersionQueries `yaml:"versionQueries"`
125
- Master bool `yaml:"master"` // Querying only for master database
126
- CacheSeconds uint64 `yaml:"cache_seconds"` // Number of seconds to cache the namespace result metrics for.
127
- RunOnServer string `yaml:"runonserver"` // Querying to run on which server version
122
+ Query string `yaml:"query"`
123
+ Metrics []Mapping `yaml:"metrics"`
124
+ VersionQueries []VersionQ `yaml:"versionQueries"`
125
+ Master bool `yaml:"master"` // Querying only for master database
126
+ CacheSeconds uint64 `yaml:"cache_seconds"` // Number of seconds to cache the namespace result metrics for.
127
+ RunOnServer string `yaml:"runonserver"` // Querying to run on which server version
128
128
}
129
129
130
130
// nolint: golint
You can’t perform that action at this time.
0 commit comments