-
Notifications
You must be signed in to change notification settings - Fork 27
REST Applications Sensors
andreisavu edited this page May 1, 2012
·
2 revisions
GET /v1/applications/{application}/entities/{entity}/sensors/{sensor}
HTTP/1.1 200 OK
Content-Type: application/json
<Sensor value as String>
GET /v1/applications/{application}/entities/{entity}/sensors
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"name": "redis.port",
"type": "java.lang.Integer",
"description": "Redis port number",
"links": {
"self": "/v1/applications/redis/entities/IODz2uR3/sensors/redis.port",
"application": "/v1/applications/redis",
"entity": "/v1/applications/redis/entities/IODz2uR3"
}
},
{
"name": "redis.uptime",
"type": "java.lang.Integer",
"description": "Redis uptime in seconds",
"links": {
"self": "/v1/applications/redis/entities/IODz2uR3/sensors/redis.uptime",
"application": "/v1/applications/redis",
"entity": "/v1/applications/redis/entities/IODz2uR3"
}
},
{
"name": "host.name",
"type": "java.lang.String",
"description": "Host name",
"links": {
"self": "/v1/applications/redis/entities/IODz2uR3/sensors/host.name",
"application": "/v1/applications/redis",
"entity": "/v1/applications/redis/entities/IODz2uR3"
}
},
{
"name": "host.address",
"type": "java.lang.String",
"description": "Host IP address",
"links": {
"self": "/v1/applications/redis/entities/IODz2uR3/sensors/host.address",
"application": "/v1/applications/redis",
"entity": "/v1/applications/redis/entities/IODz2uR3"
}
},
{
"name": "service.state",
"type": "brooklyn.entity.basic.Lifecycle",
"description": "Service lifecycle state",
"links": {
"self": "/v1/applications/redis/entities/IODz2uR3/sensors/service.state",
"application": "/v1/applications/redis",
"entity": "/v1/applications/redis/entities/IODz2uR3"
}
},
{
"name": "service.isUp",
"type": "java.lang.Boolean",
"description": "Service has been started successfully and is running",
"links": {
"self": "/v1/applications/redis/entities/IODz2uR3/sensors/service.isUp",
"application": "/v1/applications/redis",
"entity": "/v1/applications/redis/entities/IODz2uR3"
}
}
]