cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LocationId in synthetic monitoring execution endpoint

bryandavis
Visitor

When retrieving the results of an HTTP Check I see request results for each location. The location is identified with a locationId, like below from "/synthetic/execution".

 

 

{
    "monitorId": "HTTP_CHECK-ABB43CF5DB511A5D",
    "locationsExecutionResults": [
        {
            "locationId": "88",
            "executionId": "26726351503",
            "requestResults": [
            ....
        },
        {
            "locationId": "124",
            "executionId": "26726351345",
            "requestResults": [
            ....
        },

 

 

I would like to be able to tie that locationId value back to a named public/private location. There's no similar field value in "/synthetic/locations", or "/synthetic/locations/<location id>. Is there an easy way to tie that id to a location name/record?

 

2 REPLIES 2

dannemca
DynaMight Guru
DynaMight Guru

That's true, the location ID does not matchs the one we get from /synthetic/locations/ API

One way to match it is checking the execution result from Synthetic monitor details page in UI

Screenshot 2023-02-21 at 17.36.28.pngScreenshot 2023-02-21 at 17.35.30.png

In my tenant, the locationId 16 is meant for Virgnia.

Site Reliability Engineer @ Kyndryl

bryandavis
Visitor

Thanks, I can build out a static list of locationid's from the UI and use that to tie the locationId from the API to a proper name.

Featured Posts