-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [[Synthetics] Public API's refactor (#190531)](#190531) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-24T12:37:24Z","message":"[Synthetics] Public API's refactor (#190531)\n\n## Summary\r\n\r\nPublic API's refactor !!\r\n\r\nFixes #189906 !!\r\n\r\n\r\n### Testing \r\n\r\nPlease test HTTP, TCP, ICMP and Browser monitors creation and updates\r\nvia API\r\n\r\n----------------\r\n\r\n### params field \r\n\r\nreturn `params` always as an object `{}`\r\n\r\n----------------\r\n\r\n### `ssl` field \r\n\r\nssl field isn't returned anymore for browser monitor\r\n\r\nand is returned always as an object for other monitor types as in\r\n```\r\n\r\n \"ssl\": {\r\n \"certificate_authorities\": \"\",\r\n \"certificate\": \"\",\r\n \"key\": \"i am a key\",\r\n \"key_passphrase\": \"\",\r\n \"verification_mode\": \"full\",\r\n \"supported_protocols\": [\r\n \"TLSv1.1\",\r\n \"TLSv1.2\",\r\n \"TLSv1.3\"\r\n ]\r\n },\r\n```\r\n\r\n----------------\r\n\r\n### `response` field \r\nalso returned as nested object\r\n```\r\n \"response\": {\r\n \"include_body\": \"on_error\",\r\n \"include_headers\": true,\r\n \"include_body_max_bytes\": \"1024\"\r\n },\r\n```\r\n-----\r\n### `check` field\r\nis also returned as nested object now\r\n\r\n```\r\n \"check\": {\r\n \"response.body.negative\": [],\r\n \"response.body.positive\": [],\r\n \"response.json\": [],\r\n \"response.headers\": {},\r\n \"response.status\": [],\r\n \"request.body\": {\r\n \"value\": \"\",\r\n \"type\": \"text\"\r\n },\r\n \"request.headers\": {},\r\n \"request.method\": \"GET\"\r\n }\r\n```\r\n\r\n-----\r\n\r\n\r\n### `retest_on_failure`\r\n\r\nretest_on_failure is always returned now, max_attempts abstraction is\r\nomitted\r\n\r\n-----\r\n\r\n### `max_redirects`\r\nalways return `max_redirects` as a number\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"a333373d9e9f63725c11dcf41793235b58ecd470","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.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] Public API's refactor","number":190531,"url":"https://github.com/elastic/kibana/pull/190531","mergeCommit":{"message":"[Synthetics] Public API's refactor (#190531)\n\n## Summary\r\n\r\nPublic API's refactor !!\r\n\r\nFixes #189906 !!\r\n\r\n\r\n### Testing \r\n\r\nPlease test HTTP, TCP, ICMP and Browser monitors creation and updates\r\nvia API\r\n\r\n----------------\r\n\r\n### params field \r\n\r\nreturn `params` always as an object `{}`\r\n\r\n----------------\r\n\r\n### `ssl` field \r\n\r\nssl field isn't returned anymore for browser monitor\r\n\r\nand is returned always as an object for other monitor types as in\r\n```\r\n\r\n \"ssl\": {\r\n \"certificate_authorities\": \"\",\r\n \"certificate\": \"\",\r\n \"key\": \"i am a key\",\r\n \"key_passphrase\": \"\",\r\n \"verification_mode\": \"full\",\r\n \"supported_protocols\": [\r\n \"TLSv1.1\",\r\n \"TLSv1.2\",\r\n \"TLSv1.3\"\r\n ]\r\n },\r\n```\r\n\r\n----------------\r\n\r\n### `response` field \r\nalso returned as nested object\r\n```\r\n \"response\": {\r\n \"include_body\": \"on_error\",\r\n \"include_headers\": true,\r\n \"include_body_max_bytes\": \"1024\"\r\n },\r\n```\r\n-----\r\n### `check` field\r\nis also returned as nested object now\r\n\r\n```\r\n \"check\": {\r\n \"response.body.negative\": [],\r\n \"response.body.positive\": [],\r\n \"response.json\": [],\r\n \"response.headers\": {},\r\n \"response.status\": [],\r\n \"request.body\": {\r\n \"value\": \"\",\r\n \"type\": \"text\"\r\n },\r\n \"request.headers\": {},\r\n \"request.method\": \"GET\"\r\n }\r\n```\r\n\r\n-----\r\n\r\n\r\n### `retest_on_failure`\r\n\r\nretest_on_failure is always returned now, max_attempts abstraction is\r\nomitted\r\n\r\n-----\r\n\r\n### `max_redirects`\r\nalways return `max_redirects` as a number\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"a333373d9e9f63725c11dcf41793235b58ecd470"}},"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/190531","number":190531,"mergeCommit":{"message":"[Synthetics] Public API's refactor (#190531)\n\n## Summary\r\n\r\nPublic API's refactor !!\r\n\r\nFixes #189906 !!\r\n\r\n\r\n### Testing \r\n\r\nPlease test HTTP, TCP, ICMP and Browser monitors creation and updates\r\nvia API\r\n\r\n----------------\r\n\r\n### params field \r\n\r\nreturn `params` always as an object `{}`\r\n\r\n----------------\r\n\r\n### `ssl` field \r\n\r\nssl field isn't returned anymore for browser monitor\r\n\r\nand is returned always as an object for other monitor types as in\r\n```\r\n\r\n \"ssl\": {\r\n \"certificate_authorities\": \"\",\r\n \"certificate\": \"\",\r\n \"key\": \"i am a key\",\r\n \"key_passphrase\": \"\",\r\n \"verification_mode\": \"full\",\r\n \"supported_protocols\": [\r\n \"TLSv1.1\",\r\n \"TLSv1.2\",\r\n \"TLSv1.3\"\r\n ]\r\n },\r\n```\r\n\r\n----------------\r\n\r\n### `response` field \r\nalso returned as nested object\r\n```\r\n \"response\": {\r\n \"include_body\": \"on_error\",\r\n \"include_headers\": true,\r\n \"include_body_max_bytes\": \"1024\"\r\n },\r\n```\r\n-----\r\n### `check` field\r\nis also returned as nested object now\r\n\r\n```\r\n \"check\": {\r\n \"response.body.negative\": [],\r\n \"response.body.positive\": [],\r\n \"response.json\": [],\r\n \"response.headers\": {},\r\n \"response.status\": [],\r\n \"request.body\": {\r\n \"value\": \"\",\r\n \"type\": \"text\"\r\n },\r\n \"request.headers\": {},\r\n \"request.method\": \"GET\"\r\n }\r\n```\r\n\r\n-----\r\n\r\n\r\n### `retest_on_failure`\r\n\r\nretest_on_failure is always returned now, max_attempts abstraction is\r\nomitted\r\n\r\n-----\r\n\r\n### `max_redirects`\r\nalways return `max_redirects` as a number\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"a333373d9e9f63725c11dcf41793235b58ecd470"}}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
- Loading branch information
1 parent
e294ce9
commit 4686f35
Showing
50 changed files
with
767 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.