这是原厂英文文档的翻译页面. 欢迎帮助我们 完善文档.

聚合图形监控项获取

描述

integer/array screenitem.get(object parameters)

该方法允许根据给定的参数检索聚合图形监控项。

参数

(object) 参数定义所需的输出。

该方法支持以下参数。

Parameter Type Description
screenitemids string/array 只返回具有给定id的聚合图形监控项。
screenids string/array 只返回属于给定聚合图形的聚合图形监控项。
sortfield string/array 根据给定的属性对结果排序.

可能值: screenitemidscreenid.
countOutput boolean 对于所有“get”方法,这些参数都是通用的,在 reference commentary page 页面。
editable boolean
excludeSearch boolean
filter object
limit integer
output query
preservekeys boolean
search object
searchByAny boolean
searchWildcardsEnabled boolean
sortorder string/array
startSearch boolean

返回值

(integer/array) Returns either:

  • 一个对象数组;
  • 检索对象的计数, 如果使用了“countOutput”参数。

例子

从聚合图形中查寻聚合图形监控项

查询聚合图形监控项的所有聚合图形。

Request:

{
           "jsonrpc": "2.0",
           "method": "screenitem.get",
           "params": {
               "output": "extend",
               "screenids": "3"
           },
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": [
               {
                   "screenitemid": "20",
                   "screenid": "3",
                   "resourcetype": "0",
                   "resourceid": "433",
                   "width": "500",
                   "height": "120",
                   "x": "0",
                   "y": "0",
                   "colspan": "1",
                   "rowspan": "1",
                   "elements": "0",
                   "valign": "1",
                   "halign": "0",
                   "style": "0",
                   "url": "",
                   "dynamic": "0",
                   "sort_triggers": "0",
                   "application": "",
                   "max_columns": "3"            
               },
               {
                   "screenitemid": "21",
                   "screenid": "3",
                   "resourcetype": "0",
                   "resourceid": "387",
                   "width": "500",
                   "height": "100",
                   "x": "0",
                   "y": "1",
                   "colspan": "1",
                   "rowspan": "1",
                   "elements": "0",
                   "valign": "1",
                   "halign": "0",
                   "style": "0",
                   "url": "",
                   "dynamic": "0",
                   "sort_triggers": "0",
                   "application": "",
                   "max_columns": "3"
               },
               {
                   "screenitemid": "22",
                   "screenid": "3",
                   "resourcetype": "1",
                   "resourceid": "10013",
                   "width": "500",
                   "height": "148",
                   "x": "1",
                   "y": "0",
                   "colspan": "1",
                   "rowspan": "1",
                   "elements": "0",
                   "valign": "1",
                   "halign": "0",
                   "style": "0",
                   "url": "",
                   "dynamic": "0",
                   "sort_triggers": "0",
                   "application": "",
                   "max_columns": "3"
               },
               {
                   "screenitemid": "23",
                   "screenid": "3",
                   "resourcetype": "1",
                   "resourceid": "22181",
                   "width": "500",
                   "height": "184",
                   "x": "1",
                   "y": "1",
                   "colspan": "1",
                   "rowspan": "1",
                   "elements": "0",
                   "valign": "1",
                   "halign": "0",
                   "style": "0",
                   "url": "",
                   "dynamic": "0",
                   "sort_triggers": "0",
                   "application": "",
                   "max_columns": "3"
               }
           ],
           "id": 1
       }

CScreenItem::get() in frontends/php/include/classes/api/services/CScreenItem.php.