update_component_configuration
async
¶
update_component_configuration(
resource_group_name: ResourceGroupName,
component_name: ComponentName,
*,
config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
monitor: Optional[Monitor] = None,
tier: Optional[Tier] = None,
component_configuration: Optional[ComponentConfiguration] = None,
auto_config_enabled: Optional[AutoConfigEnabled] = None,
) -> UpdateComponentConfigurationResponse
Updates the monitoring configurations for the component. The configuration input parameter is an escaped JSON of the configuration and should match the schema of what is returned by DescribeComponentConfigurationRecommendation.
Parameters:
-
resource_group_name(ResourceGroupName) –The name of the resource group.
-
component_name(ComponentName) –The name of the component.
-
monitor(Optional[Monitor], default:None) –Indicates whether the application component is monitored.
-
tier(Optional[Tier], default:None) –The tier of the application component.
-
component_configuration(Optional[ComponentConfiguration], default:None) –The configuration settings of the component. The value is the escaped JSON of the configuration. For more information about the JSON format, see Working with JSON. You can send a request to
DescribeComponentConfigurationRecommendationto see the recommended configuration for a component. For the complete format of the component configuration file, see Component Configuration. -
auto_config_enabled(Optional[AutoConfigEnabled], default:None) –Automatically configures the component by applying the recommended configurations.
Raises:
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceInUseException–The resource is already created or in use.
-
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
2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 | |