|
5 | 5 | "functions": [], |
6 | 6 | "interfaces": [], |
7 | 7 | "enums": [], |
8 | | - "misc": [], |
| 8 | + "misc": [ |
| 9 | + { |
| 10 | + "parentPluginId": "alerting", |
| 11 | + "id": "def-public.AlertNavigationHandler", |
| 12 | + "type": "Type", |
| 13 | + "tags": [], |
| 14 | + "label": "AlertNavigationHandler", |
| 15 | + "description": [ |
| 16 | + "\nReturns information that can be used to navigate to a specific page to view the given rule.\n" |
| 17 | + ], |
| 18 | + "signature": [ |
| 19 | + "(alert: Pick<", |
| 20 | + { |
| 21 | + "pluginId": "alerting", |
| 22 | + "scope": "common", |
| 23 | + "docId": "kibAlertingPluginApi", |
| 24 | + "section": "def-common.Alert", |
| 25 | + "text": "Alert" |
| 26 | + }, |
| 27 | + "<never>, \"enabled\" | \"id\" | \"name\" | \"params\" | \"actions\" | \"tags\" | \"alertTypeId\" | \"consumer\" | \"schedule\" | \"scheduledTaskId\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"apiKeyOwner\" | \"throttle\" | \"notifyWhen\" | \"muteAll\" | \"mutedInstanceIds\" | \"executionStatus\">) => string | ", |
| 28 | + { |
| 29 | + "pluginId": "kibanaUtils", |
| 30 | + "scope": "common", |
| 31 | + "docId": "kibKibanaUtilsPluginApi", |
| 32 | + "section": "def-common.JsonObject", |
| 33 | + "text": "JsonObject" |
| 34 | + } |
| 35 | + ], |
| 36 | + "source": { |
| 37 | + "path": "x-pack/plugins/alerting/public/alert_navigation_registry/types.ts", |
| 38 | + "lineNumber": 20 |
| 39 | + }, |
| 40 | + "deprecated": false, |
| 41 | + "initialIsOpen": false |
| 42 | + } |
| 43 | + ], |
9 | 44 | "objects": [], |
10 | 45 | "setup": { |
11 | 46 | "parentPluginId": "alerting", |
|
24 | 59 | "parentPluginId": "alerting", |
25 | 60 | "id": "def-public.PluginSetupContract.registerNavigation", |
26 | 61 | "type": "Function", |
27 | | - "tags": [], |
| 62 | + "tags": [ |
| 63 | + "throws" |
| 64 | + ], |
28 | 65 | "label": "registerNavigation", |
29 | | - "description": [], |
| 66 | + "description": [ |
| 67 | + "\nRegister a customized view of the particular rule type. Stack Management provides a generic overview, but a developer can register a\ncustom navigation to provide the user an extra link to a more curated view. The alerting plugin doesn't actually do\nanything with this information, but it can be used by other plugins via the `getNavigation` functionality. Currently\nthe trigger_actions_ui plugin uses it to expose the link from the generic rule view in Stack Management.\n" |
| 68 | + ], |
30 | 69 | "signature": [ |
31 | | - "(consumer: string, alertType: string, handler: ", |
32 | | - "AlertNavigationHandler", |
| 70 | + "(applicationId: string, ruleType: string, handler: ", |
| 71 | + { |
| 72 | + "pluginId": "alerting", |
| 73 | + "scope": "public", |
| 74 | + "docId": "kibAlertingPluginApi", |
| 75 | + "section": "def-public.AlertNavigationHandler", |
| 76 | + "text": "AlertNavigationHandler" |
| 77 | + }, |
33 | 78 | ") => void" |
34 | 79 | ], |
35 | 80 | "source": { |
36 | 81 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
37 | | - "lineNumber": 15 |
| 82 | + "lineNumber": 30 |
38 | 83 | }, |
39 | 84 | "deprecated": false, |
40 | 85 | "returnComment": [], |
41 | 86 | "children": [ |
42 | 87 | { |
43 | 88 | "parentPluginId": "alerting", |
44 | | - "id": "def-public.consumer", |
| 89 | + "id": "def-public.applicationId", |
45 | 90 | "type": "string", |
46 | 91 | "tags": [], |
47 | | - "label": "consumer", |
48 | | - "description": [], |
| 92 | + "label": "applicationId", |
| 93 | + "description": [ |
| 94 | + "The application id that the user should be navigated to, to view a particular alert in a custom way." |
| 95 | + ], |
49 | 96 | "source": { |
50 | 97 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
51 | | - "lineNumber": 16 |
| 98 | + "lineNumber": 31 |
52 | 99 | }, |
53 | 100 | "deprecated": false |
54 | 101 | }, |
55 | 102 | { |
56 | 103 | "parentPluginId": "alerting", |
57 | | - "id": "def-public.alertType", |
| 104 | + "id": "def-public.ruleType", |
58 | 105 | "type": "string", |
59 | 106 | "tags": [], |
60 | | - "label": "alertType", |
61 | | - "description": [], |
| 107 | + "label": "ruleType", |
| 108 | + "description": [ |
| 109 | + "The rule type that has been registered with Alerting.Server.PluginSetupContract.registerType. If\nno such rule with that id exists, a warning is output to the console log. It used to throw an error, but that was temporarily moved\nbecause it was causing flaky test failures with https://github.com/elastic/kibana/issues/59229 and needs to be\ninvestigated more." |
| 110 | + ], |
62 | 111 | "source": { |
63 | 112 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
64 | | - "lineNumber": 17 |
| 113 | + "lineNumber": 32 |
65 | 114 | }, |
66 | 115 | "deprecated": false |
67 | 116 | }, |
|
71 | 120 | "type": "Function", |
72 | 121 | "tags": [], |
73 | 122 | "label": "handler", |
74 | | - "description": [], |
| 123 | + "description": [ |
| 124 | + "The navigation handler should return either a relative URL, or a state object. This information can be used,\nin conjunction with the consumer id, to navigate the user to a custom URL to view a rule's details." |
| 125 | + ], |
75 | 126 | "signature": [ |
76 | 127 | "(alert: Pick<", |
77 | 128 | { |
|
81 | 132 | "section": "def-common.Alert", |
82 | 133 | "text": "Alert" |
83 | 134 | }, |
84 | | - "<never>, \"enabled\" | \"id\" | \"name\" | \"params\" | \"actions\" | \"tags\" | \"alertTypeId\" | \"consumer\" | \"schedule\" | \"scheduledTaskId\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"apiKeyOwner\" | \"throttle\" | \"notifyWhen\" | \"muteAll\" | \"mutedInstanceIds\" | \"executionStatus\">, alertType: ", |
85 | | - { |
86 | | - "pluginId": "alerting", |
87 | | - "scope": "common", |
88 | | - "docId": "kibAlertingPluginApi", |
89 | | - "section": "def-common.AlertType", |
90 | | - "text": "AlertType" |
91 | | - }, |
92 | | - "<\"default\", \"recovered\">) => string | ", |
| 135 | + "<never>, \"enabled\" | \"id\" | \"name\" | \"params\" | \"actions\" | \"tags\" | \"alertTypeId\" | \"consumer\" | \"schedule\" | \"scheduledTaskId\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"apiKeyOwner\" | \"throttle\" | \"notifyWhen\" | \"muteAll\" | \"mutedInstanceIds\" | \"executionStatus\">) => string | ", |
93 | 136 | { |
94 | 137 | "pluginId": "kibanaUtils", |
95 | 138 | "scope": "common", |
|
100 | 143 | ], |
101 | 144 | "source": { |
102 | 145 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
103 | | - "lineNumber": 18 |
| 146 | + "lineNumber": 33 |
104 | 147 | }, |
105 | 148 | "deprecated": false |
106 | 149 | } |
|
112 | 155 | "type": "Function", |
113 | 156 | "tags": [], |
114 | 157 | "label": "registerDefaultNavigation", |
115 | | - "description": [], |
| 158 | + "description": [ |
| 159 | + "\nRegister a customized view for all rule types. Stack Management provides a generic overview, but a developer can register a\ncustom navigation to provide the user an extra link to a more curated view. The alerting plugin doesn't actually do\nanything with this information, but it can be used by other plugins via the `getNavigation` functionality. Currently\nthe trigger_actions_ui plugin uses it to expose the link from the generic rule view in Stack Management.\n" |
| 160 | + ], |
116 | 161 | "signature": [ |
117 | | - "(consumer: string, handler: ", |
118 | | - "AlertNavigationHandler", |
| 162 | + "(applicationId: string, handler: ", |
| 163 | + { |
| 164 | + "pluginId": "alerting", |
| 165 | + "scope": "public", |
| 166 | + "docId": "kibAlertingPluginApi", |
| 167 | + "section": "def-public.AlertNavigationHandler", |
| 168 | + "text": "AlertNavigationHandler" |
| 169 | + }, |
119 | 170 | ") => void" |
120 | 171 | ], |
121 | 172 | "source": { |
122 | 173 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
123 | | - "lineNumber": 20 |
| 174 | + "lineNumber": 46 |
124 | 175 | }, |
125 | 176 | "deprecated": false, |
126 | 177 | "returnComment": [], |
127 | 178 | "children": [ |
128 | 179 | { |
129 | 180 | "parentPluginId": "alerting", |
130 | | - "id": "def-public.consumer", |
| 181 | + "id": "def-public.applicationId", |
131 | 182 | "type": "string", |
132 | 183 | "tags": [], |
133 | | - "label": "consumer", |
134 | | - "description": [], |
| 184 | + "label": "applicationId", |
| 185 | + "description": [ |
| 186 | + "The application id that the user should be navigated to, to view a particular alert in a custom way." |
| 187 | + ], |
135 | 188 | "source": { |
136 | 189 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
137 | | - "lineNumber": 20 |
| 190 | + "lineNumber": 46 |
138 | 191 | }, |
139 | 192 | "deprecated": false |
140 | 193 | }, |
|
144 | 197 | "type": "Function", |
145 | 198 | "tags": [], |
146 | 199 | "label": "handler", |
147 | | - "description": [], |
| 200 | + "description": [ |
| 201 | + "The navigation handler should return either a relative URL, or a state object. This information can be used,\nin conjunction with the consumer id, to navigate the user to a custom URL to view a rule's details." |
| 202 | + ], |
148 | 203 | "signature": [ |
149 | 204 | "(alert: Pick<", |
150 | 205 | { |
|
154 | 209 | "section": "def-common.Alert", |
155 | 210 | "text": "Alert" |
156 | 211 | }, |
157 | | - "<never>, \"enabled\" | \"id\" | \"name\" | \"params\" | \"actions\" | \"tags\" | \"alertTypeId\" | \"consumer\" | \"schedule\" | \"scheduledTaskId\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"apiKeyOwner\" | \"throttle\" | \"notifyWhen\" | \"muteAll\" | \"mutedInstanceIds\" | \"executionStatus\">, alertType: ", |
158 | | - { |
159 | | - "pluginId": "alerting", |
160 | | - "scope": "common", |
161 | | - "docId": "kibAlertingPluginApi", |
162 | | - "section": "def-common.AlertType", |
163 | | - "text": "AlertType" |
164 | | - }, |
165 | | - "<\"default\", \"recovered\">) => string | ", |
| 212 | + "<never>, \"enabled\" | \"id\" | \"name\" | \"params\" | \"actions\" | \"tags\" | \"alertTypeId\" | \"consumer\" | \"schedule\" | \"scheduledTaskId\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"apiKeyOwner\" | \"throttle\" | \"notifyWhen\" | \"muteAll\" | \"mutedInstanceIds\" | \"executionStatus\">) => string | ", |
166 | 213 | { |
167 | 214 | "pluginId": "kibanaUtils", |
168 | 215 | "scope": "common", |
|
173 | 220 | ], |
174 | 221 | "source": { |
175 | 222 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
176 | | - "lineNumber": 20 |
| 223 | + "lineNumber": 46 |
177 | 224 | }, |
178 | 225 | "deprecated": false |
179 | 226 | } |
|
192 | 239 | "description": [], |
193 | 240 | "source": { |
194 | 241 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
195 | | - "lineNumber": 22 |
| 242 | + "lineNumber": 48 |
196 | 243 | }, |
197 | 244 | "deprecated": false, |
198 | 245 | "children": [ |
|
224 | 271 | ], |
225 | 272 | "source": { |
226 | 273 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
227 | | - "lineNumber": 23 |
| 274 | + "lineNumber": 49 |
228 | 275 | }, |
229 | 276 | "deprecated": false, |
230 | 277 | "returnComment": [], |
|
238 | 285 | "description": [], |
239 | 286 | "source": { |
240 | 287 | "path": "x-pack/plugins/alerting/public/plugin.ts", |
241 | | - "lineNumber": 23 |
| 288 | + "lineNumber": 49 |
242 | 289 | }, |
243 | 290 | "deprecated": false |
244 | 291 | } |
|
3857 | 3904 | "label": "ReservedActionGroups", |
3858 | 3905 | "description": [], |
3859 | 3906 | "signature": [ |
3860 | | - "\"recovered\" | RecoveryActionGroupId" |
| 3907 | + "RecoveryActionGroupId | \"recovered\"" |
3861 | 3908 | ], |
3862 | 3909 | "source": { |
3863 | 3910 | "path": "x-pack/plugins/alerting/common/builtin_action_groups.ts", |
|
0 commit comments