OLD | NEW |
| (Empty) |
1 // Copyright 2008-2009 Google Inc. | |
2 // | |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 // you may not use this file except in compliance with the License. | |
5 // You may obtain a copy of the License at | |
6 // | |
7 // http://www.apache.org/licenses/LICENSE-2.0 | |
8 // | |
9 // Unless required by applicable law or agreed to in writing, software | |
10 // distributed under the License is distributed on an "AS IS" BASIS, | |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 // See the License for the specific language governing permissions and | |
13 // limitations under the License. | |
14 // ======================================================================== | |
15 | |
16 // Declares the usage metrics used by goopdate module. | |
17 | |
18 #ifndef OMAHA_GOOPDATE_GOOPDATE_METRICS_H_ | |
19 #define OMAHA_GOOPDATE_GOOPDATE_METRICS_H_ | |
20 | |
21 #include "omaha/statsreport/metrics.h" | |
22 | |
23 namespace omaha { | |
24 | |
25 DECLARE_METRIC_integer(windows_major_version); | |
26 DECLARE_METRIC_integer(windows_minor_version); | |
27 DECLARE_METRIC_integer(windows_sp_major_version); | |
28 DECLARE_METRIC_integer(windows_sp_minor_version); | |
29 | |
30 // Crash metrics. | |
31 // | |
32 // A crash can be handled in one of the following ways: uploaded, rejected by | |
33 // the server, rejected by the client due to metering, or failed for other | |
34 // reasons, such as the sender could not communicate with the crash server. | |
35 | |
36 // In process crash reporting metrics. | |
37 DECLARE_METRIC_count(crashes_total); | |
38 DECLARE_METRIC_count(crashes_uploaded); | |
39 DECLARE_METRIC_count(crashes_throttled); | |
40 DECLARE_METRIC_count(crashes_rejected); | |
41 DECLARE_METRIC_count(crashes_failed); | |
42 | |
43 // Out of process crash reporting metrics. | |
44 // The number of crashes requested by the applications should be close to the | |
45 // total number of crashes handled by Omaha. | |
46 DECLARE_METRIC_count(oop_crashes_requested); | |
47 DECLARE_METRIC_count(oop_crashes_total); | |
48 DECLARE_METRIC_count(oop_crashes_uploaded); | |
49 DECLARE_METRIC_count(oop_crashes_throttled); | |
50 DECLARE_METRIC_count(oop_crashes_rejected); | |
51 DECLARE_METRIC_count(oop_crashes_failed); | |
52 DECLARE_METRIC_count(oop_crashes_crash_filename_empty); | |
53 DECLARE_METRIC_count(oop_crashes_createcustominfofile_failed); | |
54 DECLARE_METRIC_count(oop_crashes_startsenderwithcommandline_failed); | |
55 DECLARE_METRIC_count(oop_crash_start_sender); | |
56 | |
57 // Increments every time GoopdateImpl::HandleReportCrash is called. | |
58 DECLARE_METRIC_count(goopdate_handle_report_crash); | |
59 | |
60 // How many times StartCrashServer() was called. | |
61 DECLARE_METRIC_count(crash_start_server_total); | |
62 // How many times StartCrashServer() succeeded. | |
63 DECLARE_METRIC_count(crash_start_server_succeeded); | |
64 | |
65 // How many times the Code Red check process was launched. | |
66 DECLARE_METRIC_count(cr_process_total); | |
67 // How many times the Code Red download callback was called. | |
68 DECLARE_METRIC_count(cr_callback_total); | |
69 // How many times the Code Red download callback received 200 - OK. | |
70 DECLARE_METRIC_count(cr_callback_status_200); | |
71 // How many times the Code Red download callback received 204 - no content. | |
72 DECLARE_METRIC_count(cr_callback_status_204); | |
73 // How many times the Code Red download callback received some other status. | |
74 // Only incremented if DownloadFile() succeeded. | |
75 DECLARE_METRIC_count(cr_callback_status_other); | |
76 | |
77 // How many times GoopdateImpl::LoadResourceDll() failed to load the resource | |
78 // DLL. Does not include modes that do not need the DLL. | |
79 DECLARE_METRIC_count(load_resource_dll_failed); | |
80 | |
81 DECLARE_METRIC_count(goopdate_constructor); | |
82 DECLARE_METRIC_count(goopdate_destructor); | |
83 DECLARE_METRIC_count(goopdate_main); | |
84 | |
85 } // namespace omaha | |
86 | |
87 #endif // OMAHA_GOOPDATE_GOOPDATE_METRICS_H_ | |
OLD | NEW |