Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
ไอคิวบ์คืออะไร
iCube (Industrial Informatics & Intelligent Systems) คือ บริษัทที่ให้บริการแพลตฟอร์มการบริหารจัดการข้อมูลสำหรับโรงงานอุตสาหกรรม (Plant Information Management System, PIMS) โดยแพลตฟอร์มที่จะเข้ามาช่วยแก้ไขปัญหาการทำงานซ้ำซ้อนของพนักงานในโรงงาน ไม่ว่าจะเป็นการกรอกข้อมูล, การจัดการข้อมูล และการบริหารข้อมูลในโรงงาน ทำให้การทำงานมีประสิทธิภาพมากยิ่งขึ้น ทั้งนี้แพลตฟอร์มถูกดีไซต์บนคอนเซ็ปต์ Automation as a Service (AaaS) ที่ให้บริการเซอร์วิสผ่านดาต้าแพลตฟอร์มหรือ iCube Server ทำให้ผู้ใช้บริการสามารถเลือกรับบริการตามความต้องการได้อย่างอิสระ ตอบสนองความต้องการของผู้ใช้บริการงานได้อย่างเหมาะสมที่สุด
การลบ Mapping
การลบ Mapping มี 3 ขั้นตอน ดังนี้
Select : เลือก Mapping ที่ต้องการลบ
Information : เมื่อกดเลือก จะมีการแสดงรายละเอียดของ Mapping และกดปุ่ม Delete
Confirm : กดปุ่ม Delete อีกครั้งเพื่อยืนยันการลบ Mapping ที่เลือก
การจัดการและตั้งค่าการให้บริการข้อมูล
Provider : การเปิดปิด Tag/TagRelation ในระบบที่สามารถเรียกใช้งานผ่าน RESTful API เพื่อให้บริการข้อมูลกับผู้ใช้
การปรับ Toggle เพื่อเปิดปิด การใช้งานผ่าน RESTful API
Active : เปิดการใช้งานผ่าน RESTful API
Inactive : ปิดการใช้งานผ่าน RESTful API
Active / Inactive All : เปิดการใช้งานผ่าน RESTful API ทั้งหมดที่มีใน iCube Server 1. Click : กดปุ่ม Status 2. Select : เลือก Status ที่ต้องการตั้งค่า 3. Submit : กดปุ่ม Submit เพื่อบันทึกการตั้งค่า
การแก้ไข Mapping
การแก้ไข Mapping มี 4 ขั้นตอน ดังนี้
Select : เลือก Mapping ที่ต้องการแก้ไข
Information : ทำการแก้ไข Mapping
Validate : คลิกปุ่ม Check Status ที่หัวข้อ Validate Execution
Save : กดปุ่ม Save เพื่อบันทึกการแก้ไข
การจัดการข้อมูลใน Tag และ TagRelation
Value & Value Relation editor : หน้าต่างสำหรับช้แสดงข้อมูลที่ถูกจัดเก็บใน Tag และ TagRelation โดยข้อมูลที่แสดงนั้นจะอ้างอิงจากค่าที่ถูกเก็บในระบบ โดยมีวิธีการจัดการแท็กแบ่งออกเป็น 4 ส่วน ได้แก่
การตั้งค่าการเชื่อมต่อของระบบกับอินเตอร์เฟส เพื่อปรับแต่งการทำงานและการสื่อสารระหว่างระบบหรือแพลตฟอร์มต่าง ๆ ให้สามารถทำงานร่วมกันได้อย่างมีประสิทธิภาพ
การแก้ไข Interface
การแก้ไข Interface มี 4 ขั้นตอน ดังนี้
Select : เลือก Interface ที่ต้องการแก้ไข
Information : ทำการแก้ไข Interface
การเรียนรู้แพลตฟอร์มการบริหารจัดการข้อมูลโรงงานอุตสาหกรรม ที่จะทำให้การจัดการและการนำข้อมูลไปใช้งานการขับเคลื่อนกระบวนการผลิตเป็นเรื่องง่าย
การแก้ไขแท็ก
การแก้ไขแท็กมี 3 ขั้นตอน ดังนี้
Select : เลือก Tag ที่ต้องการแก้ไข
Edit : แก้ไขรายละเอียดของแท็ก
การลบ TagRelation
การลบกลุ่ม TagRelation มี 2 ขั้นตอน ดังนี้
Select : เลือก TagRelation ที่ต้องการลบ
Delete : คลิกปุ่ม Delete
iCube Server : Overview
iCube Server Overall : หน้าหลักสำหรับการมอนิเตอร์สถานะการทำงานของ Service ต่าง ๆ บนแพลตฟอร์ม iCube โดยจะแสดงข้อมูลสำคัญที่เกี่ยวข้องกับประสิทธิภาพและการทำงานของแต่ละบริการ ประกอบด้วยหัวข้อหลัก 3 รายการ ได้แก่
การลบแท็ก
การลบแท็กมี 2 ขั้นตอน ดังนี้
Select : เลือก Tag ที่ต้องการลบ
Delete : คลิกปุ่ม Delete
การลบข้อมูลในแท็กและเเท็กลีเรชัน
การลบข้อมูลมี 3 ขั้นตอน ดังนี้
Select : เลือก Tag/TagRelation ที่ต้องการลบข้อมูล
Click : คลิกข้อมูลที่ต้องการลบ
รายละเอียด Mapping
Factory type : ประเภทบริษัทที่ใช้บริการ
Factory node : เเสดงประเภท Node ที่ผู้ใช้บริการติดตั้ง
Factory token : token สำหรับใช้งานร่วมกับบริการอื่นๆ ของแพลตฟอร์ม

การตั้งค่าการเชื่อมต่อของระบบกับอินเตอร์เฟส เพื่อปรับแต่งการทำงานและการสื่อสารระหว่างระบบหรือแพลตฟอร์มต่าง ๆ ให้สามารถทำงานร่วมกันได้อย่างมีประสิทธิภาพ
การตั้งค่าการแมป เพื่อกำหนด ฟิลด์ข้อมูลหรือแท็กจากระบบหนึ่งไปยัง iCube Server













Column name
คอลัมน์ที่ใช้สำหรับจัดเก็บข้อมูล
Quality
คุณภาพของข้อมูลที่เกิดจากการกระทำกับข้อมูล
Status
สถานะที่ใช้แบ่งประเภทของข้อมูล
Timestamp
ช่วงเวลาของข้อมูลที่บันทึกเข้าระบบ
TagRelation

ชื่อ TagRelation ที่ใช้สำหรับจัดเก็บข้อมูล
การลบข้อมูลออกจากสู่ Tag และ TagRelation ในระบบ
การดึงข้อมูลเพื่อแสดงรายละเอียดของข้อมูลที่มีอยู่ในระบบ
การเพิ่มข้อมูลเข้าสู่ Tag และ TagRelation ในระบบ
การอัพเดตข้อมูลเข้าสู่ Tag และ TagRelation ในระบบ

Response Example:
Response Details:
data
object
Contains endpoint links for additional resources.
tag
string
URL link to the /tag endpoint or tag-related data.
https://api.icube.co.th/integration/webapi{
"data": {
"tag": "string"
}
}
Response Details:
result
bool
Connection status message
https://api.icube.co.th/integration/webapi/connect{
"result": bool
}
Query time : ช่วงเวลาในการอ่านข้อมูลมาเเสดงผล
Value : ค่าที่จัดเก็บอยู่ในแท็ก โดยจัดเก็บในรูปแบบ Time Series
Tag Type : ประเภทของข้อมูลที่จัดเก็บในแท็ก
Timestamp : ช่วงเวลาของข้อมูลที่บันทึกเข้าระบบ
Quality : คุณภาพของข้อมูลที่เกิดจากการกระทำกับข้อมูล
Status : สถานะที่ใช้แบ่งประเภทของข้อมูล
Value Relation editor : หน้าต่างสำหรับแสดงและจัดการข้อมูลที่เก็บอยู่ในแท็กรีเลชัน โดยมีคุณสมบัติของข้อมูลประกอบด้วย
TagRelation : ชื่อแท็กรีเลชันที่ใช้สำหรับจัดเก็บข้อมูล
Table Type : ประเภทของแท็กรีเลชันที่เกิดจากการเก็บข้อมูลโดยตรงหรือแท็กรีเลชันที่เกิดจากการเขียน Query ในการแสดงผล
Data Type : รูปแบบการจัดการข้อมูลของแท็กรีเลชัน
Query time : ช่วงเวลาในการอ่านข้อมูลมาเเสดงผล
Identity : คอลัมน์ที่จัดเก็บข้อมูล ใช้ระบุเป็นคีย์สำหรับการจัดการข้อมูลร่วมกับ Timestamp
Field : คอลัมน์ที่จัดเก็บข้อมูลที่ไม่มีผลต่อการจัดการข้อมูล
Timestamp : ช่วงเวลาของข้อมูลที่บันทึกเข้าระบบ
Quality : คุณภาพของข้อมูลที่เกิดจากการกระทำกับข้อมูล
Status : สถานะที่ใช้แบ่งประเภทของข้อมูล
การดึงข้อมูลเพื่อแสดงรายละเอียดของข้อมูลที่มีอยู่ในระบบ
การเพิ่มข้อมูลเข้าสู่แท็กหรือแท็กรีเลชันในระบบ
การอัพเดตข้อมูลเข้าสู่แท็กหรือแท็กรีเลชันในระบบ
การลบข้อมูลออกจากสู่แท็กหรือแท็กรีเลชันในระบบ

การสร้าง Interface เพื่อเชื่อมต่อกับเเหล่งข้อมูล
การอัพเดต Interface ที่ได้สร้างขึ้น
การลบ Interface ที่ได้สร้างขึ้น

Check Status : กดปุ่ม Check Status เพื่อตรวจสอบการเชื่อมต่อ
Save : กดปุ่ม Save เพื่อบันทึกการแก้ไข


- Powering Data-Driven Manufacturing -
Address: 110/1 อาคารเคเอกซ์ ชั้นที่ 12 ห้องเลขที่ 1225 ถนนกรุงธนบุรี แขวงบางลำภูล่าง เขตคลองสาน กรุงเทพมหานคร 10600
Email: [email protected]
Tel: 065-198-2415
Save : คลิกปุ่ม Save เพื่อบันทึกการแก้ไข


