[music]
Here I am in the Oracle Service Bus console.
I create a session to be able to add changes on my project.
First I add an Alert Destination to capture a list of recipients
that can receive alert notifications from Oracle Service Bus.
I add my email address to the mail recipient list.
A mail session needs to be selected to send the notifications.
I set the 'From Name' and 'From Address'
to identify the email alerts in my inbox.
The purpose of Service Level Agreement alerts is to inform
the operations team of issues relating to the health of Service Bus services
or the quality of service provided.
I create a message alert to send a notification
when the message total reaches a specific top limit.
The summary represent the subject of the email notification.
I select the alert destination
and change the severity.
If the message count is greater than one
the Service Level Agreement alert is triggered.
Pipeline alerts are triggered based on message context.
Unlike Service Level Agreement alerts,
notifications generated by a pipeline alert action
are intended for business purposes or to report errors.
Here I'm creating an 'If Then' action that includes a condition
to trigger the pipeline alert.
The condition defines that when the request includes Tom as the person name
some actions are executed inside of the 'If Then' block.
I add an 'Alert' action to send a notification to the alert destination.
This notification includes a custom message
built with an XQuery function to concatenate Strings.
The alert summary represent the email subject of the notification.
An 'Else' condition is created to include a log action
in case the 'If Then' condition is not fulfilled.
The log message indicates the name of the person who sent the request.
I save all of the changes completed in the message flow.
The changes are activated with the appropriate description.
Here I login to the Fusion Middleware Control console.
I navigate to my application home,
and select the proxy service to test.
I execute a couple of requests to trigger the Service Level Agreement alert.
One of these requests include Tom as the person name,
this triggers the pipeline alert.
I navigate to the Service Bus dashboard
where I can filter the alerts by type.
I confirm that the pipeline alert was triggered.
I verify the Service Level Agreement alert
is displayed in the dashboard.
The alert detail is displayed when I select the alert name.
I confirm the log action was executed
with the proper log message
in the WebLogic Server Console.
The email of the alert is logged in the console as well.
I verify that both alerts
were sent to my email inbox.
The emails contain the same detail information
displayed in the dashboard.
I can purge the alerts by searching them in the alert history.
I search the alerts by type
and purge all of them at the same time.
I can delete only a specific alert
if I don't want to remove all of them.
And that is how to configure alerts in Oracle Service Bus.
Thank you for watching.
[music]