update_problem
async
¶
update_problem(
problem_id: ProblemId,
*,
config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
update_status: Optional[UpdateStatus] = None,
visibility: Optional[Visibility] = None,
) -> UpdateProblemResponse
Updates the visibility of the problem or specifies the problem as RESOLVED.
Parameters:
-
problem_id(ProblemId) –The ID of the problem.
-
update_status(Optional[UpdateStatus], default:None) –The status of the problem. Arguments can be passed for only problems that show a status of
RECOVERING. -
visibility(Optional[Visibility], default:None) –The visibility of a problem. When you pass a value of
IGNORED, the problem is removed from the default view, and all notifications for the problem are suspended. WhenVISIBLEis passed, theIGNOREDaction is reversed.
Raises:
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource does not exist in the customer account.
-
ValidationException–The parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_application_insights/_services/async_application_insights.py
2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 | |