Forming Impala query metrices rest end point - cloudera

I want to get metrices of implala queries . I have found rest api "/clusters/{clusterName}/services/{serviceName}/impalaQueries". But I am not sure how to form rest api . I am not clear about how to form a complete rest URL to get the metrices.

Related

LinkedIn Content Api Migration to Version Api for Getting Image Source

I am migrating from LinkedIn V2 to Versioned Api 202211 on Content Api where i need to get the image source downloadUrl and display them along with the related text if any. attached is the postman Api call for easy reference.
Now i have used two Api's one is Post Api to get the urn:li:image that i get from calling /posts?author='. urlencode('urn:li:organization:' . anyID).'&q=author inside content-->media-->id array
Now Using Image Api and passing URLENCODE values inside
rest/images?ids=List(urn%3Ali%3Aimage%3AC5622AQEVKKoPW861Ow,urn%3Ali%3Aimage%3AD4D22AQF9zimfi4-aZw,urn%3Ali%3Aimage%3AC5622AQGuF8TOWVbOMw,urn%3Ali%3Aimage%3AC5622AQFellCxSUz98Q)
but the problem is, the order in which i am passing the urn:li:image as passes above is not the same order i am getting back as a response from the api. Neither its sorted in any manner . its just random order. Now mapping this array(that i got from using image api) with the one array above(got from Post Api) is a task in hand and it needs unnecessary reiteration . Attached is Postman call image .
The Result array i get from Image api needs to be added on the posts['elements'][index]['results] = image_api_rsp['results']['image:URN']['downloadUrl'].
Is there a problem in the Api or i am doing something wrong, because in postman also you can see the order in which i pass the value is not the same order i get the response.
Get Batch Images

WordPress Rest API not returning all posts, videos and tags

I am trying to fetch all of the videos, tags etc etc through the Wordpress rest api but it doesn't seem to be returning all of the data that I have on Wordpress. For example I have 13 videos on the admin panel (and web app) but on the rest api I can only see 4. I don't have any filters to limit the results I get on the fetch() function.
For the tags, I have 10 for example but it only returns the 8. When I do /wp-json/wp/v2/tags/53 then I get the data for tag #53 (which is one of the tags that don't show up on /wp-json/wp/v2/tags.
The current method of controlling the number of results returned is to add per_page as a query parameter:
website.com/wp-json/wp/v2/posts/?per_page=15
Replace 15 with the desired amount, anywhere from 1 - 100 is permitted

Kronos API v2 - including multiple query parameters in a request

I am trying to access the Time Entries object via the Kronos API v2.
The documentation says that there are two required Query Parameters: start_date and end_date.
I am able to query the endpoint including one of the parameters at a time but am not able to enter both. And, I find the documentation quite lacking.
The root of the endpoint is:
https://secure.saashr.com/ta/rest/v2/companies/{cid}/time-entries
Here are things I have tried to suffix to the above endpoint:
?start_date=2019-11-01&end_date=2019-12-01
?start_date=2019-11-01|end_date=2019-12-01
?start_date=2019-11-01 end_date=2019-12-01
?start_date=2019-11-01?end_date=2019-12-01
?start_date=2019-11-01:end_date=2019-12-01
?filter=start_date:=:2019-11-01|end_date:=:2019-12-01
I also tried including quotes around the dates.
Everything results in some 400 level error when querying the API. With most of the above suffixes, it recognizes start_date but not the end_date. In this case, the error is:
{'code': 400, 'message': 'Missing required: end_date'}]
Note, above {cid} is replaced with the company's id.
In summary, how should I include two query parameters in the Kronos API?
The first option is correct.
https://secure.saashr.com/ta/rest/v2/companies/{cid}/time-entries?start_date=2019-11-01&end_date=2019-12-01
should work just fine.
Could you provide full URL you set in request?

Empty description in Web Entities of Google Vision API

If you try Google Vision API with follwoing demo-image.jpg
shown in QuickStart, you will get a record with empty description and score of 0.7024 in “Web Entities”. Why!?
I think this is working as intended. If you check the getDescrition() method from Java API libraries, you see that getDescrition() could return value or null for none.

Linkedin - Get companies updates queries

I'm trying to create an app to read company updates, but I have a few queries. Please help...
I'm using LinkedIn api via Oauth authentication in R
Is there anyway to fetch more updates than the restriction (only allow fetch up to 250 updates or updates in the last 20 days whichever comes first) ?
Example code
https://api.linkedin.com/v1/companies/270126/updates?event-type=status-update&count=100&start=0 &oauth2_access_token={access_token}
Once I got the updateKey, I'm trying to fetch the comments and likes but it's returning NO return
Example code
https://api.linkedin.com/v1/companies/270126/updates/key=UPDATE-c270126-5951438751136768000/update-comments?event-type=status-update&oauth2_access_token={access_token}
https://api.linkedin.com/v1/companies/270126/updates/key=UPDATE-c270126-5951438751136768000/likes?event-type=status-update&oauth2_access_token={access_token}
From the company status-update, it's returning FALSE for is-commentable and is-likable? Is that why there are no result from Query 2. If so, is there anyway to change that setting?
'is-commentable' false '/is-commentable'
'is-likable' false '/is-likable'
Any help would be greatly appreciated!!!!
Linkedin developer - Reading Company Shares link
https://developer.linkedin.com/reading-company-shares
Try using the Share and Social Stream end point instead of the Companies end point like this:
https://api.linkedin.com/v1/people/~/network/updates/key=UPDATE-c270126-5951438751136768000/update-comments?oauth2_access_token={access_token}
The documentation is here:
https://developer.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates
Also you can test different Linkedin API calls here:
https://apigee.com/console/linkedin

Resources