aYOUne
← Monitoring API

Incidents

Singular: Incident — Base URL: https://monitoring-api.ayoune.app — Access: CRUD

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Endpoints

MethodPathDescriptionRight
GET /incidents List with filters/pagination monitoring.incidents.view
GET /incidents/:id Single record monitoring.incidents.view
POST /incidents Create new record monitoring.incidents.new
PUT /incidents Update record monitoring.incidents.edit
DELETE /incidents/:id Delete record monitoring.incidents.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.monitoring.incidents.find().limit(10).exec();

// Single record
const one = await ay.monitoring.incidents.findById('OBJECT_ID').exec();

// Create
const created = await ay.monitoring.incidents.create({ name: 'Foo' });

See also