update_omni_dashboard
¶
update_omni_dashboard(
space_id: SpaceId,
dashboard_id: DashboardId,
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = 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.
>>> 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/cloud_watch_omni.py
6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 | |