kieker-monitoring / kieker

Kieker's main repository
Apache License 2.0
70 stars 41 forks source link

[KIEKER-1066] HTTP PUT/REST API for data bridge #2814

Closed rju closed 1 week ago

rju commented 1 week ago

JIRA Issue: KIEKER-1066 HTTP PUT/REST API for data bridge Original Reporter: Andre van Hoorn


As discussed [yesterday|meeting-20130306]

rju commented 1 week ago

author André van Hoorn -- Mon, 11 Nov 2013 15:36:09 +0100

Could be relevant for JavaScript instrumentation

rju commented 1 week ago

author nils-christian -- Mon, 27 Oct 2014 14:20:41 +0100

A connector is available since adbb2c983d7aeace7f4f793e27e6d9d978a7135b. The connector can be configured for a specific context, port, and URL. If, for instance, the connector is configured to use port 8080, context / and URL /kieker/rest/monitoringRecord, one can use the URL http://localhost:8080/kieker/rest/monitoringRecord to send new records. The connector expects records to be sent in JSON format as a POST request. The JSON object should contain three fields class, timestamp, and values. The values field should be an array containing the values to deserialize the record. Each field should contain only strings.

An exemplaric JSON string:

{
  "class": "kieker.common.record.jvm.UptimeRecord",
  "timestamp": "1412872210980520945",
  "values": ["1412872210980520945", "SE-host", "VM", "20000"]
}