update_component_configuration
¶
update_component_configuration(
resource_group_name: ResourceGroupName,
component_name: ComponentName,
*,
config_overrides: Optional[ApplicationInsightsClientConfig] = 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/application_insights.py
2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 | |