Code Monkey home page Code Monkey logo

bulkv3time's Introduction

Description

Javascript to create a new bulk job using Cloud Elements Bulk V3 (Hulk), monitor its progress by pinging the status resource every 3 seconds, and upon completion report the total time from start to finish in seconds.

How to use

Install Dependencies

npm install

Set environment variables for BASE_URL, USER_SECRET, ORG_SECRET

  • E.g. ~/.bash_profile
export BASE_URL='https://api.cloud-elements.com'
export USER_SECRET='asdfghjklasdfghV7ITgw5h3ZbcuxC5HNDD5pXqPqSU='
export ORG_SECRET='asdfghjklasdfghMnmVYOkkCOXkMZZk5yMgw0raZk/4='

Adjust variables in index.js, lns 9โ€“11, to suit your use case

  • E.g. ./index.js
const ELEMENT_KEY = "sadfdsfsfhasldjfhInN0sDLiBBI=";
const q = "SELECT * from defects WHERE LastUpdateDate>'2020-02-22T06:00:00'";
const pageSize = 200;

Run

npm start

bulkv3time's People

Contributors

iangsalmon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.