การเปิดปิด Tag/TagRelation ในระบบที่สามารถเรียกใช้งานผ่าน RESTful API เพื่อให้บริการข้อมูลหรือฟังก์ชันต่าง ๆ ให้กับผู้ใช้หรือตัวระบบอื่น ๆ
ฟังก์ชันที่ใช้ในการส่งข้อมูลไปยังแหล่งข้อมูลภายนอก ช่วยให้สามารถเผยแพร่หรือส่งต่อข้อมูลไปยังระบบหรือแพลตฟอร์มอื่น ๆ
Confirm : คลิกปุ่ม Delete อีกครั้งเพื่อยืนยัน


Confirm : คลิกปุ่ม Delete อีกครั้งเพื่อยืนยัน


Delete : คลิกปุ่ม Delete เพื่อลบ
Preview: หลังจากกดปุ่ม Delete ระบบจะแสดงหน้า Preview เพื่อแสดงข้อมูลที่กำลังจะถูกลบ ให้ผู้ใช้ตรวจสอบรายละเอียดก่อนยืนยันการลบข้อมูล
Confirm : ยืนยันการลบข้อมูล


การสร้าง Mapping เพื่อกำหนดฟิลด์ข้อมูลหรือแท็กจากระบบหนึ่งไปยัง iCube Server
การปรับปรุงหรือแก้ไข Mapping ที่สร้างขึ้นแล้ว
การลบ Mapping ที่สร้างขึ้น

การแก้ไขข้อมูลในแท็กและ
การแก้ไขข้อมูลมี 4 ขั้นตอน ดังนี้
Select : เลือก Tag/TagRelation ที่ต้องการแก้ไขข้อมูล
Click : เลือกข้อมูลที่ต้องการแก้ไขและเลื่อนไปด้านขวา กดไอคอนปากกาเพื่อแก้ไข
Edit : แก้ไขข้อมูล โดยการแก้ไขมี 2 ลักษณะได้แก่
3.1 Text box : ช่องสำหรับการกรอกข้อมูล
3.2 Selection Box : ช่องสำหรับเลือกข้อมูล
Save : คลิกปุ่มเครื่องหมายถูก (Save) หลังจากเเก้ไขเสร็จสิ้น
แนะนำแพลตฟอร์มไอคิวบ์
แพลตฟอร์มไอคิวบ์ เป็น แพลตฟอร์มการบริหารและจัดการข้อมูลกระบวนการผลิต (Plant Information Management System, PIMS) โดยออกแบบบนแนวคิดที่ต้องการนำข้อมูลในโรงงานทั้งโรงงานมาไว้บนสมาร์ทดีไวซ์ เพื่อให้งานต่อการเข้าถึงข้อมูล, จัดการข้อมูล และบริหารข้อมูลอย่างทันท่วงที รวมถึงการเชื่อมต่อข้อมูลกับแพลตฟอร์มอื่นๆ ได้อย่างง่ายดาย
หากต้องการรู้ว่า iCube คืออะไร
What is iCube?หากต้องการเริ่มต้นใช้งาน
iCube Serverการสร้าง Mapping
การสร้าง Mapping มี 3 ขั้นตอน ดังนี้
Click : กดสร้าง Mapping (+ Mapping)
Information : ตั้งชื่อ Mapping เเละ เลือก Interface โดยการ Mapping จะเเตกต่างกันไปตามประเภทของ Interface
Validate : คลิกปุ่ม Check Status ที่หัวข้อ Validate Execution
Save : กดปุ่ม Save เพื่อบันทึกการสร้าง Mapping
การเพิ่มข้อมูลลงในแท็กและแท็กรีเลชัน
การเพิ่มข้อมูลมี 4 ขั้นตอน ดังนี้
Select : Tag/TagRelation ที่ต้องการเพิ่มข้อมูล
Click : คลิกปุ่มเพิ่ม Value (+ Value)
การเพิ่มข้อมูลมี 2 แบบ ได้แก่
2.1 Add Value เเบบ Single : กรอกข้อมูลเเละเลือกช่วงเวลาที่ต้องการให้ข้อมูลเเสดง
2.2 Add Value เเบบ Multiple : การเพิ่มข้อมูลผ่านไฟล์ .CSV สามารถใช้งานได้เฉพาะกับ TagRelation เท่านั้น
2.2.1 จัดเตรียมไฟล์ .CSV ที่มีหัวคอลัมน์เป็นแบบเดียวกับแท็ก/แท็กรีเรชัน หรือดาวน์โหลด Template เพื่อเติมข้อมูล
2.2.2 หลังจากแนบไฟล์ข้อมูลจะแสดงตัวอย่างข้อมูลก่อนอัพโหลด
2.3 Add Value เเบบ Mapping : การเพิ่มข้อมูลผ่านไฟล์ .CSV ซึ่งมีการเชื่อมต่อกับคอลัมน์ในตารางที่ทำการเพิ่มข้อมูลได้ทันที และสามารถกำหนดค่า timestamp จากคอลัมน์ของข้อมูล
Save / Upload : กดปุ่ม Save หรือ Upload เมื่อจัดเตรียมข้อมูลเรียบร้อย
การเรียกใช้ข้อมูล
การเรียกใช้ข้อมูล คือ การดึงข้อมูลมาแสดงผลเพื่อให้ทราบถึงรายละเอียดของข้อมูลที่มีอยู่ โดยก่อนการดึงข้อมูล จำเป็นต้องเข้าใจหลักการและวิธีการดึงข้อมูลเสียก่อน ซึ่งหลักการนี้จะใช้ไวยากรณ์ของเวลาในการดึงข้อมูล โดยกำหนดตามตัวแปรดังต่อไปนี้
Start Time (เวลาเริ่มต้น)
End Time (เวลาสิ้นสุด)
โดยสามารถดูไวยกรณ์การกำหนดเวลาได้ดังนี้
วันเวลาปัจจุบัน ใช้เครื่องหมายดอกจัน (*)
เวลาก่อนหน้า ใช้เครื่องหมายลบ (-)
เวลาหลังจาก ใช้เครื่องหมายบวก (+)
หน่วย วินาที (sec)
หน่วย นาที (m)
หน่วย ชั่วโมง (h)
หน่วย วัน (d)
การเรียกใช้ข้อมูลมี 3 ขั้นตอน ได้แก่
Select : เลือก Tag/Tag Relation ที่ต้องการเรียกดูข้อมูล
Time Range : กำหนดค่าเวลาเริ่มต้นและเวลาสิ้นสุด การใช้งานมี 2 รูปแบบ โดยการปิด/เปิด Toggle ได้แก่
2.1 Time Expression : ค่าเริ่มต้นของเวลาเริ่มต้นคือ *-10m หรือ เวลาย้อนหลังไป 10 นาที จากเวลาปัจจุบัน และเวลาสิ้นสุด คือ * หรือ เวลา ณ ปัจจุบัน
2.2 Date time : การใช้งานพิมพ์ช่วงเวลาหรือกดที่ไอคอนปฏิทินเพื่อเลือกช่วงเวลาในการเรียกดูข้อมูล
Historical Value : การกำหนดจำนวนเเถวของข้อมูลที่ต้องการเเสดง
การลบ Interface
การลบ Interface มี 3 ขั้นตอน ดังนี้
Select : เลือก Interface ที่ต้องการลบ
Information : เมื่อกดเลือก จะมีการแสดงรายละเอียดของ Interface และสามารถกดปุ่ม Delete
Confirm : กดปุ่ม Delete อีกครั้งเพื่อยืนยันการลบ Interface ที่เลือก
คู่มือการใช้งาน iCube Server
iCube Server : แพลตฟอร์มที่ใช้สำหรับจัดการข้อมูล ผู้ใช้งาน และการบริการ (Service) ต่าง ๆ ของระบบ iCube Platform โดยมีการเชื่อมต่อและประสานการทำงานระหว่างฟีเจอร์ต่าง ๆ ภายในแพลตฟอร์มเพื่อให้ผู้ใช้งานสามารถบริหารจัดการข้อมูลและทรัพยากรได้อย่างมีประสิทธิภาพ
การแก้ไขข้อมูลใน TagRelation
การแก้ไข TagRelation มี 3 ขั้นตอน ได้แก่
Select : เลือกข้อมูล TagRelation ที่ต้องการแก้ไข
Information : แก้ไขรายละเอียดของ TagRelation
Save : คลิกปุ่ม Save เพื่อบันทึกการแก้ไข
การสร้าง TagRelation
การสร้างสร้าง TagRelation มี 3 ขั้นตอน ดังนี้
Click : คลิกปุ่มเพิ่ม TagRelation (+ TagRelation) เพื่อเปิดเมนูสำหรับสร้างแท็กรีเลชั่นใหม่
Information : กรอกรายละเอียดของ TagRelation ให้ครบถ้วน
ข้อกำหนดเเละรายละเอียด
การสร้าง Interface
การสร้าง Interface มี 3 ขั้นตอน ดังนี้
Click : กดปุ่มเพิ่ม Interface ( + Interface )
Interface name : กรอกชื่อ Interface name
การแก้ไข Publisher
การแก้ไข Publisher มี 4 ขั้นตอน ดังนี้
Select : เลือก Publisher ที่ต้องการแก้ไข
Information : ทำการแก้ไข Publisher
หน่วย ปี (y)

























Substituted : ข้อมูลที่ถูกแก้ไขแล้วและพร้อมสำหรับการใช้งาน
Test : ข้อมูลที่อยู่ในช่วงการทดสอบ
Status
Normal : ข้อมูลที่ถูกนำเข้าโดยไม่กำหนดสถานะพิเศษ
Review : ข้อมูลที่ถูกระบุให้ตรวจสอบก่อนการใช้งาน
Approved : ข้อมูลที่ผ่านการรีวิวและพร้อมสำหรับการใช้งาน











กระบวนการสร้างแท็กให้กับข้อมูล เพื่อให้สามารถระบุและจัดประเภทของข้อมูล
กระบวนการปรับปรุง เปลี่ยนแปลงที่ถูกกำหนดไว้กับข้อมูล เพื่อให้ตรงกับความต้องการหรือสถานการณ์ที่เปลี่ยนแปลงไป
กระบวนการนำแท็กที่เคยถูกกำหนดไว้สำหรับข้อมูลออกจากระบบ

หน้าหลักสำหรับการมอนิเตอร์สถานะการทำงานของ Service ต่าง ๆ
หน้าต่างสำหรับใช้แสดงข้อมูลที่ถูกจัดเก็บใน Tag และ TagRelation
หน้าต่างสำหรับจัดการ Tag และ TagRelation
หน้าต่างสำหรับจัดการส่วนเชื่อมต่อที่ใช้ในการสื่อสารและทำงานกับระบบหรือโปรแกรม
หน้าต่างสำหรับจัดการการใช้งานข้อมูลใน Tag และ TagRelation ผ่าน RESTful API
หน้าต่างสำหรับจัดการกำหนดระยะการทำงาน (Schedule)
หน้าต่างสำหรับจัดการและควบคุมสิทธิ์การเข้าถึง Service ต่าง ๆ




กระบวนการสร้าง TagRelation เพื่อข้อมูลให้สามารถจัดเก็บชุดข้อมูล
กระบวนการปรับปรุง เปลี่ยนแปลงที่ถูกกำหนดไว้กับข้อมูล เพื่อให้ตรงกับความต้องการหรือสถานการณ์ที่เปลี่ยนแปลงไป
กระบวนการนำ TagRelation ที่เคยถูกกำหนดไว้สำหรับข้อมูลออกจากระบบ

{{base_url}}/connectResponse Example:
Response Details:
result
bool
Connection status
https://{api_base_url}/integration/webapi/connect{
"result": bool
}
Relation name : ชื่อ TagRelation ต้องมีตัวอักษรเกินกว่า 3 ตัว แต่ไม่เกิน 50 ตัว ไม่สามารถเว้นว่างได้และไม่สามารถใช้ชื่อซ้ำได้
Description : ไม่บังคับว่าต้องกำหนดหรือถ้ากำหนดต้องมีตัวอักษรไม่เกิน 100 ตัว
Table type :
Table : การสร้าง TagRelation ให้จัดเก็บข้อมูลในรูปแบบตารางมีการกำหนดคอลัมน์ เพื่อเก็บข้อมูลในรูปแบบต่าง ๆ
View : การเขียน Query เพื่อจัดการข้อมูลจากรูปแบบ Table ให้พร้อมก่อนนำไปใช้งาน โดยใช้ภาษา PostgreSQL
Data type : รูปการการจัดเก็บข้อมูลของ TagRelation
Non-time series : การจัดเก็บข้อมูลที่ไม่ได้ถูกจัดเก็บหรือวิเคราะห์ตามลำดับของเวลา ไม่จำเป็นต้องอ้างอิงหรือผูกกับช่วงเวลาในการบันทึกข้อมูล ทำให้ไม่ต้องคำนึงถึงลำดับเวลาของเหตุการณ์หรือค่าต่าง ๆ
Time series : การจัดเก็บข้อมูลที่เกิดขึ้นตามช่วงเวลาที่กำหนด โดยมีลักษณะเป็นข้อมูลที่ถูกบันทึกหรือวัดผลซ้ำ ๆ ในช่วงเวลาที่แตกต่างกัน ซึ่งข้อมูลเหล่านี้จะถูกจัดเรียงตามลำดับเวลาอย่างต่อเนื่อง
Name : ชื่อของคอลัมน์ที่ใช้สำหรับจัดเก็บข้อมูล
Data Type : ตัวกำหนดประเภทของข้อมูลที่จัดเก็บภายในคอลัมน์
Not NULL : กำหนดให้คอลัมน์ต้องมีข้อมูล ไม่สามารถปล่อยให้ว่างได้
Identity : กำหนดให้คอลัมน์สามารถระบุเป็นคีย์หลัก (Primary Key) สำหรับ TagRelation
ประเภทของข้อมูลในการเก็บของ TagRelation ประกอบด้วยกัน 4 ประเภท
Integer (เลขจำนวนเต็ม) : ประเภทข้อมูลที่เป็นเลขจำนวนเต็ม
Big Integer (เลขจำนวนเต็ม) : ประเภทข้อมูลที่เป็นเลขจำนวนเต็ม
Double (เลขทศนิยม) : ประเภทข้อมูลที่เป็นเลขทศนิยม
String (ตัวอักษร) : ประเภทข้อมูลที่เป็นตัวอักษร
Boolean (ค่าตรรกะ) : ประเภทข้อมูลที่เป็นค่าตรรกะ ได้แก่ True หรือ False
Save : คลิกปุ่ม Save เพื่อสร้าง TagRelation


Select : เลือก Interface type มี 5 รูปเเบบ
Information : กรอกข้อมูลการเชื่อมต่อและทดสอบการเชื่อมต่อ โดยกดปุ่ม Check Status
Save : กด Save เพื่อบันทึกการเชื่อมต่อ


Response Example:
Response Details:
result
array
List of tag relation objects.
tagRelationName
string
Name of the tag relation.
server
string
Server name associated with the tag relation.
description
string
Description of the tag relation.
Validate Execution : กดปุ่ม Validate Execution เพื่อตรวจสอบการเชื่อมต่อ
Save : กดปุ่ม Save เพื่อบันทึกการแก้ไข


iCube Server
https://cloud.icube.co.th
iCube Form
https://form-v2.icube.co.th
Website
ติดตามการอัพเดตเนื้อหาใหม่ๆ ได้ทาง
ติดตามข่าวสารของชาว iCube ได้ที่ URL นี้




Fetches the values of a specific tag relation identified by its name, along with optional filters for time range and conditions.
Example URL
Last Update: 5 NOV 2024
Method: GET
URL: {{base_url}}/tagrelation/{tagrelationname}/value?starttime={starttime}&endtime={endtime}&query={query}
Query Parameters:
Time Expression:
Response Example:
Note: The fields Id, name, and tel are placeholders and will vary depending on the specific tag relation being represented in the request. Ensure you refer to the specific tag relation schema for exact field details.
Response Details:
Fetches detailed information about a specific tag identified by its name.
Add the specified tag values with their timestamps.
Example URL
Last Update: 1 NOV 2024
Method: POST
URL: {{base_url}}/tag/value?mode=write
Query Parameters:
Request Body:
The request body must be an array of tag value objects, each containing the following parameters:
Value Data Types:
Example Request Body:
Response Example:
Response Details:
Fetches detailed information about a specific tag relation identified by its name.
Updates the specified values for the tag with GUID
Example URL
Last Update: 1 NOV 2024
Method: PUT
URL: {{base_url}}/tag/{tagname}/value
Request Body:
The request body must be an array of tag value objects, each containing the following parameters:
Value Data Types:
Example Request Body:
Response Example:
Response Details:
Delete the specified tag relation values for tag relation based on their timestamps.
Example URL
https://api.icube.co.th/integration/webapi/tagrelation/TagRelationData3/valueLast Update: 1 NOV 2024
Method: DELETE
URL: {{base_url}}/tagrelation/{tagrelationname}/value
Request Body:
The request body must be an array of objects, each containing the following parameter:
Example Request Body:
Response Example:
Response Details:
Retrieves the base URL information and provides links to additional resources or endpoint categories.
การลบผู้ใช้งาน
Select : คลิกเลือกผู้ใช้งานที่ต้องการลบ
Click : เมื่อกดเลือก จะมีการแสดงรายละเอียดของผู้ใช้และกดปุ่ม Delete
Confirm : กดปุ่ม Delete เพื่อยืนยันการลบ
การสร้างแท็ก
การสร้างแท็กมี 3 ขั้นตอน ดังนี้
Click : คลิกปุ่มเพิ่ม Tag (+ Tag) เพื่อเปิดเมนูสำหรับสร้างแท็กใหม่
Information : กรอกรายละเอียดของแท็ก
ข้อกำหนดเเละรายละเอียด
Fetches the values of specified tag relations identified by their names, with optional filters for time range and status.
Fetches the value of a specific tag identified by its name, along with optional filters for time range and conditions.
การสร้างกลุ่มของผู้ใช้งาน
ใส่รูป
Click : กดสร้างผู้ใช้ ที่ปุ่ม ( + Group )
ใส่รูปปุ่ม
Information : กรอกข้อมูลของกลุ่มของผู้ใช้ที่ต้องการให้สิทธิ์การเข้าถึง Service ต่าง ๆ ใน iCube Platform
การสร้าง Request กรอกแบบฟอร์ม
Select : เลือกเมนู Request
Click : คลิกที่ปุ่ม Create Form (+ Request)
การแก้ไขผู้ใช้
Click : คลิกเลือกที่ผู้ใช้ที่ต้องการแก้ไข
Information : แก้ไขข้อมูล
การจัดการผู้ใช้งานบน iCube Platform
Users configuration : หน้าจัดการและตั้งค่าผู้ใช้ภายในระบบ โดยมีฟังก์ชันต่าง ๆ ที่ช่วยให้ผู้ดูแลระบบสามารถจัดการสิทธิ์และการเข้าถึงของผู้ใช้ได้อย่างมีประสิทธิภาพ รวมถึงการสร้างผู้ใช้ใหม่, การแก้ไขข้อมูลผู้ใช้, การกำหนดบทบาท (Role), การลบผู้ใช้, และการกำหนดสิทธิ์ในการเข้าถึงข้อมูลหรือฟังก์ชันต่าง ๆ ภายในระบบ
การสร้างผู้ใช้
Click : กดสร้างผู้ใช้ ที่ปุ่ม ( + User )
Information : กรอกข้อมูลของผู้ใช้ที่ต้องการให้สิทธิ์การเข้าถึง Service ต่าง ๆ ใน iCube Platform
การลบกำหนดเวลา
การลบ Schedule มี 3 ขั้นตอน ดังนี้
Select : เลือก Schedule ที่ต้องการลบ
Information : เมื่อกดเลือก จะมีการแสดงรายละเอียดของ Schedule และกดปุ่ม Delete
การแก้ไขกำหนดเวลา
การแก้ไข Schedule มี 3 ขั้นตอน ดังนี้
Select : เลือก Schedule ที่ต้องการแก้ไข
Information : ทำการแก้ไข Schedule
การกรอกแบบฟอร์มที่ถูก Request แล้ว
Select : เลือกเมนู Request
Click : คลิกที่ปุ่ม Action เพื่อกรอกฟอร์มที่ถูก Request
การลบโทเค็นที่สร้างไว้ ซึ่งจะทำให้โทเค็นนั้นหมดอายุการใช้งานทันที และผู้ใช้หรือระบบที่ใช้โทเค็นดังกล่าวจะไม่สามารถเข้าถึงบริการหรือทรัพยากรที่เกี่ยวข้องได้อีกต่อไป
การลบ Token มี 3 ขั้นตอน
Select : เลือก Token ที่ต้องการลบ
Information : เมื่อกดเลือก จะมีการแสดงรายละเอียดของ Token และกดปุ่ม Delete
การลบ Role
การลบ Role มี 3 ขั้นตอน
Select : เลือก Role ที่ต้องการลบ
Information : เมื่อกดเลือก จะมีการแสดงรายละเอียดของ Role และกดปุ่ม Delete
https://api.icube.co.th/integration/webapi/tagrelation{
"result": [
{
"tagRelationName": "string",
"server": "string",
"description": "string",
"createAt": "datetime",
"updateAt": "datetime or null",
"deleteAt": "datetime or null",
"enableHyperTable": bool,
"isView": bool
}
]
}
https://api.icube.co.th/integration/webapi/tagrelation/bronze_relation_raw/value?starttime=*-10d&endtime=*&query=name like 'K%'https://api.icube.co.th/integration/webapi/tag/value?mode=writehttps://api.icube.co.th/integration/webapi/tag/B15-Status/valuecreateAt
datetime
Timestamp of when the tag relation was created.
updateAt
datetime/null
Timestamp of the last update, if applicable.
deleteAt
datetime/null
Timestamp of when the tag relation was deleted, if applicable.
enableHyperTable
bool
Indicates if the hyper table feature is enabled.
isView
bool
Indicates if the tag relation is viewable.
ข้อมูลที่สามารถเเก้ไขได้คือ
Description
Password
Role
Access
Save : กด Save เพื่อบันทึกการแก้ไข


การเพิ่มผู้ใช้ใหม่เข้าสู่ระบบ
การอัพเดตผู้ใช้ในระบบ
การลบผู้ใช้ในระบบ







การสร้าง Publisher เพื่อโอนย้านข้อมูล
การอัพเดต Publisher ที่ได้สร้างขึ้น
การลบ Publisher ที่ได้สร้างขึ้น





การกรอกแบบฟอร์มที่ถูก Request แล้ว
การลบ Request กรอกแบบฟอร์ม

การสร้าง Request กรอกแบบฟอร์ม
การสร้างการกำหนดเวลาการทำงาน
การอัพเดตการกำหนดเวลาการทำงาน
การลบการกำหนดเวลาการทำงาน

*
Present
-
Go back (e.g., *-10d means go back 10 days)
+
Go forward (e.g., *+10mo means go forward 10 months)
quality
integer
Quality indicator of the tag relation value.
status
integer
Status code associated with the tag relation value.
timeStamp
datetime
Timestamp when the tag relation value was recorded.
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
query
No
A condition to filter the results, acting like a WHERE clause in PostgreSQL.
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
data
array
Array of tag relation value objects returned from the API.
Id
string
Unique identifier for the tag relation.
name
string
Name associated with the tag relation.
tel
string
Telephone number associated with the tag relation.
subDescription
string/null
Additional description, if any.
tagType
string
Data type of the tag (e.g., "Double").
tagSource
string
Source type of the tag (e.g., "Normal tag").
tagMode
string
Mode of the tag (e.g., "Default").
unit
string
Unit of measurement (e.g., "L").
timeStamp
datetime
Timestamp of the tag's last recorded value.
value
string
URL link to access the latest value of the tag.
data
array
List of tag objects.
tagname
string
Name of the tag.
server
string
Server name where the tag originates.
description
string/null
Description of the tag.
subDescription
string/null
Sub-description of the tag, if available.
tagType
string
Data type of the tag (e.g., Integer, Double).
tagSource
string
Source of the tag data (e.g., Normal tag).
tagMode
string
Mode of the tag (e.g., Default).
unit
string
Unit of measurement for the tag, if applicable.
timeStamp
datetime
Last updated timestamp for the tag.
value
string
URL or current value of the tag.
data
array
List of tag objects, containing details of the specified tag.
tagname
string
Name of the tag.
server
string
Server name associated with the tag.
description
string/null
Description of the tag.
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
True: Use this when need to update the status of data
False: Use this when don't need to update the status of data
(Default: updateStatus=False)
clearAll
bool
Clear records of data
True: Use this when need to clear all records of data before insert the new one
False: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=False)
TagName
string
Name of the tag to which the value belongs.
timeStamp
datetime
Timestamp of the value being written.
value
variant
Value associated with the tag. It can be one of the following data types:
string
Represents text data.
int
Represents integer data.
double
Represents floating-point data.
bool
Represents boolean values (true/false).
message
string
Success message indicating the result of the write operation.
enableHyperTable
string
Indicates if hyper table functionality is enabled.
isView
string
Indicates if the tag relation is a view.
sqlQueryScript
string/null
SQL script associated with the tag relation, if available.
createAt
datetime
Creation timestamp for the tag relation.
value
string
URL or current value of the tag relation.
tagRelationFieldMappings
array
List of field mappings associated with the tag relation.
fieldName
string
Name of the field in the mapping.
description
string/null
Description of the field, if available.
isIdentity
bool
Indicates if the field is an identity field.
data
array
Contains details of the specified tag relation.
tagRelationName
string
Name of the tag relation.
server
string
Server name associated with the tag relation.
description
string
Description of the tag relation.
tagValueId
GUID
Unique identifier for the tag value.
value
variant
The value associated with the tag. It can be one of the following data types:
timeStamp
datetime
Timestamp of when the value is recorded.
string
Represents text data.
int
Represents integer data.
boolean
Represents boolean values (true/false).
double
Represents floating-point data.
message
string
Success message indicating the result of the write operation.
timeStamp
datetime
The timestamp of the tag relation value to be deleted.
[
{
"timeStamp": "datetime"
},
{
"timeStamp": "datetime"
}
]
message
string
Success message indicating the result of the delete operation.
{
"data": {
"tag": "string"
}
}
data
object
Contains endpoint links for additional resources.
tag
string
URL link to the /tag endpoint or tag-related data.
Query Parameters:
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
True: Use this when need to update the status of data
False: Use this when don't need to update the status of data
(Default: updateStatus=False)
clearAll
bool
Clear records of data
True: Use this when need to clear all records of data before insert the new one
False: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=False)
Request Body:
The request body must be an array of tag relation value objects, each containing the following parameters:
tagRelationName
string
Name of the tag relation to which the values belong.
fieldMappings
array
An array of field mapping objects for the tag relation.
timeStamp
datetime
Timestamp of the value being written.
Field Mappings:
Each object in the fieldMappings array must contain the following parameters:
field_Name
string
Name of the field being mapped.
value
variant
Value associated with the field. It can be one of the following data types:
Value Data Types:
string
Represents text data.
int
Represents integer data.
big int
Represents large integer data.
boolean
Represents boolean values (true/false).
double
Represents floating-point data.
Example Request Body:
Response Example:
Response Details:
message
string
Success message indicating the result of the write operation.
Request Body:
The request body must be an array of objects, each containing the following parameter:
timeStamp
datetime
The timestamp of the tag value to be deleted.
Example Request Body:
Response Example:
Response Details:
message
string
Success message indicating the result of the delete operation.
https://api.icube.co.th/integration/webapi/tag/B15-Status/value{
"data": [
{
"Id": "string",
"name": "string",
"tel": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
{
"data": [
{
"tagname": "string",
"server": "string",
"description": "string or null",
"subDescription": "string or null",
"tagType": "string",
"tagSource": "string",
"tagMode": "string",
"unit": "string",
"timeStamp": "datetime",
"value": "string"
}
]
}
{
"data": [
{
"tagname": "string",
"server": "string",
"description": "string or null",
"subDescription": "string or null",
"tagType": "string",
"tagSource": "string",
"tagMode": "string",
"unit": "string",
"timeStamp": "datetime",
"value": "string"
}
]
}
[
{
"TagName": "string",
"timeStamp": "datetime",
"value": "variant"
},
{
"TagName": "string",
"timeStamp": "datetime",
"value": "variant"
}
]
{
"message": "string"
}
{
"data": {
"tagRelationName": "string",
"server": "string",
"description": "string",
"enableHyperTable": "string",
"isView": "string",
"sqlQueryScript": "string or null",
"createAt": "datetime",
"value": "string",
"tagRelationFieldMappings": [
{
"fieldName": "string",
"description": "string or null",
"isIdentity": bool
}
]
}
}
[
{
"tagValueId": "GUID",
"value": "variant",
"timeStamp": "datetime"
},
{
"tagValueId": "GUID",
"value": "variant",
"timeStamp": "datetime"
}
]
{
"message": "string"
}
{
"message": "string"
}
https://api.icube.co.th/integration/webapi/tagrelation/value?mode=write[
{
"tagRelationName": "string",
"fieldMappings": [
{
"field_Name": "string",
"value": "variant"
},
{
"field_Name": "string",
"value": "variant"
},
{
"field_Name": "string",
"value": "variant"
}
],
"timeStamp": "datetime"
}
]
{
"message": "string"
}
[
{
"timeStamp": "datetime"
},
{
"timeStamp": "datetime"
}
]
{
"message": "string"
}
Tagname : ชื่อแท็กต้องมีตัวอักษรเกินกว่า 3 ตัว แต่ไม่เกิน 50 ตัวและไม่สามารถใช้ชื่อซ้ำได้
Description : ไม่บังคับว่าต้องกำหนดหรือถ้ากำหนดต้องมีตัวอักษรไม่เกิน 100 ตัว
Sub-Description : ไม่บังคับว่าต้องกำหนด ใช้สำหรับนำไปใช้ระบุประเภทหรือคุณลักษณะของข้อมูลสำหรับการใช้งาน
Tag source : ตัวกำหนดลักษณะการเก็บข้อมูลของแท็ก
Normal Tag (แท็กปกติ) : แท็กที่ใช้สำหรับเก็บข้อมูล ไม่ว่าจะเป็นข้อมูลที่รับมาจากแพลตฟอร์มภายนอก หรือข้อมูลจากเซอร์วิสอื่นๆ ของแพลตฟอร์ม iCube ที่นำมาเก็บไว้ในแท็ก
Tag type : ตัวกำหนดประเภทข้อมูลที่จัดเก็บภายในแท็ก
Eng. unit : กำหนดหน่วยทางวิศวกรรม
Tag Mode : โหมดในการเก็บข้อมูลของแท็ก ประกอบด้วยกัน 2 ประเภท ได้แก่
Default mode (เริ่มต้น) : โหมดเริ่มต้นเป็นโหมดการเก็บข้อมูลที่รอรับข้อมูลอย่างเดียว
Condition mode (เงื่อนไข) : โหมดเงื่อนไขเป็นโหมดการเก็บข้อมูลที่ทำการเช็คเงื่อนไขข้อมูลก่อนจะทำการเก็บข้อมูล
ข้อกำหนดเเละการตั้งเงื่อนไขตาม Tag type
Boolean ไม่มี Condition mode
Save : คลิกปุ่ม Save เพื่อสร้างแท็ก


Query Parameters:
name
Yes
Comma-separated list of tag relation names to retrieve values for (e.g., bronze_relation_raw,Testmultiple).
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
No
Time Expression:
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
Response Example:
Note: The fields Id, name, and tel are placeholders and will vary depending on the specific tag relation being represented in the request. Ensure you refer to the specific tag relation schema for exact field details.
Response Details:
data
array
Array of tag relation value objects returned from the API.
tagRelationName
string
Name of the tag relation.
Id
string
Unique identifier for the tag relation entry.
name
string
Name associated with the tag relation.
Query Parameters:
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
query
No
A condition to filter the results, acting like a WHERE clause in PostgreSQL.
Time Expression:
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
Response Example:
Response Details:
data
array
Array of tag value objects returned from the API.
tagname
string
Name of the tag.
description
string/null
Description of the tag, if available.
subDescription
string/null
Sub-description of the tag, if available.
{{base_url}}/tagrelationResponse Example:
Response Details:
result
array
List of tag relation objects.
tagRelationName
string
Name of the tag relation.
description
string
Description of the tag relation.
enableHyperTable
bool
Indicates if the hyper table feature is enabled.
Role : การกำหนดสิทธิ์และหน้าที่ของผู้ใช้ในระบบจากเมนู Role & Permission เพื่อจัดการ Service ต่าง ๆ ใน iCube Platform
Save : กดปุ่ม Save เพื่อสร้างกลุ่มของผู้ใช้งาน

Save : กด Save เพื่อบันทึกการแก้ไข
Request : กดปุ่ม Request เมื่อสร้างเสร็จจะเเสดงรายการที่สร้างลงในตาราง
Request page : เมื่อสร้างแบบ Request สำเร็จ Request ที่สร้างจะปรากฎ


การตั้ง Password
ต้องมี 6 character
ต้องมีตัวอักษรพิมพ์ใหญ่อย่างน้อย 1 character
ต้องมีตัวอักษรพิเศษอย่างน้อย 1 character
ต้องมีตัวเลขอย่างน้อย 1 character
Setting : หลังจากกรอกรายละเอียดต่าง ๆ จะเเสดงในส่วนของ Role และ Access
Save : กดปุ่ม Save เพื่อสร้างผู้ใช้งาน



Confirm : กดปุ่ม Delete อีกครั้งเพื่อยืนยันการลบ Schedule ที่เลือก


Save : กดปุ่ม Save เพื่อบันทึกการแก้ไข


Confirm : กดปุ่ม Delete อีกครั้งเพื่อยืนยันการลบ Token ที่เลือก


Confirm : กดปุ่ม Delete อีกครั้งเพื่อยืนยันการลบ Role ที่เลือก


API Document สำหรับ Provider ใช้ในการดึงข้อมูลจาก iCube Platform
GET
Retrieves the base URL information
GET
Checks the connection status
GET
Fetches a list of tag
Task คืออะไร
Task : หน้าต่างสำหรับแสดงฟอร์มที่มีการ request ทั้งหมดและแสดงรายละเอียดของแต่ละฟอร์มรวมถึงขั้นตอนของฟอร์มนั้นหากมีการบันทึกฉบับร่างไว้ เพื่อช่วยในการจัดการและสามารถเขาถึงฟอร์มได้อย่างเป็นระเบียบและสะดวกมากขึ้น
การเลือกดู Task ตามเงื่อนไข
เลือกดู Task โดยการค้นหาชื่อฟอร์ม
สามารถกำหนดรูปแบบในการแสดงผลลัพธ์ตามต้องการได้ ได้แก่
เรียงผลลัพธ์ตามตัวอักษรของชื่อฟอร์ม
จำกัดจำนวนผลลัพธ์ที่แสดง
จำกัดระยะเวลาของผลลัพธ์ที่แสดง
เลือกดู Task ผ่าน Status ของฟอร์ม ได้แก่
Inputting
Review
Waiting for approval
เลือกดู Task ผ่านการตัวเลือกจากชื่อฟอร์มที่มีการ Request
การกำหนดเวลา
การสร้าง Schedule มี 3 ขั้นตอน ดังนี้
Click : กดปุ่มเพิ่ม Scheduling (+ Scheduling)
Information : กรอกข้อมูลรายละเอียดต่าง ๆ
Select : กำหนดระยะเวลาที่ช่อง Cron Expression โดยการกำหนดช่วงเวลามี 2 รูปแบบ ได้แก่ 3.1 Cron Expression : การกำหนดเวลาการทำงานโดยใช้รูปแบบการเขียนโค้ด Cron
3.2 Time Expression : กดไอคอน "นาฬิกา" เพื่อแสดงหน้าต่างตั้งค่าเวลา
เลือกกำหนดช่วงเวลาทุกกี่ชั่วโมง
สามารถเลือกได้ตั้งเเต่ทุก 1 ชั่วโมง ตามด้วย 59 นาที จนถึง ทุก 23 ชั่วโมง ตามด้วย 59 นาที
Save : กด "Save" เพื่อบันทึกการสร้าง Schedule
การจัดการและควบคุบสิทธิ์การเข้าถึง Service ต่าง ๆ
การลบ Request กรอกแบบฟอร์ม
Select : เลือกเมนู Request
Click : คลิกที่ปุ่ม Delete เพื่อลบ Request
Confirm : กด Delete เพื่อยืนยันการลบ Request
Request page : เมื่อลบ Request แล้วจะไม่มีการแสดงผลอีก
การแก้ไข Role
การแก้ไข Role มี 3 ขั้นตอน ดังนี้
Select : เลือก Role ที่ต้องการแก้ไข
Information : ทำการแก้ไข Role
Save : กดปุ่ม Save เพื่อบันทึกการแก้ไข
Fetches the values of specified tags identified by their names, with optional filters for time range and status.
Fetches detailed information about a specific tag relation identified by its name.
https://api.icube.co.th/integration/webapi/tagrelation/value?name=bronze_relation_raw,Testmultiple&starttime=*-5mo&endtime=*&statusData=9{
"data": [
{
"tagRelationName": "string",
"Id": "string",
"name": "string",
"tel": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
https://api.icube.co.th/integration/webapi/tag/B15-Status/value?starttime=*-10d&endtime=*&query=value > 50{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"value": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
https://{api_base_url}/integration/webapi/tagrelation{
"result": [
{
"tagRelationName": "string",
"description": "string",
"enableHyperTable": bool,
"isView": bool
}
]
}
A filter for the status of the tag relation values, acting like a WHERE clause in PostgreSQL (only integer).
*
Present
-
Go back (e.g., *-10d means go back 10 days)
+
Go forward (e.g., *+10mo means go forward 10 months)
tel
string
Telephone number associated with the tag relation.
quality
integer
Quality indicator of the tag relation value.
status
integer
Status code associated with the tag relation value.
timeStamp
datetime
Timestamp when the tag relation value was recorded.
*
Present
-
Go back (e.g., *-10y means go back 10 years)
+
Go forward (e.g., *+10mo means go forward 10 months)
value
string
Current value of the tag.
quality
integer
Quality indicator of the tag value.
status
integer
Status code associated with the tag value.
timeStamp
datetime
Timestamp when the tag value was recorded.
isView
bool
Indicates if the tag relation is viewable.
GET
Fetches a list of tag relation
GET
Fetches detailed information about a specific tagidentified by its name.
GET
Fetches detailed information about a specific tag relationidentified by its name.
GET
Fetches the value of a specifictag identified by its name
GET
Fetches the value of a specifictag relationidentified by its name
GET
Fetches the values of specified tags identified by their names
GET
Fetches the values of specified tag relations identified by their names
POST
Fetches the values of specified tags based on the provided criteria
POST
Fetches the values of specified tag relations based on the provided criteria
POST
Writes the specified tagvalues
POST
Writes the specified tag relationvalues
PUT
Updates the specified values for the tagwith GUID
PUT
Updates the specified values for the tag relation
DELETE
Deletes the specified tag values for tag based on their timestamps.
DELETE
Deletes the specified tag relation values for tag relation based on their timestamps





















Week Day คือการเลือกให้ส่งเฉพาะ วันจันทร์ จนถึง วันศุกร์ ณ เวลาที่กำหนด (Hour : Minutes)





การจัดการผู้ใช้งานบน iCube Platform
การจัดการกลุ่มของผู้ใช้งานบน iCube Platform
การกำหนดบทบาทและสิทธิ์อย่างชัดเจนเพื่อควบคุมการเข้าถึงและการใช้งาน Service ต่าง ๆ
ข้อมูลในการยืนยันตัวตนและการเข้าถึงทรัพยากรหรือบริการต่าง ๆ จาก iCube Server ผ่านการเชื่อมต่อ API



การสร้างบทบาทและกำหนดสิทธิ์สำหรับการเข้าถึงและใช้งานบริการต่าง ๆ ภายใน iCube Server
การอัพเดตบทบาทและกำหนดสิทธิ์สำหรับการเข้าถึงและใช้งานบริการต่าง ๆ ภายใน iCube Server
การลบบทบาทที่สร้างไว้ ซึ่งจะทำให้สิทธิ์การเข้าถึงและการใช้งานบริการ ต่าง ๆ ของบทบาทนั้นถูกยกเลิก






การสร้างโทเค็นเพื่อใช้ในการยืนยันตัวตนและกำหนดสิทธิ์การเข้าถึงบริการหรือทรัพยากรต่าง ๆ ผ่าน API
การลบโทเค็นที่สร้างไว้ ซึ่งจะทำให้โทเค็นนั้นหมดอายุการใช้งานทันที และผู้ใช้หรือระบบที่ใช้โทเค็นดังกล่าวจะไม่สามารถเข้าถึงบริการหรือทรัพยากรที่เกี่ยวข้องได้อีกต่อไป

หน้าต่างสำหรับสร้างและจัดการแบบฟอร์ม (Form)
หน้าต่างสำหรับจัดการกระบวนการทำงานตามลำดับขั้นตอน
หน้าต่างเเสดงประวัติการกรอกข้อมูลในแบบฟอร์ม (Form)
หน้าต่างสำหรับการอัพโหลดรูปต่าง ๆ เพื่อใช้ในแบบฟอร์ม (Form)
หน้าต่างสำหรับการกำหนดการเข้าถึงแบบฟอร์ม (Form) และเมนูต่าง ๆ ใน iCube Form
หน้าต่างสำหรับจัดกลุ่มแบบฟอร์ม (Form) เพื่อช่วยในการจัดการและแบ่งกลุ่มการใช้งานแบบฟอร์ม

tagType
string
Data type of the tag (e.g., "Double").
tagSource
string
Source type of the tag (e.g., "Normal tag").
tagMode
string
Mode of the tag (e.g., "Default").
unit
string
Unit of measurement (e.g., "L").
value
string
URL link to access the latest value of the tag.
data
array
List of tag objects.
tagname
string
Name of the tag.
description
string/null
Description of the tag.
subDescription
string/null
Additional description, if any.
{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"tagType": "string",
"tagSource": "string",
"tagMode": "string",
"unit": "string",
"value": "string"
}
]
}
Query Parameters:
name
Yes
Comma-separated list of tag names to retrieve values for (e.g., B15-Status,VT-01).
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
No
Time Expression:
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
Response Example:
Response Details:
data
array
Array of tag value objects returned from the API.
tagname
string
Name of the tag.
description
string/null
Description of the tag.
subDescription
string/null
Additional description of the tag (if available).
Query Parameters:
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
True: Use this when need to update the status of data
False: Use this when don't need to update the status of data
(Default: updateStatus=False)
clearAll
bool
Clear records of data
True: Use this when need to clear all records of data before insert the new one
False: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=False)
Request Body:
tagrelations
string
Comma-separated list of tag relation names to retrieve values for (e.g., bronze_relation_raw,TagRelationManagementSystem)
starttime
string
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
string
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
integer
Time Expression:
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
Example Request Body:
Response Example:
Note: The fields Id, name, and tel are placeholders and will vary depending on the specific tag relation being represented in the request. Ensure you refer to the specific tag relation schema for exact field details.
Response Details:
data
array
Array of tag relation value objects returned from the API.
tagRelationName
string
Name of the tag relation.
Id
string
Unique identifier for the tag relation.
name
string
Name associated with the tag relation.
Method: GET
URL: {{base_url}}/tag/{tagname}
Response Example:
Response Details:
data
array
List of tag objects, containing details of the specified tag.
tagname
string
Name of the tag.
description
string/null
Description of the tag.
subDescription
string/null
Sub-description of the tag, if available.
Method: GET
URL: {{base_url}}/tagrelation/{tagrelationname}
Response Example:
Response Details:
data
array
Contains details of the specified tag relation.
tagRelationName
string
Name of the tag relation.
description
string
Description of the tag relation.
enableHyperTable
string
Indicates if hyper table functionality is enabled.
Fetches the values of specified tags based on the provided criteria.
Example URL
Last Update: 7 NOV 2024
Method: POST
URL: {{base_url}}/tag/value?mode=read
Query Parameters:
Request Body:
Time Expression:
Example Request Body:
Response Example:
Response Details:
Updates the specified values for the tag relation
Example URL
Last Update: 1 NOV 2024
Method: PUT
URL: {{base_url}}/tagrelation/{tagrelationname}/value
Request Body:
The request body must be an array of tag relation value objects, each containing the following parameters:
Field Value Object:
Value Data Types:
Example Request Body:
Response Example:
Response Details:
API Document สำหรับ Provider ใช้ในการดึงข้อมูลจาก iCube Platform
GET
Retrieves the base URL information
GET
Checks the connection status
GET
Fetches a list of tag
Fetches the value of a specific tag identified by its name, along with optional filters for time range and conditions.
Last Update: 7 NOV 2024
Example URL
Note: This endpoint demonstrates querying the value of a specific tag (B15-Status) with additional query parameters. In this example:
starttime=*-10d specifies the start time as 10 days ago.
endtime=* indicates no specific end time (or the most recent data).
query=value > 50 filters the results to include only those where the value is greater than 50.
Method: GET
URL: {{base_url}}/tag/{tagname}/value?starttime={starttime}&endtime={endtime}&query={query}
Query Parameters:
Time Expression:
Response Example:
Response Details:
Fetches the values of specified tag relations identified by their names, with optional filters for time range and status.
Last Update: 7 NOV 2024
Example URL
Note: This endpoint demonstrates querying the value for specific tag relations (bronze_relation_raw, Testmultiple) with additional query parameters. In this example:
name=bronze_relation_raw,Testmultiple specifies the tag relations being queried.
starttime=*-5mo sets the start time as 5 months ago.
endtime=* indicates no specific end time (or the most recent data).
statusData=9 filters the results to include only those with a status data value of 9.
Method: GET
URL: {{base_url}}/tagrelation/value?name={tagrelationname}&starttime={starttime}&endtime={endtime}&statusData={statusData}
Query Parameters:
Time Expression:
Response Example:
Note: The fields Id, name, and tel are placeholders and will vary depending on the specific tag relation being represented in the request. Ensure you refer to the specific tag relation schema for exact field details.
Response Details:
Updates the specified values for the tag relation
Last Update: 7 NOV 2024
Example URL
Note: This endpoint demonstrates updating the value for a specific tag relation (TagRelationData3) using the PUT method. In this example, the PUT request is used to modify the value of the tag relation.
Method: PUT
URL: {{base_url}}/tagrelation/{tagrelationname}/value
Request Body:
The request body must be an array of tag relation value objects, each containing the following parameters:
Field Value Object:
Value Data Types:
Example Request Body:
Response Example:
Response Details:
Add the specified tag relation values with their field mappings and timestamps.
Add the specified tag values with their timestamps.
https://api.icube.co.th/integration/webapi/tag/value?name=B15-Status,VT-01&starttime=*-10y&endtime=*&statusData=18{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"value": "string",
"unit": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
https://api.icube.co.th/integration/webapi/tagrelation/value?mode=read{
"tagrelations": "tagrelationname,tagrelationname",
"starttime": "*-10y",
"endtime": "*",
"statusData": 9
}
{
"data": [
{
"tagRelationName": "string",
"Id": "string",
"name": "string",
"tel": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
https://{api_base_url}/integration/webapi/tag/B15-Status{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"tagType": "string",
"tagSource": "string",
"tagMode": "string",
"unit": "string",
"value": "string"
}
]
}
https://{api_base_url}/integration/webapi/tagrelation/bronze_relation_raw{
"data": {
"tagRelationName": "string",
"description": "string",
"enableHyperTable": "string",
"isView": "string",
"sqlQueryScript": "string or null",
"value": "string",
"tagRelationFieldMappings": [
{
"fieldName": "string",
"description": "string or null",
"isIdentity": bool
}
]
}
}
https://api.icube.co.th/integration/webapi/tag/value?mode=readhttps://api.icube.co.th/integration/webapi/tagrelation/TagRelationData3/valuehttps://{api_base_url}/integration/webapi/tag/B15-Status/value?starttime=*-10d&endtime=*&query=value > 50https://{api_base_url}/integration/webapi/tagrelation/value?name=bronze_relation_raw,Testmultiple&starttime=*-5mo&endtime=*&statusData=9https://{api_base_url}/integration/webapi/tagrelation/TagRelationData3/valueA filter for the status of the tag values, acting like a WHERE clause in PostgreSQL (only integer).
*
Present
-
Go back (e.g., *-10d means go back 10 days)
+
Go forward (e.g., *+10mo means go forward 10 months)
value
string
The value of the tag.
unit
string
Unit of measurement for the tag value.
quality
integer
Quality indicator of the tag value.
status
integer
Status code associated with the tag value.
timeStamp
datetime
Timestamp when the tag value was recorded.
Status filter for the tag relation values
-
Go back (e.g., *-10y means go back 10 years)
*
Present
+
Go forward (e.g., *+10mo means go forward 10 months)
tel
string
Telephone number associated with the tag relation.
quality
integer
Quality indicator of the tag relation value.
status
integer
Status code associated with the tag relation value.
timeStamp
datetime
Timestamp when the tag relation value was recorded.
tagType
string
Data type of the tag (e.g., Integer, Double).
tagSource
string
Source of the tag data (e.g., Normal tag).
tagMode
string
Mode of the tag (e.g., Default).
unit
string
Unit of measurement for the tag, if applicable.
value
string
URL or current value of the tag.
isView
string
Indicates if the tag relation is a view.
sqlQueryScript
string/null
SQL script associated with the tag relation, if available.
value
string
URL or current value of the tag relation.
tagRelationFieldMappings
array
List of field mappings associated with the tag relation.
fieldName
string
Name of the field in the mapping.
description
string/null
Description of the field, if available.
isIdentity
bool
Indicates if the field is an identity field.
GET
Fetches a list of tagrelation
GET
Fetches detailed information about a specific tagidentified by its name.
GET
Fetches detailed information about a specific tag relationidentified by its name.
GET
Fetches the value of a specifictag identified by its name
GET
Fetches the value of a specifictagrelationidentified by its name
GET
Fetches the values of specified tags identified by their names
GET
Fetches the values of specified tagrelations identified by their names
POST
Fetches the values of specified tags based on the provided criteria
POST
Fetches the values of specified tagrelations based on the provided criteria
POST
Writes the specified tagvalues
POST
Writes the specified tagrelationvalues
PUT
Updates the specified values for the tagwith GUID
PUT
Updates the specified values for the tagrelation
*
Present
-
Go back (e.g., *-10y means go back 10 years)
+
Go forward (e.g., *+10mo means go forward 10 months)
value
string
Value associated with the tag.
unit
string
Unit of measurement for the tag value.
quality
integer
Quality indicator of the tag value.
status
integer
Status code associated with the tag value.
timeStamp
datetime
Timestamp when the tag value was recorded.
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
True: Use this when need to update the status of data
False: Use this when don't need to update the status of data
(Default: updateStatus=False)
clearAll
bool
Clear records of data
True: Use this when need to clear all records of data before insert the new one
False: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=False)
tagnames
string
Comma-separated list of tag names to retrieve values for (e.g., VT-01,B15-Status)
starttime
string
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
string
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
integer
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
data
array
Array of tag value objects returned from the API.
tagname
string
Name of the tag.
description
string/null
Description of the tag.
subDescription
string/null
Additional description of the tag (if available).
Status filter for the tag values
tagRelationValueId
int
Unique identifier for the tag relation value.
timeStamp
datetime
Timestamp of when the values are recorded.
fieldValues
array
An array of field value objects, each containing:
field_Id
int
Unique identifier for the field.
value
variant
The value associated with the field, which can be one of the following data types:
string
Represents text data.
int
Represents integer data.
big int
Represents large integer data.
boolean
Represents boolean values (true/false).
double
Represents floating-point data.
message
string
Success message indicating the result of the write operation.
*
Present
-
Go back (e.g., *-10y means go back 10 years)
+
Go forward (e.g., *+10mo means go forward 10 months)
value
string
Current value of the tag.
quality
integer
Quality indicator of the tag value.
status
integer
Status code associated with the tag value.
timeStamp
datetime
Timestamp when the tag value was recorded.
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
query
No
A condition to filter the results, acting like a WHERE clause in PostgreSQL.
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
data
array
Array of tag value objects returned from the API.
tagname
string
Name of the tag.
description
string/null
Description of the tag, if available.
subDescription
string/null
Sub-description of the tag, if available.
*
Present
-
Go back (e.g., *-10d means go back 10 days)
+
Go forward (e.g., *+10mo means go forward 10 months)
tel
string
Telephone number associated with the tag relation.
quality
integer
Quality indicator of the tag relation value.
status
integer
Status code associated with the tag relation value.
timeStamp
datetime
Timestamp when the tag relation value was recorded.
name
Yes
Comma-separated list of tag relation names to retrieve values for (e.g., bronze_relation_raw,Testmultiple).
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
No
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
data
array
Array of tag relation value objects returned from the API.
tagRelationName
string
Name of the tag relation.
Id
string
Unique identifier for the tag relation entry.
name
string
Name associated with the tag relation.
A filter for the status of the tag relation values, acting like a WHERE clause in PostgreSQL (only integer).
tagRelationValueId
int
Unique identifier for the tag relation value.
timeStamp
datetime
Timestamp of when the values are recorded.
fieldValues
array
An array of field value objects, each containing:
field_Id
int
Unique identifier for the field.
value
variant
The value associated with the field, which can be one of the following data types:
string
Represents text data.
int
Represents integer data.
big int
Represents large integer data.
boolean
Represents boolean values (true/false).
double
Represents floating-point data.
message
string
Success message indicating the result of the write operation.
Method: POST
URL: {{base_url}}/tagrelation/value?mode=write
Query Parameters:
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
true: Use this when need to update the status of data
false: Use this when don't need to update the status of data
(Default: updateStatus=false)
clearAll
bool
Clear records of data
true: Use this when need to clear all records of data before insert the new one
false: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=false)
Request Body:
The request body must be an array of tag relation value objects, each containing the following parameters:
tagRelationName
string
Name of the tag relation to which the values belong.
fieldMappings
array
An array of field mapping objects for the tag relation.
timeStamp
datetime
Timestamp of the value being written.
Field Mappings:
Each object in the fieldMappings array must contain the following parameters:
field_Name
string
Name of the field being mapped.
value
variant
Value associated with the field. It can be one of the following data types:
Value Data Types:
string
Represents text data.
int
Represents integer data.
big int
Represents large integer data.
boolean
Represents boolean values (true/false).
double
Represents floating-point data.
Example Request Body:
Response Example:
Response Details:
message
string
Success message indicating the result of the write operation.
Method: POST
URL: {{base_url}}/tag/value?mode=write
Query Parameters:
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
true: Use this when need to update the status of data
false: Use this when don't need to update the status of data
(Default: updateStatus=false)
clearAll
bool
Clear records of data
true: Use this when need to clear all records of data before insert the new one
false: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=false)
Request Body:
The request body must be an array of tag value objects, each containing the following parameters:
tagname
string
Name of the tag to which the value belongs.
timeStamp
datetime
Timestamp of the value being written.
value
variant
Value associated with the tag. It can be one of the following data types:
Value Data Types:
string
Represents text data.
int
Represents integer data.
double
Represents floating-point data.
bool
Represents boolean values (true/false).
Example Request Body:
Response Example:
Response Details:
message
string
Success message indicating the result of the write operation.
Method: PUT
URL: {{base_url}}/tag/{tagname}/value
Request Body:
The request body must be an array of tag value objects, each containing the following parameters:
tagValueId
GUID
Unique identifier for the tag value.
value
variant
The value associated with the tag. It can be one of the following data types:
timeStamp
datetime
Timestamp of when the value is recorded.
Value Data Types:
string
Represents text data.
int
Represents integer data.
boolean
Represents boolean values (true/false).
double
Represents floating-point data.
Example Request Body:
Response Example:
Response Details:
message
string
Success message indicating the result of the write operation.
{
"tagnames": "tagname,tagname",
"starttime": "*-10y",
"endtime": "*",
"statusData": 9
}
{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"value": "string",
"unit": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
[
{
"tagRelationValueId": integer,
"timeStamp": "datetime",
"fieldValues": [
{
"field_Id": integer,
"value": "variant"
},
{
"field_Id": integer,
"value": "variant"
},
{
"field_Id": integer,
"value": "variant"
}
]
}
]
{
"message": "string"
}
{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"value": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
{
"data": [
{
"tagRelationName": "string",
"Id": "string",
"name": "string",
"tel": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
[
{
"tagRelationValueId": integer,
"timeStamp": "datetime",
"fieldValues": [
{
"field_Id": integer,
"value": "variant"
},
{
"field_Id": integer,
"value": "variant"
},
{
"field_Id": integer,
"value": "variant"
}
]
}
]
{
"message": "string"
}
https://{api_base_url}/integration/webapi/tagrelation/value?mode=write[
{
"tagRelationName": "string",
"fieldMappings": [
{
"field_Name": "string",
"value": "variant"
},
{
"field_Name": "string",
"value": "variant"
},
{
"field_Name": "string",
"value": "variant"
}
],
"timeStamp": "datetime"
}
]
{
"message": "string"
}
https://{api_base_url}/integration/webapi/tag/value?mode=write[
{
"tagname": "string",
"timeStamp": "datetime",
"value": "variant"
},
{
"tagname": "string",
"timeStamp": "datetime",
"value": "variant"
}
]
{
"message": "string"
}
https://{api_base_url}/integration/webapi/tag/B15-Status/value[
{
"tagValueId": "GUID",
"value": "variant",
"timeStamp": "datetime"
},
{
"tagValueId": "GUID",
"value": "variant",
"timeStamp": "datetime"
}
]
{
"message": "string"
}
Fetches the values of specified tags based on the provided criteria.
Fetches the values of specified tags identified by their names, with optional filters for time range and status.
Last Update: 7 NOV 2024
Example URL
Note: This endpoint demonstrates querying the value of specific tags (B15-Status, VT-01) with additional query parameters. In this example:
name=B15-Status,VT-01 specifies the tag names being queried.
Fetches the values of specified tag relations based on the provided criteria.
Method: POST
URL: {{base_url}}/tag/value?mode=read
Query Parameters:
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
true: Use this when need to update the status of data
false: Use this when don't need to update the status of data
(Default: updateStatus=false)
clearAll
bool
Clear records of data
true: Use this when need to clear all records of data before insert the new one
false: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=false)
Request Body:
tagnames
string
Comma-separated list of tag names to retrieve values for (e.g., VT-01,B15-Status)
starttime
string
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
string
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
integer
Time Expression:
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
Example Request Body:
Response Example:
Response Details:
data
array
Array of tag value objects returned from the API.
tagname
string
Name of the tag.
description
string/null
Description of the tag.
subDescription
string/null
Additional description of the tag (if available).
starttime=*-10y sets the start time as 10 years ago.
endtime=* indicates no specific end time (or the most recent data).
statusData=18 filters the results to include only those with a status data value of 18.
Method: GET
URL: {{base_url}}/tag/value?name={tagname}&starttime={starttime}&endtime={endtime}&statusData={statusData}
Query Parameters:
name
Yes
Comma-separated list of tag names to retrieve values for (e.g., B15-Status,VT-01).
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
No
Time Expression:
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
Response Example:
Response Details:
data
array
Array of tag value objects returned from the API.
tagname
string
Name of the tag.
description
string/null
Description of the tag.
subDescription
string/null
Additional description of the tag (if available).
Method: POST
URL: {{base_url}}/tagrelation/value?mode=read
Query Parameters:
mode
string
Mode of the Request
read: Use this mode to retrieve data.
write: Use this mode to insert data.
(Default: mode=read)
updateStatus
bool
Update Status of data
true: Use this when need to update the status of data
false: Use this when don't need to update the status of data
(Default: updateStatus=false)
clearAll
bool
Clear records of data
true: Use this when need to clear all records of data before insert the new one
false: Use this when don't need to clear all records of data before insert the new one
(Default: clearAll=false)
Request Body:
tagrelations
string
Comma-separated list of tag relation names to retrieve values for (e.g., bronze_relation_raw,TagRelationManagementSystem)
starttime
string
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
string
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
statusData
integer
Time Expression:
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
Example Request Body:
Response Example:
Note: The fields Id, name, and tel are placeholders and will vary depending on the specific tag relation being represented in the request. Ensure you refer to the specific tag relation schema for exact field details.
Response Details:
data
array
Array of tag relation value objects returned from the API.
tagRelationName
string
Name of the tag relation.
Id
string
Unique identifier for the tag relation.
name
string
Name associated with the tag relation.
https://{api_base_url}/integration/webapi/tag/value?mode=read{
"tagnames": "tagname,tagname",
"starttime": "*-10y",
"endtime": "*",
"statusData": 9
}
{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"value": "string",
"unit": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
https://{api_base_url}/integration/webapi/tag/value?name=B15-Status,VT-01&starttime=*-10y&endtime=*&statusData=18{
"data": [
{
"tagname": "string",
"description": "string or null",
"subDescription": "string or null",
"value": "string",
"unit": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
https://{api_base_url}/integration/webapi/tagrelation/value?mode=read{
"tagrelations": "tagrelationname,tagrelationname",
"starttime": "*-10y",
"endtime": "*",
"statusData": 9
}
{
"data": [
{
"tagRelationName": "string",
"Id": "string",
"name": "string",
"tel": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
Status filter for the tag values
*
Present
-
Go back (e.g., *-10y means go back 10 years)
+
Go forward (e.g., *+10mo means go forward 10 months)
value
string
Value associated with the tag.
unit
string
Unit of measurement for the tag value.
quality
integer
Quality indicator of the tag value.
status
integer
Status code associated with the tag value.
timeStamp
datetime
Timestamp when the tag value was recorded.
A filter for the status of the tag values, acting like a WHERE clause in PostgreSQL (only integer).
*
Present
-
Go back (e.g., *-10d means go back 10 days)
+
Go forward (e.g., *+10mo means go forward 10 months)
value
string
The value of the tag.
unit
string
Unit of measurement for the tag value.
quality
integer
Quality indicator of the tag value.
status
integer
Status code associated with the tag value.
timeStamp
datetime
Timestamp when the tag value was recorded.
Status filter for the tag relation values
-
Go back (e.g., *-10y means go back 10 years)
*
Present
+
Go forward (e.g., *+10mo means go forward 10 months)
tel
string
Telephone number associated with the tag relation.
quality
integer
Quality indicator of the tag relation value.
status
integer
Status code associated with the tag relation value.
timeStamp
datetime
Timestamp when the tag relation value was recorded.
การสร้างโทเค็นเพื่อใช้ในการยืนยันตัวตนและกำหนดสิทธิ์การเข้าถึงบริการหรือทรัพยากรต่าง ๆ ผ่าน API
การสร้าง Token มี 3 ขั้นตอน
Click : กดปุ่มเพิ่ม Token (+ Token)
Information : กรอกรายละเอียด 2.1 Client name : กรอกข้อมูลช่อง "Client name" 2.2 Select : เลือก "Expire Date" เพื่อกำหนดวันหมดอายุของ Token
Save : กดปุ่ม Save เพื่อบันทึกการสร้าง Token



Tag
ชื่อแท็กที่ใช้สำหรับจัดเก็บข้อมูล
Value
ค่าที่จัดเก็บอยู่ในแท็ก โดยจัดเก็บในรูปแบบ Time Series
Quality
คุณภาพของข้อมูลที่เกิดจากการกระทำกับข้อมูล
Status
สถานะที่ใช้แบ่งประเภทของข้อมูล
Timestamp
ช่วงเวลาของข้อมูลที่บันทึกเข้าระบบ

การลบ Publisher
การลบ Publisher มี 3 ขั้นตอน
Select : เลือก Publisher ที่ต้องการลบ
Information : เมื่อกดเลือก จะมีการแสดงรายละเอียดของ Publisher และกดปุ่ม Delete
Confirm : กดปุ่ม Delete อีกครั้งเพื่อยืนยันการลบ Publisher ที่เลือก




Fetches the values of a specific tagrelation identified by its name, along with optional filters for time range and conditions.
Last Update: 7 NOV 2024
Example URL
Note: This endpoint demonstrates querying the value of a specific tag relation (bronze_relation_raw) with additional query parameters. In this example:
starttime=*-10d specifies the start time as 10 days ago.
endtime=* indicates no specific end time (or the most recent data).
query=name like 'K%' filters the results to include only those where the name starts with the letter "K."
Method: GET
URL: {{base_url}}/tagrelation/{tagrelationname}/value?starttime={starttime}&endtime={endtime}&query={query}
Query Parameters:
Time Expression:
Response Example:
Note: The fields Id, name, and tel are placeholders and will vary depending on the specific tag relation being represented in the request. Ensure you refer to the specific tag relation schema for exact field details.
Response Details:
https://{api_base_url}/integration/webapi/tagrelation/bronze_relation_raw/value?starttime=*-10d&endtime=*&query=name like 'K%'*
Present
-
Go back (e.g., *-10d means go back 10 days)
+
Go forward (e.g., *+10mo means go forward 10 months)
quality
integer
Quality indicator of the tag relation value.
status
integer
Status code associated with the tag relation value.
timeStamp
datetime
Timestamp when the tag relation value was recorded.
starttime
Yes
Starting time for filtering the data (e.g., *-10y)
(Default: starttime=*-10m)
endtime
Yes
Ending time for filtering the data (e.g., *)
(Default: endtime=*)
query
No
A condition to filter the results, acting like a WHERE clause in PostgreSQL.
sec
Second
m
Minute
h
Hour
d
Day
mo
Month
y
Year
data
array
Array of tag relation value objects returned from the API.
Id
string
Unique identifier for the tag relation.
name
string
Name associated with the tag relation.
tel
string
Telephone number associated with the tag relation.
{
"data": [
{
"Id": "string",
"name": "string",
"tel": "string",
"quality": integer,
"status": integer,
"timeStamp": "datetime"
}
]
}
ฟังก์ชันแท็ก
ฟังก์ชันแท็ก คือ ฟังก์ชันหลักสำหรับการสร้างแหล่งเก็บข้อมูล โดยในฟังก์ชันแท็กเองจะแบ่งออกเป็น 2 ส่วน ได้แก่
Tag : ใช้สำหรับเก็บข้อมูลจุดต่อจุด
TagRelation : ใช้สำหรับการเก็บข้อมูลจากหลาย ๆ คอลัมน์แล้วนำมารวบรวมเป็นชุดข้อมูล
การจัดการกลุ่มของผู้ใช้งานบน iCube Platform
รอใส่รูป
Group configuration : หน้าจัดการและตั้งค่ากลุ่มของผู้ใช้งานภายในระบบ โดยมีฟังก์ชันต่าง ๆ ที่ช่วยให้ผู้ดูแลระบบสามารถจัดการสิทธิ์และการเข้าถึงของผู้ใช้แบบกลุ่มได้อย่างรวดเร็ว รวมถึงการสร้างกลุ่มใหม่, การกำหนดกลุ่มของผู้ใช้งาน, การกำหนดบทบาท (Role), การลบกลุ่มของผู้ใช้, และการกำหนดสิทธิ์ในการเข้าถึงข้อมูลหรือฟังก์ชันต่าง ๆ ภายในระบบ
การเพิ่มกลุ่มของผู้ใช้งานเข้าสู่ระบบ
การอัพเดตกลุ่มของผู้ใช้ในระบบ
การลบกลุ่มของผู้ใช้ในระบบ
การลบกลุ่มของผู้ใช้งาน
Select : คลิกเลือกผู้ใช้งานที่ต้องการลบ
Click : เมื่อกดเลือก จะมีการแสดงรายละเอียดของกลุ่มของผู้ใช้งานและกดปุ่ม Delete
Confirm : กดปุ่ม Delete เพื่อยืนยันการลบ




การสร้าง Publisher
Click : กดปุ่มเพิ่ม Publisher ( + Publisher )
Publisher name : กรอกชื่อ Publisher name
Select : เลือก Interface ที่ต้องการโอนย้ายข้อมูล
Click : กดปุ่ม Check connect
Mapping Mode
Tag : เลือก Mapping กับ alias name
TagRelation : เลือก TagRelation กับ Table และ Field กับ Column
Add Column : กดไอคอน (+) เพื่อเพิ่ม Column
Static value : เพิ่ม Column สำหรับพิมพ์ข้อมูลแบบกำหนดเอง
Merge Type : รูปแบบการเพิ่มข้อมูล Replace Duplicate: ฟังก์ชันที่ใช้ในการเพิ่มข้อมูลใหม่ หากพบข้อมูลซ้ำจะทำการอัปเดตข้อมูลเดิมตาม Identity ที่ระบุไว้ Clear all & Insert: ฟังก์ชันที่ทำการล้างข้อมูลทั้งหมดจากแหล่งข้อมูลก่อน แล้วทำการเพิ่มข้อมูลใหม่เข้าไปในระบบตามที่ระบุ
Scheduler : กำหนดรอบเวลาในการโอนย้ายข้อมูล
Status filter : คัดเลือก Status ของข้อมูลก่อนโอนย้าย
Validate Execution : ทดสอบการการโอนย้ายข้อมูล
Save : กด Save เพื่อบันทึกการตั้งค่า









การสร้าง Role
Click : กดปุ่มเพิ่ม Role (+ Role)
Information : กรอกรายละเอียดและเลือก Service ที่ต้องการเปิดให้กับ Role ที่สร้าง
Save : กดปุ่ม Save เพื่อบันทึกการสร้าง Role


