Skip to content

The value field in the ThresholdsStep should be a Number? #12

@iguissouma

Description

@iguissouma

Hello, thanks for this great DSL!

I'm not a graphana expert, I started playing with the DSL, I think the value field in the ThresholdsStep should be a Number?

class ThresholdsStep(private val value: String = "null", private val color: Color = Color.GREEN) : Json<JSONObject> {

    override fun toJson(): JSONObject = jsonObject {
        "value" to value
        "color" to color.asHexString()
    }
}

thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions