Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenpeeters committed May 25, 2018
1 parent 480a0ed commit 13c78f8
Showing 1 changed file with 73 additions and 1 deletion.
74 changes: 73 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,76 @@ The following capabilities are removed:

## HTTP API

## MQTT
This Agent exposes an HTTP api for starting and stopping of instances and the managemnt of buckets. This API is implemented by the [Agent API](https://github.com/ICTU/agent-api) library. This library can be reused by different Agent implementations as it only implements the API (contract) between the Dashboard and the 'Agent'.


## MQTT

### Subscriptions

This component doesn't subscribe to topics.

### Publications

This component publishes information on the following topics

- /network/info

Periodically publishes information about the network. Example:
```
{
totalIps: 200,
usedIps: 31
}
```

- /dhcp/info

Not implemented.

- /system/memory

Periodically publishes information about the available memory. Example:
```
{
free: 4000000000,
total: 48000000000
}
```

- /system/uptime

Periodically publishes information about the system uptime.

- /system/cpu

Periodically publishes information abou the system CPU usage. Example:
```
{
loadavg: {
'1min': 0.5,
'5min': 1,
'15min': 1.6,
},
cpus: {
count: 8,
model: "Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz"
}
}
```

- /agent/docker/log/startup

Publishes the startup logs of Docker Compose.

- /agent/docker/log/startup/error

Publishes any error that occured during the start of Docker Compose.

- /agent/docker/log/teardown

Publishes the teardown log of Docker Compose.

- /agent/docker/pulling

Publishes information about pulling Docker images.

0 comments on commit 13c78f8

Please sign in to comment.