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
2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 | |