SFAnalyticsSQLiteStore.h [plain text]
#if __OBJC2__
#import <Security/SFSQLite.h>
#import <Security/SFAnalytics.h>
@interface SFAnalyticsSQLiteStore : SFSQLite
@property (readonly, strong) NSArray* hardFailures;
@property (readonly, strong) NSArray* softFailures;
@property (readonly, strong) NSArray* allEvents;
@property (readonly, strong) NSArray* samples;
@property (readwrite, strong) NSDate* uploadDate;
+ (instancetype)storeWithPath:(NSString*)path schema:(NSString*)schema;
- (BOOL)tryToOpenDatabase;
- (void)incrementSuccessCountForEventType:(NSString*)eventType;
- (void)incrementHardFailureCountForEventType:(NSString*)eventType;
- (void)incrementSoftFailureCountForEventType:(NSString*)eventType;
- (NSInteger)successCountForEventType:(NSString*)eventType;
- (NSInteger)hardFailureCountForEventType:(NSString*)eventType;
- (NSInteger)softFailureCountForEventType:(NSString*)eventType;
- (void)addEventDict:(NSDictionary*)eventDict toTable:(NSString*)table;
- (void)addEventDict:(NSDictionary*)eventDict toTable:(NSString*)table timestampBucket:(SFAnalyticsTimestampBucket)timestampBucket;
- (void)addSample:(NSNumber*)value forName:(NSString*)name;
- (void)removeAllSamplesForName:(NSString*)name;
- (void)clearAllData;
- (NSDictionary*)summaryCounts;
@end
#endif