检索模板仪表盘

    该方法允许根据给定的参数检索模板仪表盘。

    此方法对于任何用户可用。可以在用户角色设置中撤销调用该方法的权限。 详情查阅 。

    参数

    该方法支持以下参数。

    (integer/array) 返回两者其一:

    • 一个对象数组;
    • 如果使用了’countOutput’参数,则对检索对象进行计数。

    示例

    检索模板仪表盘

    请求:

    响应:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "dashboardid": "23",
    6. "name": "Docker overview",
    7. "templateid": "10001",
    8. "display_period": "30",
    9. "auto_start": "1",
    10. "uuid": "6dfcbe0bc5ad400ea9c1c2dd7649282f",
    11. "pages": [
    12. {
    13. "dashboard_pageid": "1",
    14. "name": "",
    15. "display_period": "0",
    16. "widgets": [
    17. {
    18. "widgetid": "220",
    19. "type": "graph",
    20. "name": "",
    21. "x": "0",
    22. "y": "0",
    23. "width": "12",
    24. "height": "5",
    25. "view_mode": "0",
    26. "fields": [
    27. {
    28. "type": "6",
    29. "name": "graphid",
    30. "value": "1125"
    31. ]
    32. {
    33. "widgetid": "221",
    34. "type": "graph",
    35. "name": "",
    36. "x": "12",
    37. "y": "0",
    38. "width": "12",
    39. "height": "5",
    40. "view_mode": "0",
    41. "fields": [
    42. {
    43. "type": "6",
    44. "name": "graphid",
    45. "value": "1129"
    46. }
    47. ]
    48. },
    49. {
    50. "widgetid": "222",
    51. "type": "graph",
    52. "name": "",
    53. "x": "0",
    54. "y": "5",
    55. "width": "12",
    56. "height": "5",
    57. "view_mode": "0",
    58. "fields": [
    59. {
    60. "type": "6",
    61. "name": "graphid",
    62. "value": "1128"
    63. }
    64. ]
    65. },
    66. {
    67. "widgetid": "223",
    68. "type": "graph",
    69. "x": "12",
    70. "y": "5",
    71. "width": "12",
    72. "height": "5",
    73. "view_mode": "0",
    74. "fields": [
    75. {
    76. "type": "6",
    77. "name": "graphid",
    78. "value": "1126"
    79. }
    80. ]
    81. },
    82. {
    83. "widgetid": "224",
    84. "type": "graph",
    85. "name": "",
    86. "x": "0",
    87. "y": "10",
    88. "width": "12",
    89. "height": "5",
    90. "view_mode": "0",
    91. "fields": [
    92. {
    93. "type": "6",
    94. "name": "graphid",
    95. "value": "1127"
    96. }
    97. ]
    98. }
    99. ]
    100. }
    101. ]
    102. }
    103. ],
    104. "id": 1
    105. }

    源码