update_log_pattern
¶
update_log_pattern(
resource_group_name: ResourceGroupName,
pattern_set_name: LogPatternSetName,
pattern_name: LogPatternName,
*,
config_overrides: Optional[ApplicationInsightsClientConfig] = None,
pattern: Optional[LogPatternRegex] = None,
rank: Optional[LogPatternRank] = None,
) -> UpdateLogPatternResponse
Adds a log pattern to a LogPatternSet.
Parameters:
-
resource_group_name(ResourceGroupName) –The name of the resource group.
-
pattern_set_name(LogPatternSetName) –The name of the log pattern set.
-
pattern_name(LogPatternName) –The name of the log pattern.
-
pattern(Optional[LogPatternRegex], default:None) –The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.
-
rank(Optional[LogPatternRank], default:None) –Rank of the log pattern. Must be a value between
1and1,000,000. The patterns are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank1will be the first to get matched to a log line. A pattern of rank1,000,000will be last to get matched. When you configure custom log patterns from the console, aLowseverity pattern translates to a750,000rank. AMediumseverity pattern translates to a500,000rank. And aHighseverity pattern translates to a250,000rank. Rank values less than1or greater than1,000,000are reserved for Amazon Web Services provided patterns.
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
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 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 | |