trend.get

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

    This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See User roles for more information.

    The method supports the following parameters.

    (integer/array) Returns either:

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

    Retrieving item trend data

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. {
    4. "itemid": "23715",
    5. "num": "60",
    6. "value_min": "0.165",
    7. "value_max": "0.35",
    8. }
    9. ],
    10. }

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