AppUsageEvent
AppUsageEvent
App usage events are a record of changes in the usage of apps and tasks. Examples include starting an application, scaling an application (from, say, one to three instances), and stopping an application. Usage events are typically used by billing and chargeback applications.
AllOf
This class requires all of the following:
JSON Example
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"state": {
"current": "string",
"previous": "string"
},
"app": {
"guid": "string",
"name": "string"
},
"process": {
"guid": "string",
"type": "string"
},
"space": {
"guid": "string",
"name": "string"
},
"organization": {
"guid": "string"
},
"buildpack": {
"guid": "string",
"name": "string"
},
"task": {
"guid": "string",
"name": "string"
},
"memory_in_mb_per_instance": {
"current": 0,
"previous": 0
},
"instance_count": {
"current": 0,
"previous": 0
}
}
object
state
Optional
state
object
app
Optional
app
object
process
Optional
process
object
space
Optional
space
object
organization
Optional
organization
object
buildpack
Optional
buildpack
object
task
Optional
task
object
memory_in_mb_per_instance
Optional
memory_in_mb_per_instance
object
instance_count
Optional
instance_count