Skip to content

Commit

Permalink
Merge pull request #39 from amco/38_disable_default_metrics_tracking
Browse files Browse the repository at this point in the history
Removed automatic call to track default metrics.
  • Loading branch information
adamyanalunas committed Apr 1, 2014
2 parents b8bb45f + 6b596a6 commit e97fa96
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
23 changes: 13 additions & 10 deletions librato-iOS/Librato.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//

#import <Foundation/Foundation.h>
#import "LibratoClient.h"
#import "LibratoException.h"
#import "LibratoGaugeMetric.h"
#import "LibratoMetric.h"
#import "LibratoPersister.h"
#import "LibratoClient.h"


extern NSString *const LIBRATO_LOCALIZABLE;
Expand All @@ -35,25 +35,28 @@ typedef void (^LibratoNotificationContext)(NSNotification *notification);

- (instancetype)initWithEmail:(NSString *)email token:(NSString *)apiKey prefix:(NSString *)prefix;

- (LibratoClient *)client;
- (void)add:(id)metrics;
- (void)authenticateEmail:(NSString *)emailAddress APIKey:(NSString *)apiKey;
- (NSString *)APIEndpoint;
- (void)setAPIEndpoint:(NSString *)APIEndpoint;
- (void)authenticateEmail:(NSString *)emailAddress APIKey:(NSString *)apiKey;
- (LibratoClient *)client;
- (LibratoConnection *)connection;
- (NSString *)customUserAgent;
- (void)setCustomUserAgent:(NSString *)userAgent;
- (NSString *)persistence;
- (void)setPersistence:(NSString *)persistence;
- (id<LibratoPersister>)persister;
- (void)getMetric:(NSString *)name options:(NSDictionary *)options;
- (void)getMeasurements:(NSString *)named options:(NSDictionary *)options;
- (void)updateMetricsNamed:(NSString *)name options:(NSDictionary *)options;
- (void)updateMetrics:(NSDictionary *)metrics;
- (void)setSubmitSuccessBlock:(ClientSuccessBlock)successBlock;
- (void)setSubmitFailureBlock:(ClientFailureBlock)failureBlock;
- (NSArray *)groupNamed:(NSString *)name valued:(NSDictionary *)values;
- (void)groupNamed:(NSString *)name context:(LibratoMetricContext)context;
- (id)listenForNotification:(NSString *)named context:(LibratoNotificationContext)context;
- (NSString *)persistence;
- (void)setPersistence:(NSString *)persistence;
- (id<LibratoPersister>)persister;
- (void)setSubmitSuccessBlock:(ClientSuccessBlock)successBlock;
- (void)setSubmitFailureBlock:(ClientFailureBlock)failureBlock;
- (void)submit:(id)metrics;
- (void)trackDefaultMetrics;
- (void)updateMetricsNamed:(NSString *)name options:(NSDictionary *)options;
- (void)updateMetrics:(NSDictionary *)metrics;


@end
1 change: 0 additions & 1 deletion librato-iOS/Librato.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ - (instancetype)initWithEmail:(NSString *)email token:(NSString *)apiKey prefix:
self.prefix = prefix ?: @"";
self.queue = dispatch_queue_create("LibratoQueue", NULL);
[self authenticateEmail:email APIKey:apiKey];
[self trackDefaultMetrics];
}

return self;
Expand Down

0 comments on commit e97fa96

Please sign in to comment.