update_omni_dashboard
async
¶
update_omni_dashboard(
space_id: SpaceId,
dashboard_id: DashboardId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
body: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
) -> UpdateOmniDashboardOutput
Updates an existing dashboard within a space. Only the provided fields are changed; omitted fields are left unchanged.
Parameters:
-
space_id(SpaceId) –The unique ID of the space.
-
dashboard_id(DashboardId) –The unique ID of the dashboard.
-
body(Optional[str], default:None) –The new dashboard definition, as a JSON document. Maximum 1 MiB. Omit to leave unchanged.
-
name(Optional[str], default:None) –A new name for the dashboard. Omit to leave unchanged.
-
description(Optional[str], default:None) –A new description of the dashboard. Omit to leave unchanged.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
ConflictException–The operation could not be completed because of a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–A service quota was exceeded.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a dashboard body The following example updates only the body of a dashboard; the name and description are left unchanged. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.update_omni_dashboard(space_id='a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d', dashboard_id='c3d4e5f6-7a8b-4c9d-8e0f-1a2b3c4d5e6f', body='{"panels":[{"type":"markdown","title":"Overview","layout":{"x":0,"y":0,"w":60,"h":120},"config":{"content":"Service health for OrderProcessor."}},{"type":"divider","title":"Errors","layout":{"x":0,"y":120,"w":60,"h":40}},{"type":"explore","title":"Lambda errors (5-minute rate)","layout":{"x":0,"y":160,"w":60,"h":400},"config":{"queries":[{"queryId":"A","queryLanguage":"promql","queryString":"sum(rate(aws_lambda_errors_sum{function_name=\\"OrderProcessor\\"}[5m]))"}],"visualization":"line"}}]}')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 | |