@@ -116,7 +116,7 @@ export class AggregatorRegistry extends Registry {
116
116
/**
117
117
* General metric type
118
118
*/
119
- export type Metric < T extends string > =
119
+ export type Metric < T extends string = string > =
120
120
| Counter < T >
121
121
| Gauge < T >
122
122
| Summary < T >
@@ -163,7 +163,7 @@ export interface CounterConfiguration<T extends string>
163
163
/**
164
164
* A counter is a cumulative metric that represents a single numerical value that only ever goes up
165
165
*/
166
- export class Counter < T extends string > {
166
+ export class Counter < T extends string = string > {
167
167
/**
168
168
* @param configuration Configuration when creating a Counter metric. Name and Help is required.
169
169
*/
@@ -232,7 +232,7 @@ export interface GaugeConfiguration<T extends string>
232
232
/**
233
233
* A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
234
234
*/
235
- export class Gauge < T extends string > {
235
+ export class Gauge < T extends string = string > {
236
236
/**
237
237
* @param configuration Configuration when creating a Gauge metric. Name and Help is mandatory
238
238
*/
@@ -368,7 +368,7 @@ export interface HistogramConfiguration<T extends string>
368
368
/**
369
369
* A histogram samples observations (usually things like request durations or response sizes) and counts them in configurable buckets
370
370
*/
371
- export class Histogram < T extends string > {
371
+ export class Histogram < T extends string = string > {
372
372
/**
373
373
* @param configuration Configuration when creating the Histogram. Name and Help is mandatory
374
374
*/
@@ -470,7 +470,7 @@ export interface SummaryConfiguration<T extends string>
470
470
/**
471
471
* A summary samples observations
472
472
*/
473
- export class Summary < T extends string > {
473
+ export class Summary < T extends string = string > {
474
474
/**
475
475
* @param configuration Configuration when creating Summary metric. Name and Help is mandatory
476
476
*/
@@ -571,23 +571,23 @@ export class Pushgateway {
571
571
*/
572
572
pushAdd (
573
573
params : Pushgateway . Parameters ,
574
- ) : Promise < { resp ?: unknown , body ?: unknown } > ;
574
+ ) : Promise < { resp ?: unknown ; body ?: unknown } > ;
575
575
576
576
/**
577
577
* Overwrite all metric (using PUT to Pushgateway)
578
578
* @param params Push parameters
579
579
*/
580
580
push (
581
581
params : Pushgateway . Parameters ,
582
- ) : Promise < { resp ?: unknown , body ?: unknown } > ;
582
+ ) : Promise < { resp ?: unknown ; body ?: unknown } > ;
583
583
584
584
/**
585
585
* Delete all metrics for jobName
586
586
* @param params Push parameters
587
587
*/
588
588
delete (
589
589
params : Pushgateway . Parameters ,
590
- ) : Promise < { resp ?: unknown , body ?: unknown } > ;
590
+ ) : Promise < { resp ?: unknown ; body ?: unknown } > ;
591
591
}
592
592
593
593
export namespace Pushgateway {
0 commit comments