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
2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 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 | |