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
2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 | |