Service Mesh Events
Oracle Cloud Infrastructure Events are JSON files that are emitted with some service operations and carry information about that operation.
Oracle Cloud Infrastructure Service Mesh emits events when you perform on of the following operations on a service mesh resource:
- Create an object.
- Update an object.
- Move an object to a new compartment.
- Delete an object
Service Mesh includes the following objects:
- Meshes
- Virtual Services
- Virtual Service Route Tables
- Virtual Deployments
- Ingress Gateways
- Ingress Gateway Route Tables
- Access Policies
Mesh Events
When you create, update, change compartment for, or delete a mesh, Service Mesh creates an event.
Here are the event types that meshes emit:
Friendly Name | Event Type |
---|---|
Mesh Create Begin |
|
Mesh Create End |
|
Mesh Change Compartment Begin |
|
Mesh Change Compartment End |
|
Mesh Delete Begin |
|
Mesh Delete End |
|
Mesh Update Begin |
|
Mesh Update End |
|
Example for Creating a Mesh:
{
"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"
}
}
Virtual Service Events
When you create, update, change compartment for, or delete a virtual service, Service Mesh creates an event.
Here are the event types that virtual services emit:
Friendly Name | Event Type |
---|---|
Virtual Service Create Begin |
|
Virtual Service Create End |
|
Virtual Service Change Compartment Begin |
|
Virtual Service Change Compartment End |
|
Virtual Service Delete Begin |
|
Virtual Service Delete End |
|
Virtual Service Update Begin |
|
Virtual Service Update End |
|
Example for Changing a Virtual Service Compartment:
{
"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"
}
}
Virtual Service Route Table Events
When you create, update, change compartment for, or delete a virtual service route table, Service Mesh creates an event.
Here are the event types that virtual service route tables emit:
Friendly Name | Event Type |
---|---|
Virtual Service Route Table Create Begin |
|
Virtual Service Route Table Create End |
|
Virtual Service Route Table Change Compartment Begin |
|
Virtual Service Route Table Change Compartment End |
|
Virtual Service Route Table Delete Begin |
|
Virtual Service Route Table Delete End |
|
Virtual Service Route Table Update Begin |
|
Virtual Service Route Table Update End |
|
Example for Deleting a Virtual Service Route Table:
{
"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"
}
}
Virtual Deployment Events
When you create, update, change compartment for, or delete a virtual deployment, Service Mesh creates an event.
Here are the event types that virtual deployments emit:
Friendly Name | Event Type |
---|---|
Virtual Deployment Create Begin |
|
Virtual Deployment Create End |
|
Virtual Deployment Change Compartment Begin |
|
Virtual Deployment Change Compartment End |
|
Virtual Deployment Delete Begin |
|
Virtual Deployment Delete End |
|
Virtual Deployment Update Begin |
|
Virtual Deployment Update End |
|
Example for Updating a Virtual Deployment:
{
"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 Events
When you create, update, change compartment for, or delete an ingress gateway, Service Mesh creates an event.
Here are the event types that ingress gateways emit:
Friendly Name | Event Type |
---|---|
Ingress Gateway Create Begin |
|
Ingress Gateway Create End |
|
Ingress Gateway Change Compartment Begin |
|
Ingress Gateway Change Compartment End |
|
Ingress Gateway Delete Begin |
|
Ingress Gateway Delete End |
|
Ingress Gateway Update Begin |
|
Ingress Gateway Update End |
|
Example for Creating an 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 Route Table Events
When you create, update, change compartment for, or delete an ingress gateway route table, Service Mesh creates an event.
Here are the event types that ingress gateway route tables emit:
Friendly Name | Event Type |
---|---|
Ingress Gateway Route Table Create Begin |
|
Ingress Gateway Route Table Create End |
|
Ingress Gateway Route Table Change Compartment Begin |
|
Ingress Gateway Route Table Change Compartment End |
|
Ingress Gateway Route Table Delete Begin |
|
Ingress Gateway Route Table Delete End |
|
Ingress Gateway Route Table Update Begin |
|
Ingress Gateway Route Table Update End |
|
Example for Deleting an Ingress Gateway Route Table:
{
"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"
}
}
Access Policy Events
When you create, update, change compartment for, or delete an access policy, Service Mesh creates an event.
Here are the event types that access policies emit:
Friendly Name | Event Type |
---|---|
Access Policy Create Begin |
|
Access Policy Create End |
|
Access Policy Change Compartment Begin |
|
Access Policy Change Compartment End |
|
Access Policy Delete Begin |
|
Access Policy Delete End |
|
Access Policy Update Begin |
|
Access Policy Update End |
|
Example for Updating an Access Policy:
{
"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"
}
}
References
You can define rules that trigger a specific action when an event occurs. For example, you can set up the Notifications service to send you a Slack message when a virtual service route table is updated.
For more information, refer to: