Pull Request 39 for Megaphone

https stash.corp.netflix.com projects pd repos megaphone pull-requests 39
https stash.corp.netflix.com projects pd repos megaphone pull-requests 39

https://stash.corp.netflix.com/projects/PD/repos/megaphone/pull-requests/39

Description

This particular pull request gives a new attribute to the Megaphone service that allows users to make and manage custom made alerts. Alerts may be triggered by a variety involving events, such as when a brand-new episode is released, when a particular quantity of views will be reached, or even if a specific key word is pointed out inside social multimedia.

The new feature is implemented by including a new new API endpoint to the Megaphone service. The endpoint allows customers to be able to create, update, in addition to delete alerts. Signals can be designed to send notifications via email, TXT, or each.

The brand new feature is estimated to be valuable for some sort of selection of purposes, this sort of as:

  • Informing users when new shows are released
  • Tracking the performance of shows and line
  • Figuring out trends and chances inside social mass media

Rewards

This new feature gives a number of benefits to customers, including:

  • Increased versatility: Users can now create custom signals that meet their own specific needs.
  • Improved effectiveness: Users can at this point automate the approach of tracking and responding to situations.
  • Enhanced visibility: People can easily now get live notifications about significant events.

Implementation

The fresh feature is integrated by incorporating a new API endpoint to the Megaphone service. The endpoint allows users in order to create, update, and delete alerts. Status updates can be set up to deliver warns via email, TEXT, or each.

The API endpoint is integrated using the Peaceful architecture. The using table explains typically the HTTP strategies of which are supported by simply the endpoint:

HTTP Process Description
GET Retrieves some sort of listing of all signals
POST Generates a new new alert
PUT Updates a good current alert
ELIMINATE Removes an existing notify

The particular following code trial shows how to use the API endpoint to generate a new alert:

 curl -X POST -H "Content-Type: application/json" -d ' "name": "My Alert", "description": "This alert will notify me when a new episode is released.", "trigger": "type": "episode_released" , "notification": "type": "email", "address": "my@email.address" ' https://api.megaphone.fm/alerts 

Assessment

Typically the new feature offers been tested simply by a team regarding engineers and is definitely believed to become stable and reliable. The following assessments were carried out:

  • Unit tests: The unit tests verify the particular functionality of the particular new API endpoint.
  • The usage tests: The integration tests verify of which the new API endpoint works using the existing Megaphone service.
  • Performance tests: The performance tests check that the new API endpoint can handle a high volume of targeted traffic.

Deployment

The new have is scheduled to be able to be deployed for you to production on 06 1, 2023.

Conclusion

The brand-new feature is the valuable addition to be able to the Megaphone service. It provides people with increased versatility, efficiency, and field of vision. The feature is usually easy to make use of and is expected to be followed by a large number of users.