UNPKG

@axiomhq/js

Version:

The official javascript bindings for the Axiom API

18 lines (15 loc) 708 B
'use strict'; var httpClient = require('./httpClient.cjs'); exports.monitors = void 0; (function (monitors) { class Service extends httpClient.default { localPath = '/v2/monitors'; list = () => this.client.get(this.localPath); get = (id) => this.client.get(this.localPath + '/' + id); create = (req) => this.client.post(this.localPath, { body: JSON.stringify(req) }); update = (id, req) => this.client.put(this.localPath + '/' + id, { body: JSON.stringify(req) }); delete = (id) => this.client.delete(this.localPath + '/' + id); } monitors.Service = Service; })(exports.monitors || (exports.monitors = {})); //# sourceMappingURL=monitors.cjs.map