UNPKG

@axiomhq/js

Version:

The official javascript bindings for the Axiom API

18 lines (15 loc) 673 B
import HTTPClient from './httpClient.js'; var monitors; (function (monitors) { class Service extends HTTPClient { 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; })(monitors || (monitors = {})); export { monitors }; //# sourceMappingURL=monitors.js.map