Service Meshイベント

Oracle Cloud Infrastructure Eventsは、一部のサービス操作で発行され、その操作に関する情報を伝達するJSONファイルです。

サービス・メッシュ・リソースに対して次の操作を実行すると、Oracle Cloud Infrastructure Service Meshによってイベントが生成されます。

  • オブジェクトを作成します。
  • オブジェクトを更新します。
  • オブジェクトを新しいコンパートメントに移動します。
  • オブジェクトの削除

サービス・メッシュには次のオブジェクトが含まれます。

  • メッシュ
  • 仮想サービス
  • 仮想サービスのルート表
  • 仮想デプロイメント
  • 受信ゲートウェイ
  • Ingress Gatewayルート表
  • アクセス・ポリシー

メッシュ・イベント

メッシュを作成、更新、コンパートメントの変更または削除すると、サービス・メッシュによってイベントが作成されます。

メッシュが発行するイベント・タイプは次のとおりです:

フレンドリ名 イベント・タイプ
メッシュ作成開始
com.oraclecloud.servicemesh.createmesh.begin
メッシュ作成終了
com.oraclecloud.servicemesh.createmesh.end
メッシュ変更コンパートメント開始
com.oraclecloud.servicemesh.changemeshcompartment.begin
メッシュ変更コンパートメント終了
com.oraclecloud.servicemesh.changemeshcompartment.end
メッシュ削除の開始
com.oraclecloud.servicemesh.deletemesh.begin
メッシュ削除終了
com.oraclecloud.servicemesh.deletemesh.end
メッシュ更新の開始
com.oraclecloud.servicemesh.updatemesh.begin
メッシュ更新終了
com.oraclecloud.servicemesh.updatemesh.end

メッシュの作成例:

{
    "eventType": "com.oraclecloud.servicemesh.createmesh.end",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "servicemesh",
    "eventTime": "2022-03-04T10:36:06.133Z",
    "contentType": "application/json",
    "data": {
        "compartmentId": "ocid1.compartment.oc1..unique_ID",
        "compartmentName": "example_compartment",
        "resourceName": "example_resource",
        "resourceId": "ocid1.mesh.oc1.phx.unique_ID",
        "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
        "compartmentId": "ocid1.compartment.oc1.phx..unique_ID"
    }
}

仮想サービス・イベント

仮想サービスのコンパートメントを作成、更新、変更または削除すると、サービス・メッシュによってイベントが作成されます。

仮想サービスが発行するイベント・タイプは次のとおりです:

フレンドリ名 イベント・タイプ
仮想サービス作成開始
com.oraclecloud.servicemesh.createvirtualservice.begin
仮想サービス作成終了
com.oraclecloud.servicemesh.createvirtualservice.end
仮想サービス変更コンパートメントの開始
com.oraclecloud.servicemesh.changevirtualservicecompartment.begin
仮想サービス変更コンパートメントの終了
com.oraclecloud.servicemesh.changevirtualservicecompartment.end
仮想サービスの削除の開始
com.oraclecloud.servicemesh.deletevirtualservice.begin
仮想サービスの削除の終了
com.oraclecloud.servicemesh.deletevirtualservice.end
仮想サービス更新の開始
com.oraclecloud.servicemesh.updatevirtualservice.begin
仮想サービス更新終了
com.oraclecloud.servicemesh.updatevirtualservice.end

仮想サービス・コンパートメントの変更の例:

{
    "eventType": "com.oraclecloud.servicemesh.changevirtualservicecompartment.end",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "servicemesh",
    "eventTime": "2022-03-04T10:36:06.133Z",
    "contentType": "application/json",
    "data": {
        "compartmentId": "ocid1.compartment.oc1..unique_ID",
        "compartmentName": "example_compartment",
        "resourceName": "example_resource",
        "resourceId": "ocid1.meshvirtualservice.oc1.phx.unique_ID",
        "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
        "compartmentId": "ocid1.compartment.oc1.phx..unique_ID"
    }
}

仮想サービスのルートテーブルイベント

仮想サービス・ルート表のコンパートメントを作成、更新、変更または削除すると、サービス・メッシュによってイベントが作成されます。

仮想サービス・ルート表が発行するイベント・タイプは次のとおりです:

