Content Check
Content Check is a part of Synthetic Monitoring that allows you to define specific checks that look for particular content or elements on a webpage. This feature is designed to verify that a website is functioning perfectly or that a specific feature is available on the website.
Enable Content Check
The Content Check feature can be enabled while adding an API to the collection or enable it for an API already present in the collection. Click here to learn how to create an collection within sfPoller and to add an API to the collection.
Follow the below steps to enable the Content Check feature while adding an API to the collection.
In the Add API window, select the
Content Check
option.Select a
Search type
: Regex or Exact Match.Select a
Condition
: Contains or Does not contain.In the
Search String
option, enter the string that need to be checked.In the
#Retries before failure
option, specify the number of checks that need to performed before it results as false.Click the
Save
button.
Follow the below steps to enable the Content Check feature for an API already present in the collection.
To enable the Content Check feature for an API already present in the collection, navigate to the Collection > API.
Click the
Edit
option in the Action column of the API.In the Edit API window, select the
Content Check
option and add the following details:Search type
,Condition
,Search String
, and#Retries before failure
.Click the
Save
button.
View API Metrics
Follow the below steps to view API metrics.
Navigate to the Application's dashboard within the SnappyFlow UI.
In the Metrics section, you can view the metrics collected from the API. Search Content summary box is one among these metrics.
Search Content summary box will display the result of the Content Check.
If the result is False, then an alert will be generated to notify the result.
Refer to the Alerts Document to learn about Alerts feature.