appcd-telemetry

Library for collecting and sending data to the Appcelerator cloud.

Usage no npm install needed!

<script type="module">
  import appcdTelemetry from 'https://cdn.skypack.dev/appcd-telemetry';
</script>

README

appcd-telemetry

An Appc Daemon service for queuing and sending data to the Axway Appcelerator cloud for quality and usage analysis. This service itself does not collect the data. It simply stores the events on disk, sends the events to the cloud, then removes the events.

Visit https://github.com/appcelerator/appc-daemon for more information.

Report issues to GitHub issues. Official issue tracker in JIRA.

Installation

npm i appcd-telemetry

Usage

import Telemetry from 'appcd-telemetry';
import Config from 'appcd-config';
import Dispatcher from 'appcd-dispatcher';

const cfg = new Config({
    telemetry: {
        guid: 'app guid goes here'
    }
});

const telemetry = new Telemetry(cfg);
await telemetry.init();

Dispatcher.register('/telemetry', telemetry);

Dispatcher.call('/telemetry', {
    event: 'something important', // required
    foo: 'bar'
    // additional data
});

Legal

This project is open source under the Apache Public License v2 and is developed by Axway, Inc and the community. Please read the LICENSE file included in this distribution for more information.