# app.stats

Retrieve statistics of apps.

This event is generated by a dynamic source. If you want to specify subscription params, subscribe to it using the name in the following format app.stats:{“param”: “value”}

Type: object

##

#### AppStatsEventSourceArgs

Type: object
No Additional Properties

##

#### Interval

Type: integer Default: 2

Interval in seconds between statistics updates.

Value must be greater or equal to `2`

##

#### AppStatsEventSourceEvent

Type: object
No Additional Properties

##

#### Fields

Type: array of object
No Additional Items

##### Each item of this array must be:

#### AppStatsEventSourceEventItem

Type: object
No Additional Properties

##

#### App Name

Type: string

Name of the application these statistics are for.

##

#### Cpu Usage

Type: integer

Percentage of cpu used by an app.

##

#### Memory

Type: integer

Current memory (in bytes) used by an app.

##

#### Networks

Type: array of object

Array of network interface statistics for the application.

No Additional Items

##### Each item of this array must be:

#### AppStatsEventSourceEventItemNetwork

Type: object
No Additional Properties

##

#### Interface Name

Type: string

Name of the interface used by the app.

##

#### Rx Bytes

Type: integer

Received bytes/s by an interface.

##

#### Tx Bytes

Type: integer

Transmitted bytes/s by an interface.

##

#### AppStatsEventSourceEventItemBlkio

Type: object

Block I/O statistics for the application.

No Additional Properties

##

#### Read

Type: integer

Blkio read bytes.

##

#### Write

Type: integer

Blkio write bytes.

Required roles: APPS_READ