Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMINT and version 6.11
Sv translation
languageru

Описание: Статистика по рабочим станциям

Метод: GET

Ресурс: workstation /stat

Параметры:

  • filter — список фильтрации:

    • change_date[from] — от даты последнего изменения в формате UNIX-timestamp (можно использовать отдельно от change_date[to])
    • change_date[to] — до даты последнего изменения в формате UNIX-timestamp (можно использовать отдельно от change_date[from])

Ответ:

JSON схема отдачи 

 

{
    "description": "Статистика",
    "type": "object",
    "properties": {
        "data": {
            "description": "Не используется",
            "type": "array",
            "items": {}
        },
        "meta": {
            "description": "Статистика",
            "type": "object",
            "properties": {
                "CHANGE_DATE": {
                    "description": "Дата изменения",
                    "type": "object",
                    "properties": {
                        "from": {
                            "description": "Самая ранняя дата изменения",
                            "type": "string"
                        },
                        "to": {
                            "description": "Самая поздняя дата изменения",
                            "type": "string"
                        }
                    }
                },
                "totalCount": {
                    "description": "Общее количество элементов",
                    "type": "integer"
                }
            }
        }
    }
}

Пример:

GET /xapi/workstation/stat?filter[CAPTURE_DATE][to]=1494951762&filter[CAPTURE_DATE][from]=1494951000

Ответ 

{
  "data": [],
  "meta": {
    "CHANGE_DATE": {
      "from": "2017-03-24 10:40:03",
      "to": "2017-05-24 12:10:22"
    },
    "totalCount": 539693
  }
}
Sv translation
languageen

Description: Statistics on workstations

Method: GET

Resource: workstation /stat

Parameters:

  • filter — the filter list:

    • change_date[from] — since the date of the last change in UNIX-timestamp format (can be used separately from change_date[to])
    • change_date[to] — up to the date of the last change in UNIX-timestamp format (can be used separately from change_date[from])

Response:

JSON returning schema

 

{
     "$schema" :  "http://json-schema.org/draft-04/schema#" ,
     "description" :  "Statistics" ,
     "type" :  "object" ,
     "properties" : {
         "data" : {
             "description" :  "Not used" ,
             "type" :  "array" ,
             "items" : {}
         },
         "meta" : {
             "description" :  "Statistics" ,
             "type" :  "object" ,
             "properties" : {
                 "CHANGE_DATE" : {
                     "description" :  "Modification date" ,
                     "type" :  "object" ,
                     "properties" : {
                         "from" : {
                             "description" :  "The first modification date" ,
                             "type" :  "string"
                         },
                         "to" : {
                             "description" :  "The last modification date" ,
                             "type" :  "string"
                         }
                     }
                 },
                 "totalCount" : {
                     "description" :  "Total number of items" ,
                     "type" :  "integer"
                 }
             }
         }
     }
}

 

Example:

 

GET /xapi/workstation/stat?filter[CAPTURE_DATE][to]= 1494951762 &filter[CAPTURE_DATE][from]= 1494951000

 

Response 

 

{
   "data" : [],
   "meta" : {
     "CHANGE_DATE" : {
       "from" :  "2017-03-24 10:40:03" ,
       "to" :  "2017-05-24 12:10:22"
     },
     "totalCount" : 539693
   }
}