Improve folder listing. Update version.
[pithos-ios] / Analytics.h
1 //
2 //  Constants.h
3 //  OpenStack
4 //
5 //  Created by Matthew Newberry on 05/18/11.
6 //  The OpenStack project is provided under the Apache 2.0 license.
7 //
8
9 #import "GANTracker.h"
10 #import <UIKit/UIKit.h>
11
12
13 // Analytics Keys
14 #define CATEGORY_SERVER @"server"
15 #define CATEGORY_CONTAINERS @"containers"
16 #define CATEGORY_FILES @"files"
17 #define CATEGORY_LOAD_BALANCER @"load_balancer"
18
19 #define EVENT_REBOOTED @"reboot"
20 #define EVENT_CREATED @"created"
21 #define EVENT_UPDATED @"updated"
22 #define EVENT_PINGED @"pinged"
23 #define EVENT_RESIZED @"resized"
24 #define EVENT_REBUILT @"rebuilt"
25 #define EVENT_DELETED @"deleted"
26 #define EVENT_BACKUP_SCHEDULE_CHANGED @"backup_schedule_changed"
27 #define EVENT_RENAMED @"renamed"
28 #define EVENT_PASSWORD_CHANGED @"password_changed"
29
30 // load balancer specific events
31 #define EVENT_UPDATED_LB_CONNECTION_LOGGING @"updated_lb_connection_logging"
32 #define EVENT_ADDED_LB_NODES @"added_lb_nodes"
33 #define EVENT_UPDATED_LB_NODE @"updated_lb_node"
34 #define EVENT_DELETED_LB_NODE @"deleted_lb_node"
35 #define EVENT_UPDATED_LB_CONNECTION_THROTTLING @"updated_lb_connection_throttling"
36 #define EVENT_DISABLED_LB_CONNECTION_THROTTLING @"disabled_lb_connection_throttling"
37
38 void TrackEvent(NSString *category, NSString *action);
39 void TrackViewController(UIViewController *vc);
40 void DispatchAnalytics();