File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -491,21 +491,21 @@ const client = require('prom-client');
491
491
let gateway = new client.Pushgateway (' http://127.0.0.1:9091' );
492
492
493
493
gateway .pushAdd ({ jobName: ' test' })
494
- .then ({resp, body} => {
494
+ .then (( {resp, body}) => {
495
495
/* ... */
496
496
})
497
497
.catch (err => {
498
498
/* ... */
499
499
})); // Add metric and overwrite old ones
500
500
gateway .push ({ jobName: ' test' })
501
- .then ({resp, body} => {
501
+ .then (( {resp, body}) => {
502
502
/* ... */
503
503
})
504
504
.catch (err => {
505
505
/* ... */
506
506
})); // Overwrite all metrics (use PUT)
507
507
gateway .delete ({ jobName: ' test' })
508
- .then ({resp, body} => {
508
+ .then (( {resp, body}) => {
509
509
/* ... */
510
510
})
511
511
.catch (err => {
@@ -514,7 +514,7 @@ gateway.delete({ jobName: 'test' })
514
514
515
515
// All gateway requests can have groupings on it
516
516
gateway .pushAdd ({ jobName: ' test' , groupings: { key: ' value' } })
517
- .then ({resp, body} => {
517
+ .then (( {resp, body}) => {
518
518
/* ... */
519
519
})
520
520
.catch (err => {
You can’t perform that action at this time.
0 commit comments