I wanted to extract users count from application insight inside my web application and was going through the document for the rest API
https://dev.applicationinsights.io/
I am not sure if API response contains user count?If this is not the way is there a way to get data specifically user count from app insight?
Have you tried
GET /users/count
check the title
Metric metadata: getting a list of metrics under Default metrics.
Related
I am working on the REST API and encounter a problem awaiting for the help from the forum.
My request is to collect the information from 'ALL_Lists' so that I can setup the treeview to display the test folder structure in the Test Plan, I know how to achieve it using OTA, however don't have any idea what URL it should be using REST API, please help.
HP ALM help file has all the information you need to get started.
Afte you login to HP ALM (Thin Client), GoTO HELP -> API Reference -> RESTFUl API.
This would help someone who is new to HP REST API.
To find available HP API end-points,
GET /qcbin/rest/resouce-list
I am using GSA for my application.I want to display promoted results as part of my application.Can any one suggest me in which way i can use OneBox for the getting promotted results.In which way i can configure it in GSA Admin Console?What type of results i will get on application from the service?
Have you looked at keymatches? That's how you normally handle promoted results with the GSA.
This is my first time developing this kind of system, so many of these concepts are very new to me. Any and all help would be appreciated. I'll try to sum up what I'm doing as efficiently as possible.
Background: I have a web application running AngularJS with Bootstrap. The app communicates with the server and DB through a web service programmed using C#. On the site, users can upload files and reference them later using direct links. There's no restriction to file type (yet), so just about anything is allowed.
My Goal: Having direct links creates a big security problem for me, since the documents/images are supposed to be private data. What I would prefer to do is validate a user's credentials when the link is clicked, then load the file in the browser using a more generic url path.
--Example--
"mysite.com/attachments/1" ---> (Image)
--instead of--
"mysite.com/data/files/importantImg.jpg"
Where I'm At: Not very far. My first thought was to add a page that sends the server request and receives a file byte stream along with mime type that I can reassemble and present to the user. However, I have no idea if this is possible using a web service that sends JSON requests, nor do I have a clue about how the reassembling process would work client-side.
Like I said, I'll take any and all advice. I'd love to learn more about this subject for future projects as well, but for now I just need to be pointed in the right direction.
Your first thought is correct, for it, you need to use the Response object, and more specifically the AddHeader and Write functions. Of course this will be a different page that will only handle file downloads, so it will be perfectly fine in your JSON web service.
I don't think you want to do this with a web service. Just use a regular IHttpHandler to perform the validation and return the data. So you would have the URL "attachments/1" get rewritten to "attachments/download.ashx?id=1". When you've verified access, write the data to the response stream. You can use the Content Disposition header to set the file name.
My customer wants to track backend user's activity using google-analytics. He wants me to insert UserId in every URL of the backend. Backend is ASP.NET MVC3 and I tried to use routing for this purpose but without any luck.
I thought about more intellegent way to satisfy his need. So I'm thinking about calling google-analytics api from the server-side.
Is there an ability to do all that ga.js does but from c#?
Updated:
Customer wants to track user's activity using Google Analytics.
He wants me to add ?userId= to all links in backend.
So if I had /Category/Edit/123 now I have to change it to /Category/Edit/123?userId=456
Then I put ga.js to every page and customer tracks user's (456) activity.
I find the idea of using Google Analytics this way sucks but I have to implement some solution. The only thing I want is not to change urls but act with Google Analytics API from the server side.
Ok. Here is what think I actually needed:
1) Create Custim Dimension in Google Analytics console
Admin -> Custom Definitions -> Custom Dimensions -> New Custom Dimension -> userId
2) Modify my Google Analytics javascript and insert
var userId = #User.Id;
ga('set', 'dimension1', userId);
before ga("send", "pageview");
OR
use this solution
https://developers.google.com/analytics/devguides/collection/analyticsjs/user-id?hl=en
I am wondering how I specify "Standard Shipping (FedEx Ground or FedEx Home Delivery®)" as a shipping service using the eBay API. Can anyone provide any pointers? All of the samples just use the "Standard Shipping" option.
You need to specify FedExHomeDelivery. A table of shipping services for most eBay sites can be found here. Simply use the values in the ID for importing column for your eBay API calls.
As the types of shipping services change over time you may wish to periodically retrieve the latest services via the API as follows.
For each eBay site that you are interested in make a call to GeteBayDetails with a DetailName value of ShippingServiceDetails.
In the results iterate over all the ShippingServiceDetails elements. Each one is a shipping service for the site that you specified.
Important properties for each service that you will need to check are,
ValidForSellingFlow - If this set to 'true' the service can be used in the Add/Revise/Relist API calls otherwise you can not use it.
Description - You can use this value when presenting services to a user. The text should match what users see when listing via eBay.
ShippingService - This is the value that you want to use in your API calls.
You can find all available shipping methods in the documentation of ShippingServiceCodeType.
Beware to use the correct ones of the site id where item will be placed.