axiom-node 0.4.0
Install from the command line:
Learn more about npm packages
$ npm install @axiomhq/axiom-node@0.4.0
Install via package.json:
"@axiomhq/axiom-node": "0.4.0"
About this version
Axiom Node is a NodeJS package for accessing the Axiom API.
npm i @axiomhq/axiom-node
git clone https://github.com/axiomhq/axiom-node
cd axiom-node
npm install
The client is initialized with the url of the deployment and an access token when using Axiom Selfhost or an access token and the users organization id when using Axiom Cloud.
The access token can be a personal token retrieved from the users profile page or an ingest token retrieved from the settings of the Axiom deployment.
The personal access token grants access to all resources available to the user on his behalf.
The ingest token just allows ingestion into the datasets the token is configured for.
// Export `AXIOM_TOKEN` and `AXIOM_ORG_ID` for Axiom Cloud
// Export `AXIOM_URL` and `AXIOM_TOKEN` for Axiom Selfhost
import Client from '@axiomhq/axiom-node';
const client = new Client();
// ...
For more sample code snippets, head over to the examples directory.
You can find the Axiom and Axiom node documentation on the docs website.
The documentation is divided into several sections:
- Overview of Axiom
- Installing Axiom:
- Axiom API
- Axiom CLI
- Getting Support
- Data Shippers we support
The main aim of this repository is to continue developing and advancing Axiom Node, making it faster and simpler to use. Kindly check our contributing guide on how to propose bugfixes and improvements, and submitting pull requests to the project
© Axiom, Inc., 2021
Distributed under MIT License (The MIT License
).
See LICENSE for more information.