시작하기
적합한 제품 선택
Edge, Cloud, Enterprise 중 적합한 Tier0 에디션을 선택합니다.
각 제품의 자세한 기능은 요금 페이지에서 확인하고 필요에 맞는 에디션을 선택하세요.
다음 단계
섹션 제목: “다음 단계”- UNS 기반 앱 만들기 — Enterprise에서 Tier0 앱을 만들고 배포합니다.
- 설치 — 선택한 에디션의 설정 단계를 따릅니다.
Edge, Cloud, Enterprise 중 적합한 Tier0 에디션을 선택합니다.
각 제품의 자세한 기능은 요금 페이지에서 확인하고 필요에 맞는 에디션을 선택하세요.
Tier0 설치 옵션을 선택하고 시작합니다.
Tier0는 세 가지 에디션으로 제공됩니다.
어떤 edition을 선택해야 할지 확실하지 않다면 최적의 버전 선택을 먼저 확인하세요.
Tier0 Cloud를 사용하려면 먼저 체험 계정을 신청하세요.
sha256sum -c tier0-enterprise-offline-standard-YYYYmmddTHHMMSS.tar.gz.sha256tar -xzf tier0-enterprise-offline-standard-YYYYmmddTHHMMSS.tar.gzcd tier0-enterprise-offline-standard-YYYYmmddTHHMMSSinstall.env를 수정한 뒤 deployment를 시작합니다.
vi install.envbash install.sh./install.sh --check-only./full-cleanup.sh --env install.env --yes이 명령은 VM, 운영체제, 설치 패키지, Docker 소프트웨어는 유지하지만 Tier0 런타임 데이터와 데이터베이스 백업을 삭제합니다.
runtime/install-reports/<timestamp>/deployment-report.md보고서에 FAIL 항목이 있으면 프로젝트를 인도하지 말고 먼저 지원팀에 문의하세요.
최적의 버전 선택 - requirement에 맞는 edition을 선택합니다.
Tier0를 시작하는 권장 절차입니다.
flowchart TD app["앱 만들기"] namespace["Namespace 만들기"] external["외부 데이터 연결 (선택)"] use["앱에서 통합 데이터 사용"] app --> namespace --> external --> use namespace -.->|"선택 단계 건너뛰기"| use classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class use t0accent
| 작업 | 담당자 | 에디션 | 설명 |
|---|---|---|---|
| 앱 만들기 | 사용자 | Cloud | Agent와 대화하여 맞춤형 앱을 만듭니다. |
| Namespace 만들기 | Agent | Cloud | 앱의 비즈니스 로직에 따라 Namespace와 데이터 모델을 만듭니다. |
| 외부 데이터 연결 (선택) | 사용자 | Cloud, Enterprise | 필요한 경우 Agent가 연결할 기존 비즈니스 시스템이나 장치의 정보를 제공합니다. |
| 데이터 통합 | Agent | Cloud, Enterprise | 외부 데이터를 기존 앱 모델에 매핑하고 변환하여 통합합니다. |
앱을 위해 외부 데이터를 Tier0에 연결하고 모델링하여 통합합니다.
Tier0는 맞춤형 앱을 위한 데이터 기반을 만듭니다. 앱의 비즈니스 데이터를 받고, 기존 시스템과 장치의 외부 데이터 소스를 연결하며, 앱이 사용할 수 있는 통합 모델로 데이터를 모읍니다.
모든 데이터는 Namespace 아래 Tables에 모델링되고 데이터 유형별로 구성됩니다.
flowchart TB namespace["Namespace"] --> table["Table"] table --> record["Record 테이블<br/>관계형 데이터"] table --> sample["Sample 테이블<br/>시계열 데이터"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class table t0accent
비즈니스 데이터는 앱 사용이나 외부 시스템에서 올 수 있습니다. 시계열 데이터는 주로 연결된 장치에서 옵니다.
flowchart LR app["앱"] -->|"비즈니스 데이터"| record["Record"] stream["Stream"] -->|"장치 데이터"| sample["Sample"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class record,sample t0accent
flowchart LR source["Source<br/>서버 연결"] --> stream["Stream<br/>수집 및 처리"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class source,stream t0accent
프롬프트에 명시하지 않으면 Agent가 앱의 비즈니스 로직에 맞춰 데이터 모델을 자동 생성합니다.
Enterprise의 데이터 기반 구축 절차는 추후 추가합니다.
Edge의 데이터 기반 구축 절차는 추후 추가합니다.
MQTT와 API로 UNS 데이터를 조작하고 API 레퍼런스를 확인합니다.
MQTT와 API를 통해 UNS 데이터를 조작할 수 있습니다.
Tier0에서 생성한 자격 증명으로 MQTT 클라이언트를 UNS broker에 연결할 수 있습니다.
Connect > Source > MQTT Device에서 MQTT 자격 증명을 생성하고 기록합니다.
{ "Host": "mqtt.tier0.dev", "Port": 1883, "Client ID": "<generated client ID>", "Username": "<generated username>", "Password": "<generated password>"}{ "Protocol": "mqtt://", "Host": "mqtt.tier0.dev", "Port": 1883, "Username": "<generated username>", "Password": "<generated password>"}mqtt in 노드에 다음 정보로 서버를 추가합니다.
{ {/* under Connection */} "Server": "mqtt://mqtt.tier0.dev", "Port": 1883, "Client ID": "<generated clientId>", {/* under Security */} "Username": "<generated username>", "Password": "<generated password>"}https://<your-tier0-host>/openapi/v2x-api-key 헤더에 넣습니다.POST /uns/metadata:find — Tables 목록과 Table ID 가져오기
const base = "https://your-tier0-host/openapi/v2";const response = await fetch(`${base}/uns/metadata:find`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data.items);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/metadata:find", headers={"x-api-key": "your-api-key"}, json={"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"]["items"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/metadata:find" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}'POST /uns/collections/{collectionId}/records:find — Records 목록과 Record ID 가져오기
const base = "https://your-tier0-host/openapi/v2";const collectionId = "your-collection-id";const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/records:find`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"limit": 20}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/records:find", headers={"x-api-key": "your-api-key"}, json={"limit": 20}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/records:find" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"limit": 20}'POST /uns/collections/{collectionId}/samples:latest — Record의 최신 Sample 가져오기
const base = "https://your-tier0-host/openapi/v2";const collectionId = "your-collection-id";const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:latest`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"recordIds": ["record_123"]}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:latest", headers={"x-api-key": "your-api-key"}, json={"recordIds": ["record_123"]}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:latest" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"recordIds": ["record_123"]}'POST /uns/collections/{collectionId}/samples:find — 기간 내 Samples 가져오기
const base = "https://your-tier0-host/openapi/v2";const collectionId = "your-collection-id";const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:find`, { method: "POST", headers: { "content-type": "application/json", "x-api-key": "your-api-key" }, body: JSON.stringify({"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}),});const result = await response.json();if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);console.log(result.data);import requests
response = requests.post( "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:find", headers={"x-api-key": "your-api-key"}, json={"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}, timeout=30,)response.raise_for_status()result = response.json()if result["code"] != 0: raise RuntimeError(result.get("error", result.get("msg")))print(result["data"])curl --fail-with-body -X POST "https://your-tier0-host/openapi/v2/uns/collections/your-collection-id/samples:find" \ -H "content-type: application/json" \ -H "x-api-key: your-api-key" \ -d '{"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}'MCP를 통해 AI Agent를 Tier0에 연결합니다.
MCP를 통해 AI Agent를 Tier0에 연결합니다. Agent는 부여된 권한 범위에서 플랫폼 API를 찾아 사용할 수 있습니다.
{ "Authorization": "Bearer <your-personal-api-key>" }whoami를 실행하여 연결을 확인하도록 요청합니다.codex mcp add tier0 --url https://your-tier0-url/mcp --oauth-client-registration dcrcodex mcp login tier0 --oauth-client-registration dcrwhoami를 실행하여 연결을 확인하도록 요청합니다.| MCP 도구 | 용도 |
|---|---|
whoami |
신원과 권한을 확인합니다. |
docs |
API 문서를 읽습니다. |
search |
API 작업을 찾습니다. |
execute |
API 작업을 호출합니다. |
먼저 Agent에게 docs와 search로 작업을 찾고 execute로 호출하도록 요청합니다. 예:
내 Workspace의 `Plant/Line1/Metric/Temperature` 현재 값을 읽어 줘.공장 데이터 작업 — Tier0가 공장 데이터를 구성하고 제공하는 방법을 알아봅니다.
Tier0는 OPC UA, Modbus, MQTT 등 다양한 산업용 프로토콜 연결을 지원합니다.
{ "name": "ua", "description": "", "protocol": "opcua", "endpoint": "opc.tcp://220.184.175.73:4841/demo/", "runtimeLocation": "local", "opcua": { "securityMode": "None", "securityPolicy": "None" }}서버 주소와 유닛 ID만 필요합니다.
{ "name": "modbus", "description": "", "protocol": "modbus-tcp", "endpoint": "tcp://220.184.175.73:1502", "runtimeLocation": "local", "modbus": { "unitId": 1 }}Tier0는 장치 데이터를 수신하는 MQTT Broker 또는 외부 MQTT Broker에 연결하는 클라이언트로 사용할 수 있습니다.
Broker로 사용:
클라이언트로 사용: 타사 Broker에 연결합니다.
{"name": "111","description": "","protocol": "mqtt","endpoint": "mqtt://220.184.175.73:1883","runtimeLocation": "local","mqtt": { "clientId": "tier0UxxxxxxxxuwQVfi"}}Tier0는 타사가 접근하는 HTTP 서버 또는 다른 HTTP 서버의 API를 호출하는 클라이언트로 사용할 수 있습니다.
서버로 사용:
클라이언트로 사용: 타사 HTTP 서버에 연결합니다.
{ "name": "222", "description": "", "protocol": "http-api", "endpoint": "http://220.184.175.73:8088/api/telemetry", "runtimeLocation": "local", "role": "client", "http": { "authentication": "none" }}{ "name": "eee", "description": "", "protocol": "edge-sql", "endpoint": "mysql://hzoffice.tier0.dev:3307/demo_factory", "runtimeLocation": "local", "sql": { "queries": { "query1": "SELECT * FROM telemetry ORDER BY id DESC LIMIT 5" }, "tlsMode": "verify-full" }, "credentialRef": "ref_9ce47b8778xxxxxxxx7dad49a86dbad"}