Skip to content

Add OCI Events and Notifications Support (oci.events, oci.ons resources) #6552

@syrull

Description

@syrull

Summary

Add support for Oracle Cloud Infrastructure Events and Notifications services to enable monitoring of event rules and notification configurations.

OCI API Reference

Events Service

Notifications Service (ONS)

Proposed MQL Resources

oci.events

Field Type Description
rules []oci.events.rule Event rules in the tenancy

oci.events.rule

Field Type Description
id string Rule OCID
name string Display name
description string Rule description
compartmentID string Compartment OCID
condition string Event matching condition (JSON)
isEnabled bool Whether rule is enabled
state string Lifecycle state
actions []dict Actions to perform when matched
created time Creation time

oci.ons

Field Type Description
topics []oci.ons.topic Notification topics

oci.ons.topic

Field Type Description
id string Topic OCID
name string Topic name
description string Topic description
compartmentID string Compartment OCID
state string Lifecycle state
created time Creation time
subscriptions []oci.ons.subscription Topic subscriptions

oci.ons.subscription

Field Type Description
id string Subscription OCID
topicId string Topic OCID
protocol string Delivery protocol (EMAIL, HTTPS, SLACK, etc.)
endpoint string Delivery endpoint
state string Lifecycle state
created time Creation time

Example MQL Queries

# Check notification topic exists with subscriptions
oci.ons.topics.any(
  state == "ACTIVE" && 
  subscriptions.length > 0
)

# Check event rule exists for IAM changes
oci.events.rules.any(
  isEnabled == true &&
  condition.contains("com.oraclecloud.identitycontrolplane")
)

# List all enabled event rules
oci.events.rules.where(isEnabled == true)

Use Cases

  • Verify notification topics are configured with active subscriptions
  • Audit event rules for security-relevant events (IAM changes, VCN changes, etc.)
  • Ensure monitoring is enabled for critical infrastructure changes
  • Validate notification delivery endpoints are properly configured

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions