Skip to content

Monitor Dns Data

TIP

This interface is applicable for data push API, read Api Push Process first

Request address

  • API
EnvironmentURL
Testhttps://{recipient provide}/t1/monitor-dns
Prodhttps://{recipient provide}/t1/monitor-dns

Request data description

FieldkeyTypeRequiredLengthDescriptionExample
buYStringY20ThinkDT/IdeaDTIdeaNB
model_nameYStringY100model nameD24-20/L27q-30/E24q-20/TE22-14
site_idYStringY100factory’s nameC101
lenovo_pnYStringY100Lenovo MaterialSA10R16924
vendor_codeYStringY100Vendor code1000063611
vendor_nameYStringY100Supplier's DescriptionLITEONTECHNOLOGYCORPORATION
soiIntegerY11库存32
eff_start_dateStringY10Data start date or Supply start date(Thursday) Format: yyyy-mm-dd
measureStringY50Identifies different types of dataPublish Demand
dateStringY10The first word is date, and the value is the specific date: 2022-07-21; Format: yyyy-mm-dd2024-08-01
date_qtyStringY100Qty32
versionStringY8The date the data was sent (20240801)

Response data description

FieldTypeRequiredDescription
codeStringY0 successful, others: failed
msgStringYsuccess 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"
}