cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

How to send the rest api in the ios app project?

lil317576098
Creator

How to send the rest api in the ios app project?

hi ,

ios app code how to send post? 

POST / controller / rest / applications / application_id / events?

--user'<your_username> @ <your_accountname>:<your_password>

Account password should be written in what position?

Whether to provide demo, or document reference? 

thanks. 

By replying you agree to the Terms and Conditions of the AppDynamics Community.
How to send the rest api in the ios app project?
2 REPLIES 2
Mohammed.Rayan
AppDynamics Team

Re: How to send the rest api in the ios app project?

Hi ,

 

The easiest way to get the REST API endpoints is to go to the Metric Browser in the Controller UI. For instructions, see 

https://docs.appdynamics.com/display/PRO43/Metric+and+Snapshot+API#MetricandSnapshotAPI-RetrieveMetr...

https://docs.appdynamics.com/display/PRO43/Application+Model+API#ApplicationModelAPI-RetrieveAllBusi...

 

 

I'm moving this post to the controller forum

 

Regards,

Mohammed Rayan

 



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

Re: How to send the rest api in the ios app project?

Hi,

(curl -i -X POST --user janice_***@hsbccmbtest:janice***** https://hsbccmbtest.saas.appdynamics.com/controller/rest/applications/HSBCNET_SDE4/events?severity=I...)

 

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=I...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>