()
| 106 | } |
| 107 | |
| 108 | async get() { |
| 109 | if (this.collect) { |
| 110 | const v = this.collect(); |
| 111 | if (v instanceof Promise) await v; |
| 112 | } |
| 113 | return { |
| 114 | help: this.help, |
| 115 | name: this.name, |
| 116 | type: this.type, |
| 117 | values: Object.values(this.hashMap), |
| 118 | aggregator: this.aggregator, |
| 119 | }; |
| 120 | } |
| 121 | |
| 122 | _getValue(labels) { |
| 123 | const hash = hashObject(labels || {}, this.sortedLabelNames); |
no outgoing calls
no test coverage detected