フレンドリ名 イベント・タイプ
仮想サービスのルート表の作成の開始
com.oraclecloud.servicemesh.createvirtualserviceroutetable.begin
仮想サービス・ルート表作成終了
com.oraclecloud.servicemesh.createvirtualserviceroutetable.end
仮想サービス・ルート表変更コンパートメントの開始
com.oraclecloud.servicemesh.changevirtualserviceroutetablecompartment.begin
仮想サービス・ルート表変更コンパートメント終了
com.oraclecloud.servicemesh.changevirtualserviceroutetablecompartment.end
仮想サービス・ルート表の削除の開始
com.oraclecloud.servicemesh.deletevirtualserviceroutetable.begin
仮想サービス・ルート表削除の終了
com.oraclecloud.servicemesh.deletevirtualserviceroutetable.end
仮想サービスのルート表更新の開始
com.oraclecloud.servicemesh.updatevirtualserviceroutetable.begin
仮想サービス・ルート表更新の終了
com.oraclecloud.servicemesh.updatevirtualserviceroutetable.end

仮想サービス・ルート表の削除の例:

{
    "eventType": "com.oraclecloud.servicemesh.deletevirtualserviceroutetable.end",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "servicemesh",
    "eventTime": "2022-03-04T10:36:06.133Z",
    "contentType": "application/json",
    "data": {
        "compartmentId": "ocid1.compartment.oc1..unique_ID",
        "compartmentName": "example_compartment",
        "resourceName": "example_resource",
        "resourceId": "ocid1.meshvirtualserviceroutetable.oc1.phx.unique_ID",
        "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
        "compartmentId": "ocid1.compartment.oc1.phx..unique_ID"
    }
}

仮想デプロイメント・イベント

仮想デプロイメントを作成、更新、コンパートメントの変更または削除すると、サービス・メッシュによってイベントが作成されます。

仮想デプロイメントが発行するイベント・タイプは次のとおりです:

フレンドリ名 イベント・タイプ
仮想デプロイメント作成の開始
com.oraclecloud.servicemesh.createvirtualdeployment.begin
仮想デプロイメント作成の終了
com.oraclecloud.servicemesh.createvirtualdeployment.end
仮想デプロイメント変更コンパートメント開始
com.oraclecloud.servicemesh.changevirtualdeploymentcompartment.begin
仮想デプロイメント変更コンパートメントの終了
com.oraclecloud.servicemesh.changevirtualdeploymentcompartment.end
仮想デプロイメント削除の開始
com.oraclecloud.servicemesh.deletevirtualdeployment.begin
仮想デプロイメント削除の終了
com.oraclecloud.servicemesh.deletevirtualdeployment.end
仮想デプロイメント更新の開始
com.oraclecloud.servicemesh.updatevirtualdeployment.begin
仮想デプロイメント更新の終了
com.oraclecloud.servicemesh.updatevirtualdeployment.end

仮想デプロイメントの更新の例:

{
    "eventType": "com.oraclecloud.servicemesh.updatevirtualdeployment.begin",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "servicemesh",
    "eventTime": "2022-03-04T10:36:06.133Z",
    "contentType": "application/json",
    "data": {
        "compartmentId": "ocid1.compartment.oc1..unique_ID",
        "compartmentName": "example_compartment",
        "resourceName": "example_resource",
        "resourceId": "ocid1.meshvirtualdeployment.oc1.phx.unique_ID",
        "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
        "compartmentId": "ocid1.compartment.oc1.phx..unique_ID"
    }
}

Ingress Gatewayイベント

イングレス・ゲートウェイを作成、更新、コンパートメントの変更または削除すると、サービス・メッシュによってイベントが作成されます。

イングレス・ゲートウェイが生成するイベント・タイプは次のとおりです:

フレンドリ名 イベント・タイプ
Ingress Gateway作成開始
com.oraclecloud.servicemesh.createingressgateway.begin
Ingress Gateway作成終了
com.oraclecloud.servicemesh.createingressgateway.end
イングレス・ゲートウェイ変更コンパートメント開始
com.oraclecloud.servicemesh.changeingressgatewaycompartment.begin
イングレス・ゲートウェイのコンパートメント変更の終了
com.oraclecloud.servicemesh.changeingressgatewaycompartment.end
イングレス・ゲートウェイ削除の開始
com.oraclecloud.servicemesh.deleteingressgateway.begin
イングレス・ゲートウェイ削除の終了
com.oraclecloud.servicemesh.deleteingressgateway.end
イングレス・ゲートウェイ更新の開始
com.oraclecloud.servicemesh.updateingressgateway.begin
イングレス・ゲートウェイ更新終了
com.oraclecloud.servicemesh.updateingressgateway.end

Ingress Gatewayの作成例:

