Marketplace Site Agent Logs
Operations Summary
List Marketplace Site Agent Logs
Push site agent logs
Receive a batch of log entries from a site agent. Send a list where each entry includes agent_identity_uuid.
| echo '[{"agent_identity_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "timestamp": 123.45, "level": "DEBUG", "message": "string-value", "module": "string-value"}]' | http \
POST \
https://api.example.com/api/marketplace-site-agent-logs/ \
Authorization:"Token YOUR_API_TOKEN"
|
| from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.marketplace_site_agent_logs import marketplace_site_agent_logs_create # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_site_agent_logs_create.sync(client=client)
for item in response:
print(item)
|
- API Source:
marketplace_site_agent_logs_create
| import { marketplaceSiteAgentLogsCreate } from 'waldur-js-client';
try {
const response = await marketplaceSiteAgentLogsCreate({
auth: "Token YOUR_API_TOKEN",
body: [{"agent_identity_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "timestamp": 123.45, "level": "DEBUG", "message": "string-value", "module": "string-value"}]
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
agent_identity_uuid |
string (uuid) |
|
level |
string |
|
offering_uuid |
string (uuid) |
|
page |
integer |
A page number within the paginated result set. |
page_size |
integer |
Number of results to return per page. |
timestamp_from |
number (float) |
|
timestamp_to |
number (float) |
|
The request body is an array of objects, where each object has the following structure:
| Field |
Type |
Required |
agent_identity_uuid |
string (uuid) |
✓ |
timestamp |
number (double) |
✓ |
level |
string |
✓ |
message |
string |
✓ |
module |
string |
✓ |
201 -
The response body is an array of objects, where each object has the following structure:
| Field |
Type |
Description |
uuid |
string (uuid) |
|
offering |
string (uri) |
|
offering_uuid |
string (uuid) |
|
agent_identity_uuid |
string (uuid) |
|
timestamp |
number (double) |
Unix timestamp of the log entry |
level |
string |
Enum: DEBUG, INFO, WARNING, ERROR, CRITICAL |
message |
string |
|
module |
string |
|
created |
string (date-time) |
|