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
2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 | |