events¶
-
GET
/events
¶ Get the list of events
Response JSON Object: - errors (string) – Errors in the events
- mapreduce[] (object) – An array of events file contents
- mapreduce[].key (string) –
- mapreduce[].value (string) –
Example response:
{ "errors": "", "mapreduce": [ { "key": "", "value": "" } ] }
-
POST
/events
¶ Set the events content
Request JSON Object: - errors (string) – Errors in the events
- mapreduce[] (object) – An array of events file contents
- mapreduce[].key (string) –
- mapreduce[].value (string) –
Query Parameters: - force – Skip the service running check
Example query:
{ "errors": "", "mapreduce": [ { "key": "", "value": "" } ] }
-
GET
/events/results/{counter}
¶ Get a log of events results. This request can be used in a pull request to show a events log. The log is reset when there are no requests for 5 seconds.
Parameters: - counter – Position of the log
Response JSON Object: - counter (integer) – The position at the end of the log
- messages[] (object) – A list of events results messages
- messages[].error (string) – An error if any
- messages[].value (string) – A log value
Example response:
{ "counter": 0, "messages": [ { "error": "", "value": "" } ] }