Skip to content

Marketplace Site Agent Connection Stats

Operations Summary

Method Endpoint Description
GET /api/marketplace-site-agent-connection-stats/ Get agent connection statistics

Get agent connection statistics

Returns connection status for all registered agents.

For each agent identity, provides: - Agent metadata (name, version, offering) - Services and their states - Event subscriptions with RabbitMQ connection status - RabbitMQ queues associated with the agent's offering

The RMQ connection data includes: - Whether the agent is currently connected - Connection source IP, timestamp, and state - Traffic statistics (bytes sent/received)

Requires support user permissions.

1
2
3
4
http \
  GET \
  https://api.example.com/api/marketplace-site-agent-connection-stats/ \
  Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.marketplace_site_agent_connection_stats import marketplace_site_agent_connection_stats_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_site_agent_connection_stats_retrieve.sync(client=client)

print(response)
  1. API Source: marketplace_site_agent_connection_stats_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { marketplaceSiteAgentConnectionStatsRetrieve } from 'waldur-js-client';

try {
  const response = await marketplaceSiteAgentConnectionStatsRetrieve({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}

200 -

Field Type Description
agents array of objects List of agents with connection status
agents.uuid string (uuid) Agent identity UUID
agents.name string Agent name
agents.offering_uuid string (uuid) Associated offering UUID
agents.offering_name string Associated offering name
agents.version string Agent version
agents.last_restarted string (date-time) When the agent was last restarted
agents.services array of objects Services running within this agent
agents.services.uuid string (uuid) Service UUID
agents.services.name string Service name
agents.services.state string Service state: ACTIVE, IDLE, or ERROR
agents.services.modified string (date-time) Last modification timestamp
agents.event_subscriptions array of objects Event subscriptions with connection status
agents.event_subscriptions.uuid string (uuid) Event subscription UUID
agents.event_subscriptions.created string (date-time) When the subscription was created
agents.event_subscriptions.observable_objects any List of observable object configurations
agents.event_subscriptions.rmq_connection any RabbitMQ connection status for this subscription
agents.queues array of objects RabbitMQ queues for this agent's offering
agents.queues.name string Queue name
agents.queues.messages integer Number of messages in queue
agents.queues.consumers integer Number of active consumers
agents.queues.object_type string Parsed object type from queue name
summary any Summary statistics

503 -