You can create event monitors that track publications and subscriptions based on their event status, and instigate actions when an event is in a defined status.
You create monitoring rules that define which entities to monitor, what are the event statuses for which to take action, and what actions Cloud Integration Hub takes when an event reaches the defined status.
You can create rules that monitor publication and subscription events, and perform actions on events that are in a defined status. For example, you can create rules to perform the following tasks:
•Disable publications that have events with an Error status.
•Send an email to the Cloud Integration Hub administrator when a subscription event is in an Error status.
Monitoring Rules
A monitoring rule defines which assets to monitor, the event statuses that trigger actions, and the actions to take when an event is in a defined status.
When you create a monitoring rule, you define the following elements:
•Asset or assets to which the rule applies. A rule can apply to a single publication, to multiple publications, or to all current and future publications, or to a single subscription, to multiple subscriptions, or to all current and future subscriptions
•Event status or statuses to which the rule applies. Cloud Integration Hub applies the rule only to events that are in a final state.
•Rule action or actions. You can select one or more of the following actions:
- Send email notification. You define the user or users to which Cloud Integration Hub sends an email notification when the rule conditions are true.
- Pause subscriptions or disable publications and subscriptions that are in the status or statuses to which the rule applies.
Managing Monitoring Rules
Create, edit, view, disable, enable, and delete monitoring rules.
Creating a monitoring rule
Use the Navigator to create monitoring rules.
1In the Navigator, click New > Monitoring Rule. Then click Create.
The New Monitoring Rule page appears.
2Enter the rule name. Optionally, enter a description for the rule.
3Select the location to save the rule.
4Choose the rule mode, enabled or disabled. A disabled rule does not perform the defined actions.
5 Select the type of asset that the rule affects, publication or subscription, and then select the asset or assets to which the apply the rule. You must apply the rule to at least one publication or one subscription.
- To apply the rule to all publications or to all subscriptions, including current publications or subscriptions and publications or subscriptions that are added to Cloud Integration Hub after you create the rule, select Apply to all.
- To select a single publication or a single subscription to which to apply the rule, select the check box to the left of the publication name or the subscription name.
- To select multiple publications or multiple subscriptions to which to apply the rule, select multiple check boxes to the left of the publication names or the subscription names.
6 Select the event statuses to monitor. You must select at least one status.
7Select one or both of the following rule actions:
Send email notification
Send email notifications when a publication or a subscription is in one of the affected statuses. You can send notifications to existing Cloud Integration Hub users or to email addresses that you specify. You can define up to 30 email recipients.
Perform the following steps for each user:
aClick Add to the right of Send email notification.
bSelect the name of an existing user or select a non-existing user from the User Name list and then enter the email address in the Email field.
Cloud Integration Hub sends email notifications to the recipients that you define here when events of any of the affected publications or subscriptions are in any of the affected statuses.
Disable publications and subscriptions that are in Rejected statuses
Select Disable publications and subscriptions.
Cloud Integration Hub disables the affected publications or subscriptions when their events are in any of the affected statuses. A disabled publication or subscription does not run according to schedule or by an external API. You can only run a disabled publication or subscription from the Explore page.
8Click Save.
Editing a Monitoring Rule
Use the Explore page to edit monitoring rules.
1In the Navigator, click Explore. Click the All Assets list and then select Monitors > Monitoring Rules.
The Explore page shows all existing monitoring rules.
2Click the name of the monitoring rule to edit.
The monitoring rule page shows.
3Edit the monitoring rule and then click Save.
Disabling and enabling a monitoring rule
Use the Explore page to disable and enable a monitoring rule.
1In the Navigator, click Explore. Click the All Assets list and then select Monitors > Monitoring Rules.
The Explore page shows all existing monitoring rules.
2In the row that contains the rule, click Actions and select one of the following actions:
- To disable a rule select Disable. A disabled rule does not perform the defined actions.
- To enable a disabled rule select Enable.
Monitoring Rule Properties
Monitoring rule properties include general information about the monitoring rule, the asset or assets to which the rule applies, the event statuses that the rule monitors, and the rule action or actions.
The following image shows a sample monitoring rule page:
The monitoring rule page includes the following properties:
Rule Name
Name of the monitoring rule. The name can contain up to 60 characters and can contain special characters.
Description
Description of the monitoring rule. The description can contain up to 255 characters.
Mode
Monitoring rule mode, enabled or disabled. A disabled rule does not perform the defined actions.
Content
The conditions of the monitoring rule.
Affected Assets
The publications or subscriptions that the rule applies to.
Affected Statuses
The statuses of the affected assets that the rule applies to.
Actions
The actions that the rule performs when any of the affected assets are in any of the affected statuses.