{
    "eventType": "com.oraclecloud.servicemesh.createingressgateway.end",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "servicemesh",
    "eventTime": "2022-03-04T10:36:06.133Z",
    "contentType": "application/json",
    "data": {
        "compartmentId": "ocid1.compartment.oc1..unique_ID",
        "compartmentName": "example_compartment",
        "resourceName": "example_resource",
        "resourceId": "ocid1.meshingressgateway.oc1.phx.unique_ID",
        "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
        "compartmentId": "ocid1.compartment.oc1.phx..unique_ID"
    }
}

イングレス・ゲートウェイのルート表イベント

イングレス・ゲートウェイ・ルート表を作成、更新、コンパートメントの変更または削除すると、サービス・メッシュによってイベントが作成されます。

イングレス・ゲートウェイ・ルート表が発行するイベント・タイプは次のとおりです:

フレンドリ名 イベント・タイプ
Ingress Gatewayルート表作成開始
com.oraclecloud.servicemesh.createingressgatewayroutetable.begin
Ingress Gatewayルート表作成終了
com.oraclecloud.servicemesh.createingressgatewayroutetable.end
イングレス・ゲートウェイのルート表変更コンパートメント開始
com.oraclecloud.servicemesh.changeingressgatewayroutetablecompartment.begin
イングレス・ゲートウェイのルート表変更コンパートメント終了
com.oraclecloud.servicemesh.changeingressgatewayroutetablecompartment.end
受信ゲートウェイのルート表の削除の開始
com.oraclecloud.servicemesh.deleteingressgatewayroutetable.begin
Ingress Gatewayルート表の削除終了
com.oraclecloud.servicemesh.deleteingressgatewayroutetable.end
Ingress Gatewayルート表更新の開始
com.oraclecloud.servicemesh.updateingressgatewayroutetable.begin
Ingress Gatewayルート表更新終了
com.oraclecloud.servicemesh.updateingressgatewayroutetable.end

イングレス・ゲートウェイ・ルート表の削除の例:

{
    "eventType": "com.oraclecloud.servicemesh.deleteingressgatewayroutetable.end",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "servicemesh",
    "eventTime": "2022-03-04T10:36:06.133Z",
    "contentType": "application/json",
    "data": {
        "compartmentId": "ocid1.compartment.oc1..unique_ID",
        "compartmentName": "example_compartment",
        "resourceName": "example_resource",
        "resourceId": "ocid1.meshingressgatewayroutetable.oc1.phx.unique_ID",
        "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
        "compartmentId": "ocid1.compartment.oc1.phx..unique_ID"
    }
}

アクセス・ポリシー・イベント

アクセス・ポリシーを作成、更新、コンパートメントの変更または削除すると、サービス・メッシュによってイベントが作成されます。

アクセス・ポリシーが発行するイベント・タイプは次のとおりです:

フレンドリ名 イベント・タイプ
アクセス・ポリシー作成の開始
com.oraclecloud.servicemesh.createaccesspolicy.begin
アクセス・ポリシー作成終了
com.oraclecloud.servicemesh.createaccesspolicy.end
アクセス・ポリシー変更コンパートメントの開始
com.oraclecloud.servicemesh.changeaccesspolicycompartment.begin
アクセス・ポリシー変更コンパートメントの終了
com.oraclecloud.servicemesh.changeaccesspolicycompartment.end
アクセス・ポリシー削除の開始
com.oraclecloud.servicemesh.deleteaccesspolicy.begin
アクセス・ポリシー削除の終了
com.oraclecloud.servicemesh.deleteaccesspolicy.end
アクセス・ポリシー更新開始
com.oraclecloud.servicemesh.updateaccesspolicy.begin
アクセス・ポリシー更新終了
com.oraclecloud.servicemesh.updateaccesspolicy.end

アクセス・ポリシーの更新の例:

{
    "eventType": "com.oraclecloud.servicemesh.updateaccesspolicy.end",
    "cloudEventsVersion": "0.1",
    "eventTypeVersion": "2.0",
    "source": "servicemesh",
    "eventTime": "2022-03-04T10:36:06.133Z",
    "contentType": "application/json",
    "data": {
        "compartmentId": "ocid1.compartment.oc1..unique_ID",
        "compartmentName": "example_compartment",
        "resourceName": "example_resource",
        "resourceId": "ocid1.meshaccesspolicy.oc1.phx.unique_ID",
        "availabilityDomain": "availability_domain"
    },
    "eventID": "unique_ID",
    "extensions": {
        "compartmentId": "ocid1.compartment.oc1.phx..unique_ID"
    }
}

参照

イベントが発生したときに特定のアクションをトリガーするルールを定義できます。たとえば、仮想サービス・ルート表が更新されたときにSlackメッセージを送信するように通知サービスを設定できます。

詳細は、次のURLを参照してください。