Discussion Feed
10-24-2017
05:59 AM
Hi,
Can you go through the below link and let us know if it helps.
https://stackoverflow.com/questions/15089000/how-can-pass-multiple-parameters-in-nsurl-string-in-ios
Thanks,
Yogesh
... View more
10-13-2017
04:27 AM
Hi,
(curl -i -X POST --user janice_***@hsbccmbtest:janice***** https://hsbccmbtest.saas.appdynamics.com/controller/rest/applications/HSBCNET_SDE4/events?severity=INFO&summary=test1&eventtype=CUSTOM&customeventtype=mycustomevent&propertynames=key1&propertynames=key2&propertyvalues=value1&propertyvalues=value2)
I created the rest api, and added a summary, but always prompt (HTTP / 1.1 400 Event summary is not specified) Urgent need help!!!
MacBook-Air: curl -i -X POST --user janice_****@hsbccmbtest:janice**** https://hsbccmbtest.saas.appdynamics.com/controller/rest/applications/HSBCNET_SDE4/events?severity=INFO&summary=test1&eventtype=CUSTOM&customeventtype=mycustomevent&propertynames=key1&propertynames=key2&propertyvalues=value1&propertyvalues=value2
[1] 21400
[2] 21401
[3] 21402
[4] 21403
[5] 21404
[6] 21405
[7] 21406
[2] Done summary=test1
[3] Done eventtype=CUSTOM
[4] Done customeventtype=mycustomevent
[5] Done propertynames=key1
[6] Done propertynames=key2
[7]+ Done propertyvalues=value1
MacBook-Air:~$ HTTP/1.1 400 Event summary is not specified
Server: AppDynamics
Set-Cookie: JSESSIONID=5787c0b8d11cad563910c5ad7f95; Path=/controller; HttpOnly;Secure
Content-Language:
Content-Type: text/html
Date: Fri, 13 Oct 2017 11:22:18 GMT
X-Varnish: 1574234588
Age: 0
Via: 1.1 varnish
Connection: keep-alive
Set-Cookie: visid_incap_962359=L6IeWrZjT7ufJ+z9JkcKgumh4FkAAAAAQUIPAAAAAACm9kb7FVYITgQ8DVJaxHEn; expires=Sat, 13 Oct 2018 09:02:22 GMT; path=/; Domain=.saas.appdynamics.com
Set-Cookie: nlbi_962359=/HIqLgwl1E6wRYlbCyMyLAAAAACgFjnnqkhZLSzVY6/37FSe; path=/; Domain=.saas.appdynamics.com
Set-Cookie: incap_ses_551_962359=PW4dPIl9wGc1XZ0TEIylB+qh4FkAAAAAkATU8Omo5axKrIgB0x5WRg==; path=/; Domain=.saas.appdynamics.com
X-Iinfo: 6-17310640-17310686 NNNN CT(55 205 0) RT(1507893737136 783) q(0 0 2 0) r(3 3) U6
X-CDN: Incapsula
Transfer-Encoding: chunked
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>AppDynamics - Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - Event summary is not specified</h1><hr/><p><b>type</b> Status report</p><p><b>message</b>Event summary is not specified</p><p><b>description</b>The request sent by the client was syntactically incorrect.</p><hr/><h3>AppDynamics</h3><script type="text/javascript">
//<![CDATA[
(function() {
var _analytics_scr = document.createElement('script');
_analytics_scr.type = 'text/javascript'; _analytics_scr.async = true; _analytics_scr.src='/_Incapsula_Resource?SWJIYLWA=719d34d31c8e3a6e6fffd425f7e032f3&ns=1&cb=559458558';
var _analytics_elem = document.getElementsByTagName('script')[0]; _analytics_elem.parentNode.insertBefore(_analytics_scr, _analytics_elem);
})();
// ]]>
</script></body></html>
... View more
10-12-2017
08:16 PM
Hi,
I customize the event according to the document,
Create a Custom Event
You can create custom events to be reported in the AppDynamics event viewer and in the events panels on the AppDynamics dashboards. See Monitor Events to learn how to filter on your custom events so that you can find them. Then you can create alerts triggered by these events as you do for AppDynamics standard events.
You should receive the event ID after successful invocation of the request.
URI
POST /controller/rest/applications/application_id/events
Input parameters
I created a post request based on the document (
curl -X POST --user janice_****@hsbccmbtest:janice****https://hsbccmbtest.saas.appdynamics.com/controller/rest/applications/HSBCNET_SDE4/events?severity=INFO&summary=test1&eventtype=CUSTOM&customeventtype=mycustomevent&propertynames=key1&propertyvalues=value1&propertyvalues=value
)
Run on the terminal , Always prompts HTTP / 1.1 400 Event summary is not specified
(
curl -i -X POST --user janice_wang@hsbccmbtest:janiceWang1 https://hsbccmbtest.saas.appdynamics.com/controller/rest/applications/HSBCNET_SDE4/events?severity=INFO&summary=test1&eventtype=CUSTOM&customeventtype=mycustomevent&propertynames=key1&propertynames=key2&propertyvalues=value1&propertyvalues=value2
[1] 11428
[2] 11429
[3] 11430
[4] 11431
[5] 11432
[6] 11433
[7] 11434
[2] Done summary=test1
[3] Done eventtype=CUSTOM
[4] Done customeventtype=mycustomevent
[5] Done propertynames=key1
[6]- Done propertynames=key2
[7]+ Done propertyvalues=value1
MacBook-Air:~ h$ HTTP/1.1 400 Event summary is not specified
Server: AppDynamics
Set-Cookie: JSESSIONID=3a55b83eece7144710e3795baae9; Path=/controller; HttpOnly;Secure
Content-Language:
Content-Type: text/html
Date: Fri, 13 Oct 2017 02:52:04 GMT
X-Varnish: 1574221971
Age: 0
Via: 1.1 varnish
Connection: keep-alive
Set-Cookie: visid_incap_962359=UJiixdR9QJ+R8G2a8UjDAlQq4FkAAAAAQUIPAAAAAACinpDeYOaZjjor3TsDCmOJ; expires=Fri, 12 Oct 2018 07:59:18 GMT; path=/; Domain=.saas.appdynamics.com
Set-Cookie: nlbi_962359=WCcKQpDvG2RgvM7NCyMyLAAAAACPojL7pEZnrMVzXO+HxSBQ; path=/; Domain=.saas.appdynamics.com
Set-Cookie: incap_ses_628_962359=cL02JzNTO1XGFTdhFxu3CFQq4FkAAAAA6IR3yu9+35OVzYCSjA/7SA==; path=/; Domain=.saas.appdynamics.com
X-Iinfo: 8-93532647-93532677 NNNN CT(0 0 0) RT(1507863124187 237) q(0 0 0 0) r(2 2) U6
X-CDN: Incapsula
Transfer-Encoding: chunked
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>AppDynamics - Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - Event summary is not specified</h1><hr/><p><b>type</b> Status report</p><p><b>message</b>Event summary is not specified</p><p><b>description</b>The request sent by the client was syntactically incorrect.</p><hr/><h3>AppDynamics</h3><script type="text/javascript">
//<![CDATA[
(function() {
var _analytics_scr = document.createElement('script');
_analytics_scr.type = 'text/javascript'; _analytics_scr.async = true; _analytics_scr.src='/_Incapsula_Resource?SWJIYLWA=719d34d31c8e3a6e6fffd425f7e032f3&ns=1&cb=53430638';
var _analytics_elem = document.getElementsByTagName('script')[0]; _analytics_elem.parentNode.insertBefore(_analytics_scr, _analytics_elem);
})();
// ]]>
)
How can i solve it?
... View more
Latest Activity
- Got a Kudo for How to send a custom event in the code to the APM, receive a custom event automatically send email ?. 06-24-2020 04:46 AM
- Posted Re: How to create mobile apps Custom Event alert and respond send eamil. on Controller (SaaS, On Premise). 10-22-2017 07:37 PM
- Posted Re: How to create mobile apps Custom Event alert and respond send eamil. on Controller (SaaS, On Premise). 10-22-2017 07:35 PM
- Posted Re: How to create mobile apps Custom Event alert and respond send eamil. on Controller (SaaS, On Premise). 10-17-2017 12:13 AM
- Posted Re: How to create mobile apps Custom Event alert and respond send eamil. on Controller (SaaS, On Premise). 10-15-2017 08:10 PM
- Posted Re: How to send the rest api in the ios app project? on Controller (SaaS, On Premise). 10-13-2017 04:27 AM
- Posted How to send the rest api in the ios app project? on Controller (SaaS, On Premise). 10-13-2017 02:53 AM
- Posted Re: How to send a custom event in the code to the APM, receive a custom event automatically send ema on Java (Java Agent, Installation, JVM, and Controller Installation). 10-12-2017 08:16 PM
- Posted Re: How to create mobile apps Custom Event alert and respond send eamil. on Controller (SaaS, On Premise). 10-12-2017 07:13 PM
- Posted How to send a custom event in the code to the APM, receive a custom event automatically send email ? on Java (Java Agent, Installation, JVM, and Controller Installation). 10-11-2017 04:19 AM
- Posted How to create mobile apps Custom Event alert and respond send eamil. on Controller (SaaS, On Premise). 10-11-2017 03:17 AM
Community Stats
Date Registered | 07-16-2017 08:33 PM |
Date Last Visited | 01-27-2018 01:20 AM |
Total Messages Posted | 11 |
Total Kudos Received | 1 |