1.0.0 • Published 7 years ago

dcos-metronome-client v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

DC/OS Metronome client

Implements some of the REST API http methods of the Methonome API

Build Status

Example usage:

const metronomeClient = require('dcos-metronome-client').getInstance('http://metronome.mesos:9000');

const jobPayload = {
    id: 'test-' + (new Date()).getTime(),
    run: {
        env: {
            TEST1: 'test',
            TEST: 'test'
        },
        artifacts: [{
            uri: 'file:///home/core/docker.tar.gz',
            extract: true,
            executable: false,
            cache: false
        }],
        cpus: 0.01,
        mem: 32,
        disk: 0,
        docker: {
            image: 'busybox'
        }
    }
};

yield metronomeClient.createJob(jobPayload);