Forum Discussion

Joshua_Knorr's avatar
7 years ago

Creating EventSource from REST API

There currently doesn't appear to be a way to create an eventsource through the REST API.  This functionality would be very useful as part of an CI/CD pipeline.

  • Sarah_Terry's avatar
    Sarah_Terry
    Icon for Product Manager rankProduct Manager

    Thanks for posting @Joshua Knorr! Can you explain more about your use case for creating EventSources as a part of a CI/CD pipeline?

  • It's part of a larger Infrastructure as Code philosophy.  As part of developing a service, the relevant monitoring conditions may change/be expanded upon.  Being able to roll out custom EventSources as part of a deploy helps keep everything in sync (i.e. when you deploy a version that has new error messages, you also deploy monitors for those error messages).