Monitor Dns Data
TIP
This interface is applicable for data push API, read Api Push Process first
Request address
- API
Environment | URL |
---|---|
Test | https://{recipient provide}/t1/monitor-dns |
Prod | https://{recipient provide}/t1/monitor-dns |
Request data description
Field | key | Type | Required | Length | Description | Example |
---|---|---|---|---|---|---|
bu | Y | String | Y | 20 | ThinkDT/IdeaDT | IdeaNB |
model_name | Y | String | Y | 100 | model name | D24-20/L27q-30/E24q-20/TE22-14 |
site_id | Y | String | Y | 100 | factory’s name | C101 |
lenovo_pn | Y | String | Y | 100 | Lenovo Material | SA10R16924 |
vendor_code | Y | String | Y | 100 | Vendor code | 1000063611 |
vendor_name | Y | String | Y | 100 | Supplier's Description | LITEONTECHNOLOGYCORPORATION |
soi | Integer | Y | 11 | 库存 | 32 | |
eff_start_date | String | Y | 10 | Data start date or Supply start date(Thursday) Format: yyyy-mm-dd | ||
measure | String | Y | 50 | Identifies different types of data | Publish Demand | |
date | String | Y | 10 | The first word is date, and the value is the specific date: 2022-07-21; Format: yyyy-mm-dd | 2024-08-01 | |
date_qty | String | Y | 100 | Qty | 32 | |
version | String | Y | 8 | The date the data was sent (20240801) |
Response data description
Field | Type | Required | Description |
---|---|---|---|
code | String | Y | 0 successful, others: failed |
msg | String | Y | success or summary error message |
Request sample
json
{
"batch_id": "1000001",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data":[
{
"bu": "IdeaNB",
"site_id": "AOC",
"lenovo_pn": "SA10R16924",
"model_name": "SA10R16924",
"vendor_code": 1000063611,
"vendor_name": "LITEONTECHNOLOGYCORPORATION",
"soi": "32",
"eff_start_date": "2024-08-01",
"measure": "Publish Demand",
"date": "2024-08-01",
"date_qty": 32,
"version": "20240801"
},
{
"bu": "IdeaNB",
"site_id": "AOC",
"lenovo_pn": "SA10R16924",
"model_name": "SA10R16924",
"vendor_code": 1000063611,
"vendor_name": "LITEONTECHNOLOGYCORPORATION",
"soi": "32",
"eff_start_date": "2024-08-01",
"measure": "Publish Demand",
"date": "2024-08-02",
"date_qty": 32,
"version": "20240801"
}
]
}
Successful response sample
json
{
"code":"0",
"msg":"request success"
}
Failed response sample
json
{
"code":"-1",
"msg":"error message"
}