update_log_pattern
async
¶
update_log_pattern(
resource_group_name: ResourceGroupName,
pattern_set_name: LogPatternSetName,
pattern_name: LogPatternName,
*,
config_overrides: Optional[AsyncApplicationInsightsClientConfig] = 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/async_application_insights.py
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 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 | |