Commit Graph

8 Commits

Author SHA1 Message Date
Paul Belanger 7a84b4e064 Refactor Panel class
A follow up patch will be adding better code coverage on Panels.
Actually validating the values of our fields.  To do that, we first
need to split out the logic to be better consumed.

Change-Id: I9e4ca5b90075b860788eed131eefd03c446a010b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-16 11:06:04 -05:00
Paul Belanger df8d304b24 Additional fields for singlestat panel
We are adding support for the following fields:

  decimals
  postfix
  postfixFontSize
  prefix
  prefixFontSize
  valueFontSize

Change-Id: I45c8d953ae6847a078a7d2c916d1ddc189bcfb1a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-11-09 15:04:10 -05:00
Paul Belanger aa97ba048d Initial support for singlestat panel
Change-Id: If1d579a81bbf874553624f5fb9fab0573a716514
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-25 17:00:18 -04:00
Paul Belanger 9068020fb2 Initial support for graph panel
Change-Id: I16b9affd4402fe5d1637238a2e27f22fdd3986ff
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-25 16:56:52 -04:00
Paul Belanger f83e3e45d8 Fix scopping error with panel validation
This fixes an issue where we were lumping each panel into all rows,
regardless of the yaml syntax provided.

Also add unit test for code coverage.

Change-Id: Ibc1e086d777692889f9c1dc26741e247bf90a985
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-21 10:55:16 -04:00
Paul Belanger 353cf6b3e3 Rework Panel object
Add custom validtor to deal with panel schema.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-08 14:28:58 -04:00
Paul Belanger 3f7e195f4c Add dashlist panel schema
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-05 11:31:00 -04:00
Paul Belanger 71e14b74f2 Initial commit of schema
Here we are using voluptuous to help validate our yaml files.  Right now we we
just have support for text panels, but it is a start.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-05 10:52:01 -04:00