{
  "data": {
    "summary": {
      "from": "mes",
      "path": "/line/summary",
      "time": "updatedAt",
      "fresh": 300,
      "fields": {
        "oee": {
          "unit": "%"
        },
        "availability": {
          "unit": "%"
        },
        "performance": {
          "unit": "%"
        },
        "quality": {
          "unit": "%"
        }
      }
    },
    "hourly": {
      "from": "mes",
      "path": "/line/hourly",
      "list": "/value",
      "fresh": 5400,
      "answerTime": "/updatedAt"
    },
    "machines": {
      "from": "mes",
      "path": "/line/machines",
      "list": "/value",
      "pivot": {
        "key": "id",
        "value": "state"
      },
      "time": "updatedAt",
      "fresh": 300,
      "fields": {
        "PR-11": {
          "label": "프레스",
          "names": {
            "running": "가동",
            "idle": "대기",
            "down": "정지",
            "maintenance": "점검",
            "*": "알 수 없음"
          },
          "state": {
            "running": "ok",
            "idle": "info",
            "down": "alarm",
            "maintenance": "warn",
            "*": "idle"
          }
        },
        "WR-11": {
          "label": "용접 로봇",
          "names": {
            "running": "가동",
            "idle": "대기",
            "down": "정지",
            "maintenance": "점검",
            "*": "알 수 없음"
          },
          "state": {
            "running": "ok",
            "idle": "info",
            "down": "alarm",
            "maintenance": "warn",
            "*": "idle"
          }
        },
        "SC-11": {
          "label": "체결기",
          "names": {
            "running": "가동",
            "idle": "대기",
            "down": "정지",
            "maintenance": "점검",
            "*": "알 수 없음"
          },
          "state": {
            "running": "ok",
            "idle": "info",
            "down": "alarm",
            "maintenance": "warn",
            "*": "idle"
          }
        },
        "VI-11": {
          "label": "비전 검사기",
          "names": {
            "running": "가동",
            "idle": "대기",
            "down": "정지",
            "maintenance": "점검",
            "*": "알 수 없음"
          },
          "state": {
            "running": "ok",
            "idle": "info",
            "down": "alarm",
            "maintenance": "warn",
            "*": "idle"
          }
        },
        "PK-11": {
          "label": "포장기",
          "names": {
            "running": "가동",
            "idle": "대기",
            "down": "정지",
            "maintenance": "점검",
            "*": "알 수 없음"
          },
          "state": {
            "running": "ok",
            "idle": "info",
            "down": "alarm",
            "maintenance": "warn",
            "*": "idle"
          }
        }
      }
    },
    "downtime": {
      "from": "mes",
      "path": "/line/downtime",
      "list": "/value",
      "fresh": 300,
      "answerTime": "/updatedAt"
    },
    "orders": {
      "from": "mes",
      "path": "/line/orders",
      "list": "/value",
      "fresh": 300,
      "answerTime": "/updatedAt",
      "fields": {
        "order": {
          "label": "지시 번호"
        },
        "item": {
          "label": "품목"
        },
        "planned": {
          "label": "계획",
          "format": "number"
        },
        "done": {
          "label": "실적",
          "format": "number"
        },
        "due": {
          "label": "납기"
        }
      }
    }
  },
  "parts": {
    "oee": {
      "as": "gauge",
      "of": "summary",
      "show": "oee",
      "subtitle": "OEE (오늘)",
      "max": 100
    },
    "availability": {
      "as": "gauge",
      "of": "summary",
      "show": "availability",
      "subtitle": "가동률",
      "max": 100
    },
    "performance": {
      "as": "gauge",
      "of": "summary",
      "show": "performance",
      "subtitle": "성능률",
      "max": 100
    },
    "quality": {
      "as": "gauge",
      "of": "summary",
      "show": "quality",
      "subtitle": "양품률",
      "max": 100
    },
    "hourly": {
      "as": "chart.bar",
      "of": "hourly",
      "title": "시간대별 생산 — 실적과 계획",
      "x": "hour",
      "y": [
        "output",
        "target"
      ],
      "xFormat": "time",
      "series": [
        {
          "label": "실적"
        },
        {
          "label": "계획",
          "type": "line",
          "lineStyle": "dashed",
          "symbol": "none"
        }
      ]
    },
    "machines": {
      "as": "stat-list",
      "of": "machines",
      "show": [
        "PR-11",
        "WR-11",
        "SC-11",
        "VI-11",
        "PK-11"
      ]
    },
    "downtime": {
      "as": "chart.bar",
      "of": "downtime",
      "title": "비가동 사유 (오늘, 분)",
      "x": "reason",
      "y": "minutes",
      "horizontal": true,
      "series": [
        {
          "label": "비가동(분)"
        }
      ]
    },
    "orders": {
      "as": "table",
      "of": "orders",
      "show": [
        "order",
        "item",
        "planned",
        "done",
        "due"
      ],
      "title": "작업 지시"
    }
  },
  "layout": {
    "kind": "grid",
    "items": [
      [
        "oee",
        3
      ],
      [
        "availability",
        3
      ],
      [
        "performance",
        3
      ],
      [
        "quality",
        3
      ],
      [
        "hourly",
        8
      ],
      [
        "machines",
        4
      ],
      [
        "downtime",
        6
      ],
      [
        "orders",
        6
      ]
    ]
  }
}
