| | 1 | 需要从各维度统计下载的情况 |
| | 2 | {{{ |
| | 3 | Categorize downloads by the following hierarchies |
| | 4 | Date (UTC) |
| | 5 | Year |
| | 6 | Month |
| | 7 | Day |
| | 8 | Hour |
| | 9 | Minute |
| | 10 | Product |
| | 11 | Product Name |
| | 12 | Product Major Version |
| | 13 | Product Full Version |
| | 14 | Upgrade From Version ( determined by version string after -partial suffix ) |
| | 15 | Rebuild tag ( suffix string after primary version string ) |
| | 16 | Target OS ( from &os= parameter ) |
| | 17 | Request Info |
| | 18 | Download Type |
| | 19 | manual | partial | complete ( determined by -partial vs -complete vs any other ) |
| | 20 | Request Type |
| | 21 | download | check | other ( determined by GET vs HEAD vs any other ) |
| | 22 | Request Result |
| | 23 | success | failure ( determined via 302 vs 404 or any other ) |
| | 24 | Locale ( localization of product ) |
| | 25 | Location |
| | 26 | Continent |
| | 27 | Country |
| | 28 | Region |
| | 29 | City |
| | 30 | Latitude |
| | 31 | Longitude |
| | 32 | User Agent Info ( Possible to be deferred for later version ) |
| | 33 | UA OS |
| | 34 | Platform |
| | 35 | OS Name |
| | 36 | OS Version |
| | 37 | UA Browser |
| | 38 | Classification |
| | 39 | Desktop | Mobile | Spider | Bot | Other | Unknown |
| | 40 | Category |
| | 41 | Gecko | MSIE | WebKit | Opera | Other | Unknown |
| | 42 | Name |
| | 43 | Version |
| | 44 | Engine A |
| | 45 | Engine B |
| | 46 | }}} |
| | 47 | |
| | 48 | |
| | 49 | 即时表,每分钟一条记录,rowkey 是时间,各种条件的统计在column里面保存 |
| | 50 | |
| | 51 | {{{ |
| | 52 | Table Name: dmo_metrics_realtime |
| | 53 | Rowkey format concatenation of |
| | 54 | {utc_timestamp_to_minute} (i.e. yyyy-mm-ddTHH:MM ) |
| | 55 | Counter Columns |
| | 56 | dimension product column name format |
| | 57 | counter:product: |
| | 58 | {download_type}: |
| | 59 | {product_name}: |
| | 60 | {product_major_version}: |
| | 61 | {product_version}: |
| | 62 | {product_os}: |
| | 63 | {product_rebuild}: |
| | 64 | {upgrade_from} |
| | 65 | dimension server_info column name format |
| | 66 | counter:server_info: |
| | 67 | {datacenter_code}: |
| | 68 | {server_name} |
| | 69 | dimension locale column name format |
| | 70 | counter:locale: |
| | 71 | {locale_code} |
| | 72 | dimension location column name format |
| | 73 | counter:location: |
| | 74 | {continent_code}: |
| | 75 | {country_code}: |
| | 76 | {region_code}: |
| | 77 | {city_name}: |
| | 78 | {latitude}: |
| | 79 | {longitude} |
| | 80 | dimension user_agent_info *TBD* |
| | 81 | examples |
| | 82 | rowkey: minutes_2010-05-24T03:33 |
| | 83 | columns: |
| | 84 | counter:product:manual:firefox:3.6:3.6.1:win:: = 1356 |
| | 85 | counter:product:complete:firefox:3.6:3.6.7:win:: = 12456 |
| | 86 | counter:product:partial:firefox:3.6:3.6.7:win::3.6.6 = 16334 |
| | 87 | counter:product:manual:thunderbird:3.1:3.1b2:mac:: = 50 |
| | 88 | counter:locale:en-US = 50000 |
| | 89 | counter:locale:pt-PT = 400 |
| | 90 | counter:locale:ru = 430 |
| | 91 | counter:location:NA:US:NH:0.000:0.000 = 30 |
| | 92 | counter:location:NA:US:CA:30.555:-100.999 = 5000 |
| | 93 | }}} |
| | 94 | |
| | 95 | 每小时进行多维度的统计[[BR]] |
| | 96 | |
| | 97 | |
| | 98 | {{{ |
| | 99 | Table Name: dmo_metrics_hourly |
| | 100 | Rowkey format concatenation of |
| | 101 | {utc_timestamp_to_hour}_ |
| | 102 | {datacenter_code}:{server_name}_ |
| | 103 | {download_type}:{product_name}:{product_major_version}:{product_version}: {product_os}:{product_rebuild}:{upgrade_from}_ |
| | 104 | {locale_code}_ |
| | 105 | {continent_code}:{country_code}:{region_code}:{city_name}:{latitude}:{longitude} |
| | 106 | Dimension Columns |
| | 107 | product |
| | 108 | dimension:product_download_type = {download_type} |
| | 109 | dimension:product_name = {product_name} |
| | 110 | dimension:product_major_version = {product_major_version} |
| | 111 | dimension:product_version = {product_version} |
| | 112 | dimension:product_os = {product_os} |
| | 113 | dimension:product_rebuild = {product_rebuild} |
| | 114 | dimension:product_upgrade_from = {upgrade_from} |
| | 115 | server_info |
| | 116 | dimension:datacenter_code = {datacenter_code} |
| | 117 | dimension:server_name = {server_name} |
| | 118 | locale |
| | 119 | dimension:locale_code = {locale_code} |
| | 120 | location |
| | 121 | dimension:location_continent_code = {continent_code} |
| | 122 | dimension:location_country_code = {country_code} |
| | 123 | dimension:location_region_code = {region_code} |
| | 124 | dimension:location_city_name = {city_name} |
| | 125 | dimension:location_latitude = {latitude} |
| | 126 | dimension:location_longitude = {longitude} |
| | 127 | dimension user_agent_info *TBD* |
| | 128 | Counter Column -- long integer updated via incrementColumn API |
| | 129 | counter:requests |
| | 130 | }}} |