1.2.0 • Published 4 years ago

apex-logs v1.2.0

Weekly downloads
1,187
License
-
Repository
-
Last release
4 years ago

JavaScript client for Apex Logs with support for Node.js, Deno, and the browser.

Installation

npm install --save apex-logs

Node

Here's an example of usage in Node or the browser using the apex-logs NPM package:

const { Client } = require('apex-logs')

const client = new Client({
  url: '<ENDPOINT>',
  authToken: '<TOKEN>'
})

async function run() {
  const { projects } = await client.getProjects()
  console.log(projects)
  
  const { alerts } = await client.getAlerts({ projectId: 'production' })
  console.log(alerts)
}

run()

Deno

Here's an example of usage in Deno:

import { Client } from 'https://deno.land/x/apex_logs/client.ts'

const client = new Client({
  url: '<ENDPOINT>',
  authToken: '<TOKEN>'
})

const { projects } = await client.getProjects()
console.log(projects)

const { alerts } = await client.getAlerts({ projectId: 'ping_production' })
console.log(alerts)

Resources

To learn more about Apex Logs visit the documentation, and to contribute to this client visit the github.com/apex/rpc project which is used to generate this client.

1.2.0

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago