Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support template #5

Merged
merged 6 commits into from
Aug 22, 2016

Conversation

winebarrel
Copy link
Contributor

Add the support of the following templates:

template "template 1" do
  read_only false
  board_bgtype "board_graph"
  original_title "my board"
  height context.height
  width "100%"
  template_variables []
  widgets []
  shared false
  title_edited true
end

template "template 2" do
  title_size 16
  title_align "left"
  title_text ""
  title true
end

screenboard "board1" do
  include_template "template 1", height: 80
end

screenboard "board2" do
  read_only false
  board_bgtype "board_graph"
  height 80
  width "100%"
  templated false
  widgets do |*|
    include_template "template 2"
    height 13
    tile_def do
      viz "timeseries"
      requests do |*|
        q "aws.dynamodb.provisioned_read_capacity_units{*}"
      end
      events []
    end
    width 47
    timeframe "1h"
    y 13
    x 10
    legend_size "0"
    type "timeseries"
    legend false
  end
end

Please marge if no problem 🙇

@marcy-terui
Copy link
Contributor

Very useful ✨ Thanks a lot!!

@marcy-terui marcy-terui merged commit 8b608be into serverworks-annex:master Aug 22, 2016
@winebarrel winebarrel deleted the support_template branch August 22, 2016 08:46
@marcy-terui
Copy link
Contributor

This is released in 0.3.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants