[Synthetics] Space aware private locations !! (#202634)

## Summary

Fixes https://github.com/elastic/kibana/issues/199976

User can choose which space the location will be visible in while
creating a location !!


### Testing

- [ ] Create location in all spaces and make sure it's visible
everywhere.
- [ ] Creation location in a specific space and make sure it's only
visible in specified space


<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd"
/>
This commit is contained in:
Shahzad 2025-01-27 19:37:22 +01:00 committed by GitHub
parent a108c632a4
commit e51b2bda27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 1039 additions and 604 deletions

View file

@ -37,6 +37,9 @@ The request body should contain the following attributes:
- `lat` (Required, number): The latitude of the location.
- `lon` (Required, number): The longitude of the location.
`spaces`::
(Optional, array of strings) An array of space IDs where the private location is available. If not provided, the private location is available in all spaces.
[[private-location-create-example]]
==== Example
@ -53,6 +56,7 @@ POST /api/private_locations
"lat": 40.7128,
"lon": -74.0060
}
"spaces": ["default"]
}
--------------------------------------------------