The method allows to retrieve correlations according to the given parameters.该方法允许根据给定的参数获取关联。

    Parameters 参数

    (object) Parameters defining the desired output.定义所需输出的参数。

    The method supports the following parameters.该方法支持以下参数。

    • an array of objects;一组对象;

    • the count of retrieved objects, if the countOutput parameter has been used.如果已经使用“countOutput”参数,则检索到的对象的计数。

    Examples 示例

    Retrieve correlations获取关联

    Retrieve all configured correlations together with correlation conditions and operations. The filter uses the “and/or” evaluation type, so the formula property is empty and eval_formula is generated automatically.获取所有配置的关联以及关联条件和操作。过滤器使用“和/或”评估类型,因此属性为空,“eval_formula”是自动生成的。

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "name": "Correlation 1",
    6. "description": "",
    7. "status": "0",
    8. "filter": {
    9. "evaltype": "0",
    10. "formula": "",
    11. "conditions": [
    12. {
    13. "type": "3",
    14. "oldtag": "error",
    15. "newtag": "ok",
    16. "formulaid": "A"
    17. }
    18. "eval_formula": "A"
    19. },
    20. "operations": [
    21. {
    22. "type": "0"
    23. }
    24. ]
    25. }
    26. ],
    27. "id": 1
    28. }

    Source 来源