This is a translation of the original English documentation page. Help us make it better.

correlation.update

説明

object correlation.update(object/array correlations)

この方法によって、既存の相関関係を更新することができます。

このメソッドは、Super admin ユーザータイプにのみ使用できます。このメソッドを呼び出す許可は、
ユーザーロール設定で取り消すことができます。詳細については、User rolesを参照してください。

パラメータ

(object/array) 更新される相関関係プロパティ

各相関には correlationid プロパティを定義する必要があり、その他のプロパティは任意です。渡されたプロパティのみが
更新され、他のプロパティは変更されません。

standard correlation propertiesに加えて、このメソッドは以下のパラメータを受け付けます。

パラメータ Type 説明
filter object Correlation filter object to replace the current filter.
operations array Correlation operations to replace existing operations.

戻り値

(object) correlationids` プロパティの下で更新された相関のIDを含むオブジェクトを返す。

相関を無効にする

Request:

{
           "jsonrpc": "2.0",
           "method": "correlation.update",
           "params": {
               "correlationid": "1",
               "status": "1"
           },
           "auth": "343baad4f88b4106b9b5961e77437688",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "correlationids": [
                   "1"
               ]
           },
           "id": 1
       }

条件を置き換えるが、評価方法は維持する

Request:

{
           "jsonrpc": "2.0",
           "method": "correlation.update",
           "params": {
               "correlationid": "1",
               "filter": {
                   "conditions": [
                       {
                           "type": 3,
                           "oldtag": "error",
                           "newtag": "ok"
                       }
                   ]
               }
           },
           "auth": "343baad4f88b4106b9b5961e77437688",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "correlationids": [
                   "1"
               ]
           },
           "id": 1
       }

参照

ソース

CCorrelation::update() in ui/include/classes/api/services/CCorrelation.php.