public class Stats
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Stats.ConnectionTypes
Contains a breakdown of summary stats data for different (TLS vs non-TLS) connection types.
|
static class |
Stats.Granularity
Describes the interval unit over which statistics are gathered.
|
static class |
Stats.MessageCategory |
static class |
Stats.MessageCount
Contains the aggregate counts for messages and data transferred.
|
static class |
Stats.MessageTraffic
Contains a breakdown of summary stats data for traffic over various transport types.
|
static class |
Stats.MessageTypes
Contains a breakdown of summary stats data for different (channel vs presence) message types.
|
static class |
Stats.ProcessedCount |
static class |
Stats.ProcessedMessages |
static class |
Stats.PushedMessages
Details the stats on push notifications.
|
static class |
Stats.RequestCount
Contains the aggregate counts for requests made.
|
static class |
Stats.ResourceCount
Contains the aggregate data for usage of a resource in a specific scope.
|
| Modifier and Type | Field and Description |
|---|---|
Stats.MessageTypes |
all
A
Stats.MessageTypes object containing the aggregate count of all message stats. |
Stats.RequestCount |
apiRequests
A
Stats.RequestCount object containing a breakdown of API Requests. |
Stats.ResourceCount |
channels
A
Stats.ResourceCount object containing a breakdown of channels. |
Stats.ConnectionTypes |
connections
A
Stats.ConnectionTypes object containing a breakdown of connection related stats, such as min, mean and peak connections. |
int |
count |
Stats.MessageTraffic |
inbound
A
Stats.MessageTypes object containing the aggregate count of inbound message stats. |
java.lang.String |
inProgress |
java.lang.String |
intervalId
The UTC time at which the time period covered begins.
|
Stats.MessageTraffic |
outbound
A
Stats.MessageTypes object containing the aggregate count of outbound message stats. |
Stats.MessageTypes |
persisted
A
Stats.MessageTypes object containing the aggregate count of persisted message stats. |
Stats.ProcessedMessages |
processed |
Stats.PushedMessages |
push
A
Stats.PushedMessages object containing a breakdown of stats on push notifications. |
Stats.RequestCount |
tokenRequests
A
Stats.RequestCount object containing a breakdown of Ably Token requests. |
java.lang.String |
unit
The length of the interval the stats span.
|
| Constructor and Description |
|---|
Stats() |
| Modifier and Type | Method and Description |
|---|---|
static long |
fromIntervalId(java.lang.String intervalId) |
static java.lang.String |
toIntervalId(long timestamp,
Stats.Granularity granularity) |
public java.lang.String intervalId
Spec: TS12a
public java.lang.String unit
Stats.Granularity.
Spec: TS12c
public int count
public java.lang.String inProgress
public Stats.MessageTypes all
Stats.MessageTypes object containing the aggregate count of all message stats.
Spec: TS12e
public Stats.MessageTraffic inbound
Stats.MessageTypes object containing the aggregate count of inbound message stats.
Spec: TS12f
public Stats.MessageTraffic outbound
Stats.MessageTypes object containing the aggregate count of outbound message stats.
Spec: TS12g
public Stats.MessageTypes persisted
Stats.MessageTypes object containing the aggregate count of persisted message stats.
Spec: TS12h
public Stats.ConnectionTypes connections
Stats.ConnectionTypes object containing a breakdown of connection related stats, such as min, mean and peak connections.
Spec: TS12i
public Stats.ResourceCount channels
Stats.ResourceCount object containing a breakdown of channels.
Spec: TS12j
public Stats.RequestCount apiRequests
Stats.RequestCount object containing a breakdown of API Requests.
Spec: TS12k
public Stats.RequestCount tokenRequests
Stats.RequestCount object containing a breakdown of Ably Token requests.
Spec: TS12l
public Stats.ProcessedMessages processed
public Stats.PushedMessages push
Stats.PushedMessages object containing a breakdown of stats on push notifications.
Spec: TS12m
public static java.lang.String toIntervalId(long timestamp,
Stats.Granularity granularity)
public static long fromIntervalId(java.lang.String intervalId)