Skip to content

Add OCI Notifications to ntfy relay function sample #72

Description

@Ryan02I5

Summary

I would like to contribute a minimal Python sample that relays OCI Notifications messages to an ntfy topic by using an OCI Function.

Why this sample is useful

The sample demonstrates a practical Oracle-native path:

OCI Alarm -> OCI Notifications Topic -> OCI Function -> ntfy topic

It keeps the alert state machine and deduplication in OCI Monitoring / Notifications, while using the function only as a small protocol adapter to publish to ntfy.

This is especially useful when users want to keep ntfy clients on a random topic with anonymous read access, where a direct CUSTOM_HTTPS notification subscription is not a good fit.

Proposed sample shape

  • language: Python
  • runtime: Oracle Functions / FDK
  • reads the ntfy topic and publish token from OCI Vault via Resource Principal
  • publishes a formatted message to the ntfy HTTP publish API
  • includes a minimal README, func.py, requirements.txt, func.yaml, and Dockerfile

Validation

I already extracted the implementation into a standalone public sample repo:

If this direction fits the repository, I can open a PR in the samples/ layout used by this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions