list_health_events
async
¶
list_health_events(
monitor_name: ResourceName,
*,
config_overrides: Optional[AsyncInternetMonitorClientConfig] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
next_token: Optional[str] = None,
max_results: Optional[MaxResults] = None,
event_status: Optional[HealthEventStatus] = None,
linked_account_id: Optional[AccountId] = None,
) -> ListHealthEventsOutput
Lists all health events for a monitor in Amazon CloudWatch Internet Monitor. Returns information for health events including the event start and end times, and the status.
Health events that have start times during the time frame that is requested are not included in the list of health events.
Parameters:
-
monitor_name(ResourceName) –The name of the monitor.
-
start_time(Optional[datetime], default:None) –The time when a health event started.
-
end_time(Optional[datetime], default:None) –The time when a health event ended. If the health event is still ongoing, then the end time is not set.
-
next_token(Optional[str], default:None) –The token for the next set of results. You receive this token from a previous call.
-
max_results(Optional[MaxResults], default:None) –The number of health event objects that you want to return with this call.
-
event_status(Optional[HealthEventStatus], default:None) –The status of a health event.
-
linked_account_id(Optional[AccountId], default:None) –The account ID for an account that you've set up cross-account sharing for in Amazon CloudWatch Internet Monitor. You configure cross-account sharing by using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
InternalServerException–An internal error occurred.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–Invalid request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_internetmonitor/_services/async_internet_monitor.py
1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 | |