-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for New Relic Mobile Monitoring
- Loading branch information
1 parent
280a472
commit 2701c56
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
// | |||
// AnalyticsKitNewRelicProvider.h | |||
// | |||
// | |||
// Created by Zac Shenker on 26/03/2013. | |||
// Copyright (c) 2013 Collusion. All rights reserved. | |||
// | |||
|
|||
#import "AnalyticsKit.h" | |||
|
|||
@interface AnalyticsKitNewRelicProvider : NSObject<AnalyticsKitProvider> | |||
|
|||
-(id<AnalyticsKitProvider>)initWithAPIKey:(NSString *)apiKey; | |||
|
|||
@end | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
// | |||
// AnalyticsKitNewRelicProvider.m | |||
// | |||
// | |||
// Created by Zac Shenker on 26/03/13. | |||
// Copyright (c) 2013 Collusion. All rights reserved. | |||
// | |||
|
|||
#import <NewRelicAgent/NewRelicAgent.h> | |||
#import "AnalyticsKitNewRelicProvider.h" | |||
|
|||
@implementation AnalyticsKitNewRelicProvider | |||
|
|||
-(id<AnalyticsKitProvider>)initWithAPIKey:(NSString *)apiKey { | |||
self = [super init]; | |||
if (self) { | |||
[NewRelicAgent startWithApplicationToken:apiKey]; | |||
} | |||
return self; | |||
} | |||
|
|||
-(void)applicationWillEnterForeground {} | |||
-(void)applicationDidEnterBackground {} | |||
-(void)applicationWillTerminate {} | |||
|
|||
-(void)uncaughtException:(NSException *)exception {} | |||
|
|||
-(void)logScreen:(NSString *)screenName {} | |||
|
|||
-(void)logEvent:(NSString *)event {} | |||
|
|||
-(void)logEvent:(NSString *)event withProperties:(NSDictionary *)dict {} | |||
|
|||
-(void)logEvent:(NSString *)event withProperty:(NSString *)key andValue:(NSString *)value {} | |||
|
|||
- (void)logEvent:(NSString *)eventName timed:(BOOL)timed{} | |||
|
|||
- (void)logEvent:(NSString *)eventName withProperties:(NSDictionary *)dict timed:(BOOL)timed{} | |||
|
|||
-(void)endTimedEvent:(NSString *)eventName withProperties:(NSDictionary *)dict{} | |||
|
|||
-(void)logError:(NSString *)name message:(NSString *)message exception:(NSException *)exception {} | |||
|
|||
-(void)logError:(NSString *)name message:(NSString *)message error:(NSError *)error {} | |||
|
|||
@end |