Changes between Initial Version and Version 1 of table_example3


Ignore:
Timestamp:
09/17/2012 12:28:17 PM (14 years ago)
Author:
liaojiaohe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • table_example3

    v1 v1  
     1需要从各维度统计下载的情况 
     2{{{ 
     3Categorize downloads by the following hierarchies 
     4Date (UTC) 
     5        Year 
     6        Month 
     7        Day 
     8        Hour 
     9        Minute 
     10Product 
     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 ) 
     16Target OS ( from &os= parameter ) 
     17Request Info 
     18Download Type 
     19        manual | partial | complete ( determined by -partial vs -complete vs any other ) 
     20Request Type 
     21        download | check | other ( determined by GET vs HEAD vs any other ) 
     22Request Result 
     23        success | failure ( determined via 302 vs 404 or any other ) 
     24Locale ( localization of product ) 
     25Location 
     26        Continent 
     27        Country 
     28        Region 
     29        City 
     30Latitude 
     31Longitude 
     32User Agent Info ( Possible to be deferred for later version ) 
     33UA OS 
     34Platform 
     35OS Name 
     36OS Version 
     37UA Browser 
     38Classification 
     39        Desktop | Mobile | Spider | Bot | Other | Unknown 
     40Category 
     41        Gecko | MSIE | WebKit | Opera | Other | Unknown 
     42Name 
     43Version 
     44Engine A 
     45Engine B 
     46}}} 
     47 
     48 
     49即时表,每分钟一条记录,rowkey 是时间,各种条件的统计在column里面保存 
     50 
     51{{{ 
     52Table Name: dmo_metrics_realtime 
     53Rowkey format concatenation of 
     54        {utc_timestamp_to_minute} (i.e. yyyy-mm-ddTHH:MM ) 
     55Counter Columns 
     56dimension product column name format 
     57counter:product: 
     58        {download_type}: 
     59        {product_name}: 
     60        {product_major_version}: 
     61        {product_version}: 
     62        {product_os}: 
     63        {product_rebuild}: 
     64        {upgrade_from} 
     65dimension server_info column name format 
     66counter:server_info: 
     67        {datacenter_code}: 
     68        {server_name} 
     69dimension locale column name format 
     70counter:locale: 
     71        {locale_code} 
     72dimension location column name format 
     73counter:location: 
     74        {continent_code}: 
     75        {country_code}: 
     76        {region_code}: 
     77        {city_name}: 
     78        {latitude}: 
     79        {longitude} 
     80dimension user_agent_info *TBD* 
     81examples 
     82        rowkey: minutes_2010-05-24T03:33 
     83columns: 
     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{{{ 
     99Table Name: dmo_metrics_hourly 
     100Rowkey 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} 
     106Dimension Columns 
     107product 
     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} 
     115server_info 
     116        dimension:datacenter_code = {datacenter_code} 
     117        dimension:server_name = {server_name} 
     118locale 
     119        dimension:locale_code = {locale_code} 
     120location 
     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* 
     128Counter Column -- long integer updated via incrementColumn API 
     129        counter:requests 
     130}}}