Skip to content

jaSunny/ProcessLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

ProcessLogger

Travis Test Success

REST

creating new resources (process)

PUT http://ip:port/process

containing the following sample information as JSON

{
  "title":"Process1",
  "amount_of_jobs":20
}

and we receiving as response the ressource details

{
  "data":
      {
        "id":1,
        "title":"Process1",
        "created_at":"2015-04-23T16:46:34.264Z",
        "updated_at":"2015-04-23T16:46:34.264Z",
        "count_success":0,
        "count_fail":0,
        "terminate":false,
        "amount_of_jobs":20
      },
"links":
      {
        "terminate":"http://localhost/process/:id",
        "status":"http://localhost/process/:id/status",
        "job_success":"http://localhost/process/:id/job/success",
        "job_fail":"http://localhost/process/:id/job/fail"
      }
}

retrieving details for an existing resource (process)

GET http://ip:port/process/:id

containing the following sample information as JSON

{
  "id":1,
  "title":"Process1",
  "created_at":"2015-04-23T16:46:34.264Z",
  "updated_at":"2015-04-23T16:46:34.264Z",
  "count_success":0,
  "count_fail":0,
  "terminate":false,
  "amount_of_jobs":20
}

now we can report if a job (e.g. cronjob) was successfull or faulty

POST http://ip:port/process/:id/job/{success|fail}

After 6 hours, the reporting will be closing and throw an error if more than 50% of the jobs were not successful

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published