diff --git a/src/crafana/models/alias_colors.cr b/src/crafana/models/alias_colors.cr deleted file mode 100644 index ede2441..0000000 --- a/src/crafana/models/alias_colors.cr +++ /dev/null @@ -1,14 +0,0 @@ -require "json" - -module Crafana - class AliasColors - include JSON::Serializable - - property green : String - property red : String - property yellow : String - - def initialize(@green, @red, @yellow) - end - end -end diff --git a/src/crafana/models/panels/graph.cr b/src/crafana/models/panels/graph.cr index a65a29b..ce7103d 100644 --- a/src/crafana/models/panels/graph.cr +++ b/src/crafana/models/panels/graph.cr @@ -11,7 +11,7 @@ module Crafana include TargetList @[JSON::Field(key: "aliasColors")] - property alias_colors : AliasColors? = nil + property alias_colors : Hash(String, String)? property bars : Bool = false