Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gathering statistics of the department with the monitor output

TriLan
April 09, 2014

Gathering statistics of the department with the monitor output

TriLan

April 09, 2014
Tweet

More Decks by TriLan

Other Decks in Programming

Transcript

  1. Dashing: обновление данных Job планировщик задач ! SCHEDULER.every '30s', :first_in

    => 0 do |job| http = Net::HTTP.new('example.com') response = http.request(Net::HTTP::Get.new('/api/items')) items = JSON.parse(response.body) for item in items item.each do |key, value| send_event(key, value) end end end ! ! API обновление по HTTP ! curl -d '{"auth_token":"TOKEN", "data":2}' http://example.com/widgets/smirnova
  2. Dashing – фреймворк для разработки дэшбордов http://shopify.github.io/dashing/ ! Wiki фреймворка

    Dashing https://github.com/Shopify/dashing/wiki ! Примеры и наборы готовых виджетов https://github.com/Shopify/dashing/wiki/Additional-Widgets ! Batman.js – будет полезен для привязки и представления данных на уровне виджета http://batmanjs.org/ ! Gridster.js – для создания шаблонов виджета http://gridster.net/ Полезные ссылки