INNER CODE UNIT · Python

hidden

scality/Zenko · monitoring/kafka-connect/kafka-connect.dashboard.py:331

             hidden: bool = False, thresholds: dict = [], mappings: dict = []) -> dict:
    properties = []
    if color:
        properties += [{"id": "color", "value": {"fixedColor": color, "mode": "fixed"}}]
    if displayName:
        properties += [{"id": "displayName", "value": displayName}]
    if unit:
        properties += [{"id": "unit", "value": unit}]
    if hidden:
        properties += [{"id": "custom.hidden", "value": hidden}]
    if thresholds:
        properties += [{"id": "thresholds", "value": {
            "mode": "absolute",
            "steps": [
                {"color": value, "value": key} for key, value in thresholds.items()
            ]
        }}]
    if mappings:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…