The method allows to retrieve history data according to the given parameters.

    See also:

    This method may return historical data of a deleted entity if this data has not been removed by the housekeeper yet.

    (object) Parameters defining the desired output.

    The method supports the following parameters.

    (integer/array) Returns either:

    • the count of retrieved objects, if the countOutput parameter has been used.

    Retrieving item history data

    Return 10 latest values received from a numeric(float) item.

    Request:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "itemid": "23296",
    6. "clock": "1351090996",
    7. "value": "0.0850",
    8. "ns": "563157632"
    9. },
    10. {
    11. "itemid": "23296",
    12. "clock": "1351090936",
    13. "value": "0.1600",
    14. "ns": "549216402"
    15. },
    16. {
    17. "value": "0.1800",
    18. "ns": "537418114"
    19. },
    20. {
    21. "itemid": "23296",
    22. "clock": "1351090816",
    23. "value": "0.2100",
    24. "ns": "522659528"
    25. },
    26. {
    27. "itemid": "23296",
    28. "clock": "1351090756",
    29. "value": "0.2150",
    30. "ns": "507809457"
    31. },
    32. {
    33. "itemid": "23296",
    34. "clock": "1351090696",
    35. "value": "0.2550",
    36. "ns": "495509699"
    37. },
    38. {
    39. "itemid": "23296",
    40. "value": "0.3600",
    41. "ns": "477708209"
    42. },
    43. {
    44. "itemid": "23296",
    45. "clock": "1351090576",
    46. "value": "0.3750",
    47. "ns": "463251343"
    48. },
    49. {
    50. "itemid": "23296",
    51. "clock": "1351090516",
    52. "value": "0.3150",
    53. "ns": "447947017"
    54. },
    55. {
    56. "itemid": "23296",
    57. "clock": "1351090456",
    58. "value": "0.2750",
    59. "ns": "435307141"
    60. }
    61. ],
    62. "id": 1

    CHistory::get() in ui/include/classes/api/services/CHistory.php.