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 the worker module. | |
17 | |
18 #ifndef OMAHA_GOOPDATE_WORKER_METRICS_H__ | |
19 #define OMAHA_GOOPDATE_WORKER_METRICS_H__ | |
20 | |
21 #include "omaha/statsreport/metrics.h" | |
22 | |
23 namespace omaha { | |
24 | |
25 // How many times the download manager attempted to download a file. | |
26 DECLARE_METRIC_count(worker_download_total); | |
27 // How many times the download manager successfully downloaded a file. | |
28 DECLARE_METRIC_count(worker_download_succeeded); | |
29 | |
30 // How many times the package cache attempted to put the temporary file | |
31 // to the cache directory. | |
32 DECLARE_METRIC_count(worker_package_cache_put_total); | |
33 // How many times the package cache successfully copied the temporary file | |
34 // to the cache directory. | |
35 DECLARE_METRIC_count(worker_package_cache_put_succeeded); | |
36 | |
37 // How many times ExecuteAndWaitForInstaller was called. | |
38 DECLARE_METRIC_count(worker_install_execute_total); | |
39 // How many times ExecuteAndWaitForInstaller was called for an MSI. | |
40 DECLARE_METRIC_count(worker_install_execute_msi_total); | |
41 | |
42 // How many MSI install attempts encountered ERROR_INSTALL_ALREADY_RUNNING | |
43 // during an update. | |
44 DECLARE_METRIC_count(worker_install_msi_in_progress_detected_update); | |
45 // How many times successfully installed MSI in a retry after | |
46 // encountering ERROR_INSTALL_ALREADY_RUNNING during an update. | |
47 DECLARE_METRIC_count(worker_install_msi_in_progress_retry_succeeded_update); | |
48 // Number of retries attempted because of ERROR_INSTALL_ALREADY_RUNNING before | |
49 // succeeded during an update. | |
50 DECLARE_METRIC_integer( | |
51 worker_install_msi_in_progress_retry_succeeded_tries_update); | |
52 | |
53 // How many MSI install attempts encountered ERROR_INSTALL_ALREADY_RUNNING | |
54 // during an install. | |
55 DECLARE_METRIC_count(worker_install_msi_in_progress_detected_install); | |
56 // How many times successfully installed MSI in a retry after | |
57 // encountering ERROR_INSTALL_ALREADY_RUNNING during an install. | |
58 DECLARE_METRIC_count(worker_install_msi_in_progress_retry_succeeded_install); | |
59 // Number of retries attempted because of ERROR_INSTALL_ALREADY_RUNNING before | |
60 // succeeded during an install. | |
61 DECLARE_METRIC_integer( | |
62 worker_install_msi_in_progress_retry_succeeded_tries_install); | |
63 | |
64 // Version of the GoogleUpdate.exe shell in use. | |
65 DECLARE_METRIC_integer(worker_shell_version); | |
66 | |
67 // True if Windows is installing (is in audit mode). This should never be true. | |
68 DECLARE_METRIC_bool(worker_is_windows_installing); | |
69 | |
70 // True if UAC is disabled. | |
71 DECLARE_METRIC_bool(worker_is_uac_disabled); | |
72 | |
73 // True if ClickOnce is disabled for the Internet zone for the current user. | |
74 DECLARE_METRIC_bool(worker_is_clickonce_disabled); | |
75 | |
76 // True if a software firewall is detected. | |
77 DECLARE_METRIC_bool(worker_has_software_firewall); | |
78 | |
79 // How many times the computer was on batteries when doing an update check | |
80 // for apps. | |
81 DECLARE_METRIC_count(worker_silent_update_running_on_batteries); | |
82 | |
83 // How many times an update check was attempted. Does not include installs. | |
84 DECLARE_METRIC_count(worker_update_check_total); | |
85 // How many times an update check succeeded. Does not include installs. | |
86 DECLARE_METRIC_count(worker_update_check_succeeded); | |
87 | |
88 // Number of apps for which update checks skipped because EULA is not accepted. | |
89 DECLARE_METRIC_integer(worker_apps_not_updated_eula); | |
90 // Number of apps for which update checks included updatedisabled because of | |
91 // update Group Policy. | |
92 DECLARE_METRIC_integer(worker_apps_not_updated_group_policy); | |
93 // Number of apps for which update checks included updatedisabled because of | |
94 // install Group Policy. | |
95 DECLARE_METRIC_integer(worker_apps_not_installed_group_policy); | |
96 | |
97 // How many times Omaha did not update an app because an Omaha update was | |
98 // available at the same time. Only incremented if both an Omaha and app update | |
99 // are available in the same update check. Max one increment per update check. | |
100 DECLARE_METRIC_count(worker_skipped_app_update_for_self_update); | |
101 | |
102 // How many times a self update was available. | |
103 // Note: These are updated for all update checks whereas Omaha 2 only updated | |
104 // them for auto-updates. | |
105 DECLARE_METRIC_count(worker_self_updates_available); | |
106 // How many times a self update succeeded. | |
107 DECLARE_METRIC_count(worker_self_updates_succeeded); | |
108 | |
109 // How many updates have been available. Each app in an update check is counted. | |
110 // If a self-update was available, no apps are counted. | |
111 // Updates will be counted even if updates are disabled by Group Policy. This is | |
112 // a change from Omaha 2. | |
113 DECLARE_METRIC_count(worker_app_updates_available); | |
114 // How many app updates succeeded. | |
115 DECLARE_METRIC_count(worker_app_updates_succeeded); | |
116 | |
117 // Number of times Omaha has received a self-update response without | |
118 // successfully updating. | |
119 DECLARE_METRIC_integer(worker_self_update_responses); | |
120 // The time (ms) since the first time Omaha received a self-update response. | |
121 // Only reported if Omaha fails to update after first such response. | |
122 DECLARE_METRIC_integer(worker_self_update_response_time_since_first_ms); | |
123 | |
124 // The most significant/left half of the GUID for the app for which Omaha has | |
125 // received the most update responses without successfully updating. | |
126 DECLARE_METRIC_integer(worker_app_max_update_responses_app_high); | |
127 // Maximum number of times for any app that Omaha has received an update | |
128 // response without successfully updating. | |
129 DECLARE_METRIC_integer(worker_app_max_update_responses); | |
130 // The time (ms) since the first time Omaha received an update response for the | |
131 // app with the most update failures. | |
132 DECLARE_METRIC_integer(worker_app_max_update_responses_ms_since_first); | |
133 | |
134 // Time (ms) spent in SendPing() when DoSendPing() fails. | |
135 DECLARE_METRIC_timing(ping_failed_ms); | |
136 // Time (ms) spent in SendPing() when the ping succeeds. | |
137 DECLARE_METRIC_timing(ping_succeeded_ms); | |
138 | |
139 } // namespace omaha | |
140 | |
141 #endif // OMAHA_GOOPDATE_WORKER_METRICS_H__ | |
OLD | NEW |