Pcf appdynamics spring actuator - appdynamics

We have a spring boot app running in pivotal cloud foundry and we have also configured appdynamics and we can now see our app on appd controller GUI. I would like to build a appd dashboard and call actuator end points like info , health. How do i do this? Or I am also open to other ideas on building appd dashboard for micro services
Please advise

AppDynamics itself powerful enough to provide all sort of information, However if you still want actuator data to be captured and displayed then you may need to use AppD extension. Please refer below official link to AppDyanmics Exchange.
https://www.appdynamics.com/community/exchange/
if the relevant is not available you may need write your own.

Related

How to get access to the API testing console from the Azure cognitive services desktop?

I'd like to get access to the API Testing console (the one mentioned in the Quick start of the Cognitive services translation services, useful to test the API without writing a single line of code), but I don't find any direct access to on the Microsoft Azure. Thanks in advance for your help.
I think the text you mention about the console is a copy-paste error from other cognitive services quick start page.
Generally with Cognitive Services, you can find webpages which seems to be hosted under Azure API Management, where you got the basic documentation and access to a testing Console. For example for West Europe, all the services are here: https://westeurope.dev.cognitive.microsoft.com/docs/services/
And for Anomaly Detector API, you can see the link to the testing console:
Sadly, it seems that there is not equivalent for Translator API.
You still have samples on Github that you can use, in several dev languages: https://github.com/MicrosoftTranslator
Or you can directly call the API with a tool like Postman, it is really easy to implement

How to add javascript code to google functions

I want to write a google cloud function that will respond to POST requests. I want to write it in Javascript.
I've found Google's tutorial on how to do it, but at the beginning of the tutorial it says that this is a deprecated thing, and I have to do it using Cloud Endpoints Frameworks for App Engine. However, the link they provide doesn't help.
Any ideas on how to write a javascript google cloud function?
Link to the tutorial that I've found:
https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/python/getstarted/clients/js/add_javascript
The warning that's displayed at the beginning of the tutorial:
Cloud Endpoints Frameworks v1 has been deprecated and will be shut
down on August 2, 2018. We recommend that you use the latest version
of this feature, which is renamed to Cloud Endpoints Frameworks for
App Engine. This new version supports App Engine standard environment,
provides lower latency, and has better integration with App Engine.
For more details, see Migrating to 2.0.
The migration link points to https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/python/migrating
There are two completely different things you're talking about here.
Google Cloud Functions is a serverless way to write functions in Javascript which respond to HTTP requests.
Google Cloud Endpoints Frameworks for App Engine is a way to write App Engine applications in Python or Java which respond to HTTP requests.
The first link you provide is about writing browser-side JavaScript code which calls an Endpoints service. The corresponding link for the Endpoints 2.0 product is here.
Depending on what you actually want to do, you should consult one or more of these links.

PLONE to call and perform REST API calls on another application

we are developing a plone interface to consume REST API services from a web application.
Users login to plone and be able to access the REST API & perform some actions on the "Another Web Application" via REST API calls. Please find the graphical representation attached here.
Query 1)What and all the Plone programming documentation I needed to refer to design & develop such a solution in Plone? that is,access and perform actions on REST APIs, from a PLONE based Solution.
Query: 2) What all are the different technologies I need to refer to learn & program in PLONE and python to achieve this work using PLONE framework?
Please share your valuable inputs and suggestion to move in the right direction.
Please refer the attached block diagram of the proposed solution.
.
In a first step you could register a "view" for authenticated users in Plone. In the view's Python module you could call the restful api of the other web application.
Helpful resources are:
Creating a basic package (Plone Addon) with mr.bob and bobtemplates.plone: https://github.com/plone/bobtemplates.plone
Creating and registering a view: http://docs.plone.org/develop/plone/views/browserviews.html#creating-and-registering-a-view
Call a resful api with python: Making a request to a RESTful API using python
If you have to collect data from your plone site to transmit to the restful api f.e. user data, then plone.api is the standarized way. http://docs.plone.org/develop/plone.api/docs/
Recently a very nice module developed, exactly for the purpose you mentioned here, in Plone. It's called "plone.restapi".
github link: https://github.com/plone/plone.restapi

Installing Apigee on my own server

Is it possible to download and install Apigee on your own server? If so, is there any documentation on how to do this?
I have looked around on the Apigee.com web site for details, and I'm aware that there is an Apigee GitHub repo, but I'm not sure where to start.
Thanks!
The answer to your question is NO. Apigee does NOT provide you with content that can be downloaded, installed and run locally. However, if you do want to do this, you would need to buy a licensed OPDK (On Premise Deployment Kit), and then go about setting things up.
Apigee does provide a FREE account however for you to play around with and perform most/ALL actions, including implementing policies and building developer applications. Navigate to Apigee Enterprise, create a free account and plug away.
ALL of the documentation you need can be found at the Apigee Documentation site.
Apigee leverages some features from Usergrid, which is an open source project currently incubating at Apache.
http://usergrid.incubator.apache.org/
You can download it and run it on your own server. It doesn't give you API management, but it does provide BaaS functionality (a backend service/datastore to power mobile apps).
Apigee has a On premise deployment setup(opdk) which lets clients run apigee on their own servers. But i believe it's not a free piece of software, You will have to pay and buy the package which comes with a license for its setup & usage.
http://apigee.com/about/why-apigee
The full suit of Apigee capabilities are absolutely available either in the cloud or on-prem. However, the on-prem option only exists for Apigee Edge and not Developer.

spring sample webapp connecting with twitter

I'm working on sample webapp that I'm supposed to show to my CTO.
It's basically a spring-mvc HelloWorld kind of thing whose only request is that users (in order to actually get to see "hello world!") need to login into it using their twitter account.
I find it amazingly hard to set it up.
I'm tangled among 2 different docs (spring-security and spring-social-twitter) and I'm now wondering whether I should actually go checkout spring social oauth.
Any help will be much appreciated.
There are a few projects on GitHub that you can use for example code. The first is "Spring Social Security":
https://github.com/socialsignin/spring-social-security
This is a library you can use for implementing Spring Security using Spring Social as basically the "back end" system for your webapp's user accounts and login. There is a demo webapp using it here:
https://github.com/socialsignin/spring-social-security-demo
You may be able to just drop this library in, though I haven't tried it yet so I'm not 100% sure.
I also have a demo webapp that integrates Spring Social and Spring Security but a little differently. The idea is to add in Spring Social to an existing app that already implements Spring Security with its own user accounts and login info stored in a database.
https://github.com/sdouglass/spring-security-social

Resources