ARTStats
Objective-C
@interface ARTStats : NSObject
Swift
class ARTStats : NSObject
Contains application statistics for a specified time interval and time period.
-
A
ARTStatsMessageTypes
object containing the aggregate count of all message stats.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsMessageTypes *_Nonnull all;
Swift
var all: ARTStatsMessageTypes { get }
-
A
ARTStatsMessageTraffic
object containing the aggregate count of inbound message stats.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsMessageTraffic *_Nonnull inbound;
Swift
var inbound: ARTStatsMessageTraffic { get }
-
A
ARTStatsMessageTraffic
object containing the aggregate count of outbound message stats.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsMessageTraffic *_Nonnull outbound;
Swift
var outbound: ARTStatsMessageTraffic { get }
-
A
ARTStatsMessageTypes
object containing the aggregate count of persisted message stats.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsMessageTypes *_Nonnull persisted;
Swift
var persisted: ARTStatsMessageTypes { get }
-
A
ARTStatsConnectionTypes
object containing a breakdown of connection related stats, such as min, mean and peak connections.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsConnectionTypes *_Nonnull connections;
Swift
var connections: ARTStatsConnectionTypes { get }
-
A
ARTStatsResourceCount
object containing a breakdown of channels.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsResourceCount *_Nonnull channels;
Swift
var channels: ARTStatsResourceCount { get }
-
A
ARTStatsRequestCount
object containing a breakdown of API Requests.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsRequestCount *_Nonnull apiRequests;
Swift
var apiRequests: ARTStatsRequestCount { get }
-
A
ARTStatsRequestCount
object containing a breakdown of Ably Token requests.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsRequestCount *_Nonnull tokenRequests;
Swift
var tokenRequests: ARTStatsRequestCount { get }
-
A
ARTStatsPushCount
object containing a breakdown of stats on push notifications.Declaration
Objective-C
@property (nonatomic, readonly) ARTStatsPushCount *_Nonnull pushes;
Swift
var pushes: ARTStatsPushCount { get }
-
The UTC time at which the time period covered begins. If
unit
is set tominute
this will be in the formatYYYY-mm-dd:HH:MM
, ifhour
it will beYYYY-mm-dd:HH
, ifday
it will beYYYY-mm-dd:00
and ifmonth
it will beYYYY-mm-01:00
.Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull intervalId;
Swift
var intervalId: String { get }
-
Represents the
intervalId
as aNSDate
object.Declaration
Objective-C
- (nonnull NSDate *)intervalTime;
Swift
func intervalTime() -> Date
-
DEPRECATED: this property is deprecated and will be removed in a future version. An alias for
unit
that must be from the unit property of the JSON.Declaration
Objective-C
- (ARTStatsGranularity)intervalGranularity;
Swift
func intervalGranularity() -> ARTStatsGranularity