Advertisement
NLinker

Untitled

Oct 31st, 2013
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.    "jobId":0,
  3.    "jobType":{
  4.       "jtyId":0,
  5.       "jtmId":0,
  6.       "name":"The job type name",
  7.       "source":{
  8.          "srcId":0,
  9.          "name":"Vertica at Staging",
  10.          "extractor":"Vertica:DLX",
  11.          "driver":"com.vertica.jdbc.Driver",
  12.          "url":"jdbc:vertica://tfe-vertica-stg:5433/test",
  13.          "username":"test",
  14.          "password":"test"
  15.       },
  16.       "destination":{
  17.          "destId":0,
  18.          "name":"name",
  19.          "url":"None",
  20.          "username":"",
  21.          "password":"",
  22.          "accessKey":"",
  23.          "secretKey":"",
  24.          "fileNameTemplate":"tapad-${fireTime?date?string(\"yyyy-MM-dd\")}-${desc}.txt",
  25.          "fileType":"TSV"
  26.       },
  27.       "schedule":{
  28.          "schedule":"0 0/1 * 1/1 * ? *"
  29.       },
  30.       "data":{
  31.          "extractionSQL":"\nselect\n  device_id,\n  campaign_id,\n  date,\n  creative_id,\n  campaign_id,\n  device_id,\n  inventory_type,\n  platform_id,\n  sum(impressions) as impressions,\n  sum(clicks) as clicks\nfrom (\nselect\n  device_id as shared_id,\n  campaign_id,\n  date(created_at) as date,\n  creative_id,\n  campaign_id as segment_id,\n  case when action_id = 'impression' then 1 else 0 end as impressions,\n  case when action_id = 'click' then 1 else 0 end as clicks,\n  device_id,\n  1 as inventory_type,\n  platform_id\nfrom taps\nwhere campaign_id = ${campaign_id} and date(created_at) = date('${date}')\n) tt\ngroup by 1, 2, 3, 4, 5, 6, 7, 8 order by date desc;\n    ",
  32.          "additionalData":"{campaign_id=\"1537\",date=\"2013-10-10\"}",
  33.          "template":{
  34.             "header":"campaign_id\tdate\tdevice_id\tcreative_id\tinventory_type\tplatform_id\timpressions\tclicks",
  35.             "footer":"---footer---",
  36.             "row":"${campaign_id}\t${date}\t${device_id}\t${creative_id}\t${inventory_type}\t${platform_id}\t${impressions}\t${clicks}"
  37.          }
  38.       }
  39.    },
  40.    "fireTime":1383196164282,
  41.    "tempFiles":[
  42.  
  43.    ],
  44.    "status":0,
  45.    "retry":3
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement