update_problem
¶
update_problem(
problem_id: ProblemId,
*,
config_overrides: Optional[ApplicationInsightsClientConfig] = 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/application_insights.py
2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 | |