Skip to content
Snippets Groups Projects
Commit f099405b authored by Eduardo L. Buratti's avatar Eduardo L. Buratti
Browse files

Update API specs

parent e459a94f
No related branches found
No related tags found
No related merge requests found
......@@ -361,16 +361,14 @@ traits:
"message": "The specified metric 'met:electricCharge' could not be found."
}
/collect/{class}:
/collect/{sourceName}:
description: |
This API may be used to send data to the monitoring system. There are a
few available data types (like network bandwidth usage, machine
inventory, etc.) and each of them requires a specific format for the
data being sent.
This API may be used to send data to the monitoring system. All data
sent must be identified with a sourceName, i.e. "gesacNetworkBandwidth".
type: base
uriParameters:
class:
description: The class of data that is being collected.
sourceName:
description: An identifying name for the data that is being collected.
type: string
minLength: 4
maxLength: 64
......@@ -390,6 +388,6 @@ traits:
application/json:
example: |
{
"id": "invalid_attribute",
"message": "Invalid attribute \"memory\" for data type \"network_bandwidth\"."
"id": "type_error",
"message": "Invalid type for attribute \"memory\"."
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment