Commit graph

9 commits

Author SHA1 Message Date
Kibana Machine
4cb2f9d7fc
[8.x] [Synthetics] Clarify private location api docs !! (#208504) (#209005)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Clarify private location api docs !!
(#208504)](https://github.com/elastic/kibana/pull/208504)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2025-01-30T17:44:40Z","message":"[Synthetics]
Clarify private location api docs !! (#208504)\n\n##
Summary\r\n\r\nClarify private location api docs
!!\r\n\r\nCo-authored-by: Dominique Clarke
<dominique.clarke@elastic.co>","sha":"6dda88821dbf79b596b2bdefb109d2842e754195","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Synthetics]
Clarify private location api docs
!!","number":208504,"url":"https://github.com/elastic/kibana/pull/208504","mergeCommit":{"message":"[Synthetics]
Clarify private location api docs !! (#208504)\n\n##
Summary\r\n\r\nClarify private location api docs
!!\r\n\r\nCo-authored-by: Dominique Clarke
<dominique.clarke@elastic.co>","sha":"6dda88821dbf79b596b2bdefb109d2842e754195"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208504","number":208504,"mergeCommit":{"message":"[Synthetics]
Clarify private location api docs !! (#208504)\n\n##
Summary\r\n\r\nClarify private location api docs
!!\r\n\r\nCo-authored-by: Dominique Clarke
<dominique.clarke@elastic.co>","sha":"6dda88821dbf79b596b2bdefb109d2842e754195"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2025-01-30 18:16:42 +00:00
Kibana Machine
13bf14ecec
[8.x] [Synthetics] Space aware private locations !! (#202634) (#208433)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Space aware private locations !!
(#202634)](https://github.com/elastic/kibana/pull/202634)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2025-01-27T18:37:22Z","message":"[Synthetics]
Space aware private locations !! (#202634)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/199976\r\n\r\nUser can choose
which space the location will be visible in while\r\ncreating a location
!!\r\n\r\n\r\n### Testing\r\n\r\n- [ ] Create location in all spaces and
make sure it's visible\r\neverywhere.\r\n- [ ] Creation location in a
specific space and make sure it's only\r\nvisible in specified
space\r\n\r\n\r\n<img width=\"1728\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd\"\r\n/>","sha":"e51b2bda277ee4f532c901bcd65478fac86caeb8","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","release_note:feature","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics]
Space aware private locations
!!","number":202634,"url":"https://github.com/elastic/kibana/pull/202634","mergeCommit":{"message":"[Synthetics]
Space aware private locations !! (#202634)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/199976\r\n\r\nUser can choose
which space the location will be visible in while\r\ncreating a location
!!\r\n\r\n\r\n### Testing\r\n\r\n- [ ] Create location in all spaces and
make sure it's visible\r\neverywhere.\r\n- [ ] Creation location in a
specific space and make sure it's only\r\nvisible in specified
space\r\n\r\n\r\n<img width=\"1728\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd\"\r\n/>","sha":"e51b2bda277ee4f532c901bcd65478fac86caeb8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202634","number":202634,"mergeCommit":{"message":"[Synthetics]
Space aware private locations !! (#202634)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/199976\r\n\r\nUser can choose
which space the location will be visible in while\r\ncreating a location
!!\r\n\r\n\r\n### Testing\r\n\r\n- [ ] Create location in all spaces and
make sure it's visible\r\neverywhere.\r\n- [ ] Creation location in a
specific space and make sure it's only\r\nvisible in specified
space\r\n\r\n\r\n<img width=\"1728\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd\"\r\n/>","sha":"e51b2bda277ee4f532c901bcd65478fac86caeb8"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2025-01-28 00:02:05 +00:00
Kibana Machine
3265ee8e9a
[8.x] [Synthetics] Refactor bulk delete monitor and params routes !! (#195420) (#199277)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Refactor bulk delete monitor and params routes !!
(#195420)](https://github.com/elastic/kibana/pull/195420)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2024-11-07T09:51:56Z","message":"[Synthetics]
Refactor bulk delete monitor and params routes !! (#195420)\n\n##
Summary\r\n\r\nRefactor bulk delete monitor and params routes !!
\r\n\r\nWe need to remove usage for body from DELETE route.\r\n\r\n###
Params\r\n\r\nParams can be bulk delete now with POST request
to\r\n`/params/_bulk_delete` endpoint\r\n\r\n### Monitors\r\nMonitors
can be bulk delete now with POST request to\r\n`/monitors/_bulk_delete`
endpoint","sha":"d25a2b442aff8d3b4559832257b98c0f50de922b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics]
Refactor bulk delete monitor and params routes
!!","number":195420,"url":"https://github.com/elastic/kibana/pull/195420","mergeCommit":{"message":"[Synthetics]
Refactor bulk delete monitor and params routes !! (#195420)\n\n##
Summary\r\n\r\nRefactor bulk delete monitor and params routes !!
\r\n\r\nWe need to remove usage for body from DELETE route.\r\n\r\n###
Params\r\n\r\nParams can be bulk delete now with POST request
to\r\n`/params/_bulk_delete` endpoint\r\n\r\n### Monitors\r\nMonitors
can be bulk delete now with POST request to\r\n`/monitors/_bulk_delete`
endpoint","sha":"d25a2b442aff8d3b4559832257b98c0f50de922b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195420","number":195420,"mergeCommit":{"message":"[Synthetics]
Refactor bulk delete monitor and params routes !! (#195420)\n\n##
Summary\r\n\r\nRefactor bulk delete monitor and params routes !!
\r\n\r\nWe need to remove usage for body from DELETE route.\r\n\r\n###
Params\r\n\r\nParams can be bulk delete now with POST request
to\r\n`/params/_bulk_delete` endpoint\r\n\r\n### Monitors\r\nMonitors
can be bulk delete now with POST request to\r\n`/monitors/_bulk_delete`
endpoint","sha":"d25a2b442aff8d3b4559832257b98c0f50de922b"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2024-11-07 05:54:59 -06:00
Kibana Machine
4c22558e57
[8.x] [Synthetics] Fixes partial updates for params and params viewing (#195866) (#197850)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Fixes partial updates for params and params viewing
(#195866)](https://github.com/elastic/kibana/pull/195866)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2024-10-25T15:06:52Z","message":"[Synthetics]
Fixes partial updates for params and params viewing (#195866)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/167781\r\n\r\nIn docs we says
that only key/value pairs are required, but in actual\r\nedit, that
means rest of the data was being lost on edits\r\n\r\nAllow partial
updates to params edit API !!\r\n\r\nThis PR makes sure prev objects is
fetched and merged with new data\r\nhence allowing partial updates
!!\r\n\r\nWe are also allowing the ability to view value of the secret
once it's\r\nsaved via API !!\r\n\r\n### Value is hidden\r\nParam value
will not be visible unless user is `super_user` or\r\n`kibana_admin`,
though user can assign new
value.\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic
<jk@elastic.co>","sha":"0ff9a8a9d9ff2bdb99562eeca29152bd0a0c4385","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics]
Fixes partial updates for params and params
viewing","number":195866,"url":"https://github.com/elastic/kibana/pull/195866","mergeCommit":{"message":"[Synthetics]
Fixes partial updates for params and params viewing (#195866)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/167781\r\n\r\nIn docs we says
that only key/value pairs are required, but in actual\r\nedit, that
means rest of the data was being lost on edits\r\n\r\nAllow partial
updates to params edit API !!\r\n\r\nThis PR makes sure prev objects is
fetched and merged with new data\r\nhence allowing partial updates
!!\r\n\r\nWe are also allowing the ability to view value of the secret
once it's\r\nsaved via API !!\r\n\r\n### Value is hidden\r\nParam value
will not be visible unless user is `super_user` or\r\n`kibana_admin`,
though user can assign new
value.\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic
<jk@elastic.co>","sha":"0ff9a8a9d9ff2bdb99562eeca29152bd0a0c4385"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195866","number":195866,"mergeCommit":{"message":"[Synthetics]
Fixes partial updates for params and params viewing (#195866)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/167781\r\n\r\nIn docs we says
that only key/value pairs are required, but in actual\r\nedit, that
means rest of the data was being lost on edits\r\n\r\nAllow partial
updates to params edit API !!\r\n\r\nThis PR makes sure prev objects is
fetched and merged with new data\r\nhence allowing partial updates
!!\r\n\r\nWe are also allowing the ability to view value of the secret
once it's\r\nsaved via API !!\r\n\r\n### Value is hidden\r\nParam value
will not be visible unless user is `super_user` or\r\n`kibana_admin`,
though user can assign new
value.\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic
<jk@elastic.co>","sha":"0ff9a8a9d9ff2bdb99562eeca29152bd0a0c4385"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2024-10-25 11:59:24 -05:00
Shahzad
69f6687af9
[Synthetics] Delete monitor API via id param !! (#190210)
## Summary

Allow deletion of monitor via id param !!

User can now delete monitor via passing id as url param

`DELETE <kibana host>:<port>/api/synthetics/monitors/<config_id>`

Previous bulk delete via list of ids via API body still works as well !!

Docs are updated !!
2024-08-12 21:13:33 +02:00
Paul Bianciardi
3f13215f27
Update the docs to clarify the ID of the private location created (#184818)
Update the docs to clarify that the `id` of the Private Location created via the API will be the same `id` as the agent policy
2024-06-05 14:36:03 +01:00
Shahzad
29e8394c3d
[Synthetics] Monitor CRUD's public api's (#169928)
## Summary

Part of https://github.com/elastic/kibana/issues/169547

View docs at [Changed
pages](https://kibana_169928.docs-preview.app.elstc.co/diff)

Add monitor api public api 

### Testing

Make sure you have some monitors populated before testing this PR and
before switching to the branch

- [ ] Try editing already added monitors via API
- [ ] Test adding monitors via API, and then edit those via and
subsqeuently try editing via API the same monitor
- [ ] Test editing monitors via API
- [ ] Test deleting monitors via API
- [ ] Test getting monitors via API
- [ ] Testing private as well public locations

Basic workflow that i am interesting in testing is to make sure, you can
add/edit via both API and UI without any issues


Test each of HTTP/TCP/ICMP browser examples

<img width="1728" alt="image"
src="3575d93a-5f04-4c80-ac62-038643f466f8">

---------

Co-authored-by: Justin Kambic <jk@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2024-04-12 15:10:11 -04:00
Shahzad
d2a54d9180
[Synthetics] Private location public API's (#169376)
Co-authored-by: Abdul Wahab Zahid <awahab07@yahoo.com>
Co-authored-by: Justin Kambic <jk@elastic.co>
2023-11-06 12:29:27 -05:00
Shahzad
8bbb58f19a
[Synthetics] Global params Public APIs (#169669) 2023-10-27 16:16:40 +02:00