[OCI] Working with Event Service in OCI

 


In this post we will discuss about Events Services in Oracle Cloud Infrastructure (OCI).
  

Events Service 

The Event service enables you to create rules to respond to state changes in your cloud resources. It acts like a watchful guardian for your cloud resources. It keeps an eye on everything that's happening in your cloud environment and lets you know whenever something important occurs.

When something significant happens, like starting or stopping an instance, the Events service sends you a message to let you know about it. 

  • Rules -  Rules act as the instructions you give to the system regarding what events to watch for and what actions to take when those events occur. 
  • Event Conditions -Rules define the conditions or criteria that trigger actions. These conditions can be based on various factors like resource lifecycle events (e.g., instance starting or stopping), changes in resource state, or custom events generated by your applications. 
  • Actions - If an event matches the conditions specified in a rule, the Events service executes the associated actions. These actions could include sending notifications via the Notifications service, triggering functions in Oracle Functions, invoking APIs, or updating resource configurations.

So, let's work with Events service in OCI. Follow the below steps to setup Events Service

 

  •  Login to OCI Console. Navigate to Navigation Menu -> Observability & Management -> Rules 



  • Choose the compartment and then click on Create Rule button


  • Enter the Name and Description of the rule

  • In this example we will catch/monitor the events whenever any compute instance  is started or stopped in OCI, so in Rule Conditions, choose the Service Name as Compute


  • In Event Type, choose the Instance Action - Begin and Instance Action - End


  • In Actions section, choose Action Type as Notification


  •   Then choose the compartment and select the Topic that we created in our last post (click here here to see) and then click on Create Rule Button


  • So, rule will be created and subscriber will receive email notifications whenever any compute instance is started or stopped in OCI 

  • When instance starts stopping you will receive Begin Event:




  • And, once instance is fully stopped you will receive End Event







  • Make sure that both the event and compute instance must be in same compartment. Below are the notification details:

  • Instance Action - Begin 

  • Instance Action - End





Thanks!

Comments

All Categories

Call Fusion BIP Report2 Change Password1 Code Combinations2 Compute Instance2 CTE1 Custom Images1 Customer1 Data Aggregation2 Database5 Date Conversion1 DB Adapter2 Decryption1 Development1 EBS4 Encryption1 ESS Jobs3 Examine1 FBDI3 Fusion APIs1 Fusion BIP7 GIT2 GL3 GL Journals1 GL_DAILY_CONVERSION_TYPES1 GL_DAILY_RATES1 ICS1 Identity Domain1 Integrations1 Java1 Journal Import1 Keys1 Legal Entity1 LookupTypeLOV1 LOV1 LOVs1 MultiPartAPIs1 Networking1 NVL2 NVL in OIC2 OCI13 OCI Billing1 OCI Compute6 OCI Cost Management1 OCI Events Service1 OCI Free Tier3 oci networking1 OCI Notifification Service1 OCI Security3 OIC4 OIC Mapper2 Oracle26 Oracle ADF17 Oracle APEX1 Oracle Apps59 Oracle Apps R126 Oracle ATP1 Oracle BIP8 Oracle Cloud13 Oracle Cloud Free Tier1 Oracle cloud Infrastructure10 Oracle Cloud Security2 Oracle Cloud VM1 Oracle DB4 oracle ebs5 Oracle ERP4 Oracle ERP Adapter2 Oracle ERP Cloud7 Oracle financials2 Oracle Forms1 Oracle Fusion57 Oracle Fusion BIP4 Oracle Fusion ERP17 Oracle Fusion Financials18 Oracle Integration Cloud3 Oracle OAF17 Oracle OCI14 Oracle OIC22 Oracle SOA 12c10 Oracle SQL17 Oracle VBCS1 Oracle VBS2 Oracle Visual Builder Cloud Service1 Oracle Visual Builder Studio2 Oracle Workflow Notifications1 OracleCloudTutorial1 Others10 Payables2 Payables Import1 Properties1 R121 Register BIP as ESS Job1 Reset Password1 Responsibility1 REST4 Security List1 Site Map1 SOAP2 SOAP API2 SOAP UI3 SQL16 SQL Functions3 SQL Queries14 SQL Query8 SQL Tips3 SSH1 TCA1 Value Sets1 VBCS1 vcn1 Virtual Machine2 Virtual Machines1 XML1 XSLT1
Show more