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
2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 | |