Package io.ably.lib.types
Class Stats
- java.lang.Object
-
- io.ably.lib.types.Stats
-
public class Stats extends java.lang.ObjectContains application statistics for a specified time interval and time period.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStats.ConnectionTypesContains a breakdown of summary stats data for different (TLS vs non-TLS) connection types.static classStats.GranularityDescribes the interval unit over which statistics are gathered.static classStats.MessageCategorystatic classStats.MessageCountContains the aggregate counts for messages and data transferred.static classStats.MessageTrafficContains a breakdown of summary stats data for traffic over various transport types.static classStats.MessageTypesContains a breakdown of summary stats data for different (channel vs presence) message types.static classStats.ProcessedCountstatic classStats.ProcessedMessagesstatic classStats.PushedMessagesDetails the stats on push notifications.static classStats.RequestCountContains the aggregate counts for requests made.static classStats.ResourceCountContains the aggregate data for usage of a resource in a specific scope.
-
Field Summary
Fields Modifier and Type Field Description Stats.MessageTypesallAStats.MessageTypesobject containing the aggregate count of all message stats.Stats.RequestCountapiRequestsAStats.RequestCountobject containing a breakdown of API Requests.Stats.ResourceCountchannelsAStats.ResourceCountobject containing a breakdown of channels.Stats.ConnectionTypesconnectionsAStats.ConnectionTypesobject containing a breakdown of connection related stats, such as min, mean and peak connections.intcountStats.MessageTrafficinboundAStats.MessageTypesobject containing the aggregate count of inbound message stats.java.lang.StringinProgressjava.lang.StringintervalIdThe UTC time at which the time period covered begins.Stats.MessageTrafficoutboundAStats.MessageTypesobject containing the aggregate count of outbound message stats.Stats.MessageTypespersistedAStats.MessageTypesobject containing the aggregate count of persisted message stats.Stats.ProcessedMessagesprocessedStats.PushedMessagespushAStats.PushedMessagesobject containing a breakdown of stats on push notifications.Stats.RequestCounttokenRequestsAStats.RequestCountobject containing a breakdown of Ably Token requests.java.lang.StringunitThe length of the interval the stats span.
-
Constructor Summary
Constructors Constructor Description Stats()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longfromIntervalId(java.lang.String intervalId)static java.lang.StringtoIntervalId(long timestamp, Stats.Granularity granularity)
-
-
-
Field Detail
-
intervalId
public java.lang.String intervalId
The UTC time at which the time period covered begins. If unit is set to minute this will be in the format YYYY-mm-dd:HH:MM, if hour it will be YYYY-mm-dd:HH, if day it will be YYYY-mm-dd:00 and if month it will be YYYY-mm-01:00.Spec: TS12a
-
unit
public java.lang.String unit
The length of the interval the stats span. Values will be aStats.Granularity.Spec: TS12c
-
count
public int count
-
inProgress
public java.lang.String inProgress
-
all
public Stats.MessageTypes all
AStats.MessageTypesobject containing the aggregate count of all message stats.Spec: TS12e
-
inbound
public Stats.MessageTraffic inbound
AStats.MessageTypesobject containing the aggregate count of inbound message stats.Spec: TS12f
-
outbound
public Stats.MessageTraffic outbound
AStats.MessageTypesobject containing the aggregate count of outbound message stats.Spec: TS12g
-
persisted
public Stats.MessageTypes persisted
AStats.MessageTypesobject containing the aggregate count of persisted message stats.Spec: TS12h
-
connections
public Stats.ConnectionTypes connections
AStats.ConnectionTypesobject containing a breakdown of connection related stats, such as min, mean and peak connections.Spec: TS12i
-
channels
public Stats.ResourceCount channels
AStats.ResourceCountobject containing a breakdown of channels.Spec: TS12j
-
apiRequests
public Stats.RequestCount apiRequests
AStats.RequestCountobject containing a breakdown of API Requests.Spec: TS12k
-
tokenRequests
public Stats.RequestCount tokenRequests
AStats.RequestCountobject containing a breakdown of Ably Token requests.Spec: TS12l
-
processed
public Stats.ProcessedMessages processed
-
push
public Stats.PushedMessages push
AStats.PushedMessagesobject containing a breakdown of stats on push notifications.Spec: TS12m
-
-
Method Detail
-
toIntervalId
public static java.lang.String toIntervalId(long timestamp, Stats.Granularity granularity)
-
fromIntervalId
public static long fromIntervalId(java.lang.String intervalId)
-
-