Giter Site home page Giter Site logo

warehouse.ai-status-models's Introduction

warehouse.ai-status-models

Version npm License npm Downloads Build Status Dependencies

Datastar models for the Warehouse.ai-status-api.

Install

npm install warehouse.ai-status-models --save

Usage

const datastar = require('datastar')({ /* connection config */ }).connect();
const models = require('warehouse.ai-status-models')(datastar);

// from datastar.define we get...
const Status = models.Status;

Status.findFirst({ ... }, function (err, data) { .... });

API

All schemas for the API documentation are written using datastar's notation.

Schemas

Status (status)

Generic status information

Column Type Summary
pkg (pk) text Name of a package
env (pk) text What enviroment is this build made for (dev, test, etc.)
version (pk) text What version of a package does this status represent
previous_version text The previous version number
total integer Total progress as percentage
error boolean Did the build error
create_date timestamp Time of creation
update_date timestamp Time of last update
complete boolean Did the build complete

StatusHead (status_head)

Generic status information but just for he latest version for a given pkg and env. Refer to the table above for details. The properties error and complete do not exist on this table.

StatusEvent (status_event)

A detailed event for the various stages of a build process containing message and optional details properties as well as locale and whether it is and error or not.

Column Type Summary
pkg (pk) text Name of a package
env (pk) text What enviroment is this build made for (dev, test, etc.)
version (pk) text What version of a package does this status represent
locale text Build locale
error boolean Is the status event an error
message text Status message
details text Message details
create_date timestamp Time of creation
event_id unqiue_timestamp Unique id sortable by time

StatusCounter (status_counter)

A simple distributed counter model that is incremented when a locale build has completed in order to compute progress based on total amount of locales.

Column Type Summary
pkg (pk) text Name of a package
env (pk) text What enviroment is this build made for (dev, test, etc.)
version (pk) text What version of a package does this status represent
count counter Incrementable counter

Test

Running tests assumes you have java installed and a local cassandra installed and running for your given operating system. Once that is complete, just run:

npm test

warehouse.ai-status-models's People

Contributors

jcrugzz avatar swaagie avatar

Watchers

 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.