I am using Kudu Api to display some webjob data on a website monitoring app I created. The web app monitors data from a few other websites I created. I was wondering what API endpoints do I need to run in order to get the data from this page:
https://{my_website}.scm.azurewebsites.net/azurejobs/#/functions
I am interested in displaying some of the data from this page (functions, statistics, Invocation Log - Recently executed functions)
At the moment I am parsing a text file, but I find this highly inefficient if there's a better option available:
https://{my_website}.scm.azurewebsites.net/vfs/data/jobs/continuous/{my_webjob}/job_log.txt
Any suggestions would help, thanks in advance.
As written in comments the WebJob client is javascript based you can see every call it makes in the console of your browser, there you will find a call to:
https://<sitename>.scm.azurewebsites.net/azurejobs/api/functions/definitions?limit=100
This give a list of the functions in the webjob.
Related
I'm working on a React Native project and would like to integrate Azure Application Insights.
I have followed the official documentation provided here:
https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-react-native-plugin
While Application map displays request counts with relevant nodes further details on insights are not visible on clicking on the counts.
Also when it comes to Performance, Operations does not display any data while in Dependencies does.
Thank you ZakiMa. I am posting your discussion as answer as it will benefit other community users.
Operations are not visible because for Browser telemetry maps to
PageViews. But for Single Page Apps, whole app will be represented as
one PageView. Application Map doesn't show any transitions as there is
no data for main node.
I have got a python script that checks if a web-page contains information or if it's empty. I want to make an application that runs this script, and tell me, preferably on slack, whether it worked or not. And I want this to happen every hour. I believe I can do this by using Application Insight with Azure, but I have not found an easy way to do this.
I'm entirely new to azure so any help would be appreciated, even simply links to other pages.
Edit 1
Instead of using python I instead want to try and log the exceptions I find in App insight to slack. I find these exceptions by going to app insight, then "Failures" and then "drill into operations"
Failures in App insight
These Exceptions I want to log to Slack
So i'm designing a new application with Nodejs and packaging into an executable then putting a release in github, I want to be able to monitor how many people are using my executable?
I was thinking about creating an api server and my application just make a call to that API service but I thought there might be something already out there any help?
The easiest way is to connect third party services that do that. The most famous one is Google Analytics
You just need to create your developer account and embed a few lines of tracking code. After that you can see full info about your visitors including their location.
I'm trying to write a simple python code to list out the app services in google-cloud-platform ,
In command prompt i'm able to list it by passing the below command
gcloud app services list
When i searched in stack overflow and other websites i couldn't find any piece of code that can list me app services . Any information related this will be thankful. Thanks in advance
One possibility is to use the Admin API, for example by making HTTP requests to its REST apps.services.list method:
Lists all the services in the application.
HTTP request
GET https://appengine.googleapis.com/v1beta/{parent=apps/*}/services
Or you can always fallback to plain invoking from your python code the same commands that you can run manually and process their outputs, for example via subprocess.Popen().
As you have mentioned that you were unable to find a proper documentation to list out the services or the versions for an application in the Google Cloud Platform, for requests regarding documentation modification you can definitely provide a feedback on the documentation page and we would definitely provide as much information as possible.
Regarding the question, I would have to agree with the previously mentioned solution posted by Mr. Dan Cornilescu, also for further clarification you would be able to call the Admin API that would create a HTTP requests to the REST and provide the List of services of an application. On the top of that you can also request a call to List of versions under the service of an application.
Over there if you could provide the requested parameters under the parent section (for your case your application name after 'app/') and execute (at the bottom) the call using your preferred authentication to request the list of services.
You can also click on the icon on the top right corner to able to go to following page where it provides the functions and the method calls in JavaScript. We would try our best to update the calls in Python as well. Thank you so much.
The https://beta.developer.spotify.com/ and https://beta.developer.spotify.com/
uses which service or technology to generate the UI? I know spotify uses RAML but use which tool/service to generate the UI, the descriptions and endpoint call e etc?
We hand-wrote the code that interprets our RAML and generates our API console. It uses a build script to generate Jekyll files with each of the endpoint's data, and a React component that grabs that data when the page gets loaded, presents a UI, and handles network requests. Source: I'm one of the devs who wrote that code! If you're looking to build something similar without having to write the code yourself, you could check out this api-console by Mulesoft. Hope that helps!