cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can an Angular Application be configured as Application?

Hi, 

Currently, our Angular application is configured as "User Experience", We are facing the below issues:

1. We want to trigger an alert when there is a specific HTTP code in the response ex: 500, . While configuring health rules, there is no option to select a specific error code.

2. Anomalies are not detected even through enabled the option to overcome these issues

 

Can we configure our application as "Application" so that will give more options to configure the health rules? 

21 REPLIES 21

 

You can use Analytics Events API to run the analytics query through the REST CALL.

 

Note that you need to create API keys and add permissions for Browser Requests.

 

You can see some examples of query in the document below.

 

You need to calculate the start time for last 7 days/30 days, but a query like below would work for you ADQL query.
 

curl -X POST "https://<events_service_endpoint>/events/query/?start=<ISO 8601 or Unix time for 7 days ago>&limit=1000" -H"X-Events-API-AccountName:<global account name>" -H"X-Events-API-Key:<Analytics API key.>" -H"Accept: application/vnd.appd.events+json;v=2" -H"Content-type: application/vnd.appd.events+json;v=2" -d "[{\"query\": \"SELECT * FROM browser_records WHERE ajaxerror like '*status*5*' AND appkey = 'XXXX' And pagename='api.xxx.com/ship/v3'\"}]"

 

* The Analytics Query API can return a maximum of 10,000 results. If you would like to retrieve and paginate over the data, you can use the scroll mode

 

Best Regards,
Hiroki

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Hello @Arjunasetty.Murahari,

 

Do you have any follow-up questions for @Hiroki.Ito? If so, please keep the conversation going. If not, please accept one of Hiroki's replies as the Accepted Solution so the community knows this question has an answer.

 


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.