1# coding=utf-8
2# --------------------------------------------------------------------------
3# Copyright (c) Microsoft Corporation. All rights reserved.
4# Licensed under the MIT License. See License.txt in the project root for license information.
5# Code generated by Microsoft (R) AutoRest Code Generator.
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------
8
9from enum import Enum, EnumMeta
10from six import with_metaclass
11
12class _CaseInsensitiveEnumMeta(EnumMeta):
13    def __getitem__(self, name):
14        return super().__getitem__(name.upper())
15
16    def __getattr__(cls, name):
17        """Return the enum member matching `name`
18        We use __getattr__ instead of descriptors or inserting into the enum
19        class' __dict__ in order to support `name` and `value` being both
20        properties for enum members (which live in the class' __dict__) and
21        enum members themselves.
22        """
23        try:
24            return cls._member_map_[name.upper()]
25        except KeyError:
26            raise AttributeError(name)
27
28
29class ApplicationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
30    """Type of application being monitored.
31    """
32
33    WEB = "web"
34    OTHER = "other"
35
36class CategoryType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
37
38    WORKBOOK = "workbook"
39    TSG = "TSG"
40    PERFORMANCE = "performance"
41    RETENTION = "retention"
42
43class FavoriteSourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
44
45    RETENTION = "retention"
46    NOTEBOOK = "notebook"
47    SESSIONS = "sessions"
48    EVENTS = "events"
49    USERFLOWS = "userflows"
50    FUNNEL = "funnel"
51    IMPACT = "impact"
52    SEGMENTATION = "segmentation"
53
54class FavoriteType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
55    """Enum indicating if this favorite definition is owned by a specific user or is shared between
56    all users with access to the Application Insights component.
57    """
58
59    SHARED = "shared"
60    USER = "user"
61
62class FlowType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
63    """Used by the Application Insights system to determine what kind of flow this component was
64    created by. This is to be set to 'Bluefield' when creating/updating a component via the REST
65    API.
66    """
67
68    BLUEFIELD = "Bluefield"
69
70class IngestionMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
71    """Indicates the flow of the ingestion.
72    """
73
74    APPLICATION_INSIGHTS = "ApplicationInsights"
75    APPLICATION_INSIGHTS_WITH_DIAGNOSTIC_SETTINGS = "ApplicationInsightsWithDiagnosticSettings"
76    LOG_ANALYTICS = "LogAnalytics"
77
78class ItemScope(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
79    """Enum indicating if this item definition is owned by a specific user or is shared between all
80    users with access to the Application Insights component.
81    """
82
83    SHARED = "shared"
84    USER = "user"
85
86class ItemScopePath(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
87
88    ANALYTICS_ITEMS = "analyticsItems"
89    MYANALYTICS_ITEMS = "myanalyticsItems"
90
91class ItemType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
92    """Enum indicating the type of the Analytics item.
93    """
94
95    QUERY = "query"
96    FUNCTION = "function"
97    FOLDER = "folder"
98    RECENT = "recent"
99
100class ItemTypeParameter(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
101
102    NONE = "none"
103    QUERY = "query"
104    FUNCTION = "function"
105    FOLDER = "folder"
106    RECENT = "recent"
107
108class PurgeState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
109    """Status of the operation represented by the requested Id.
110    """
111
112    PENDING = "pending"
113    COMPLETED = "completed"
114
115class RequestSource(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
116    """Describes what tool created this Application Insights component. Customers using this API
117    should set this to the default 'rest'.
118    """
119
120    REST = "rest"
121
122class SharedTypeKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
123    """The kind of workbook. Choices are user and shared.
124    """
125
126    USER = "user"
127    SHARED = "shared"
128
129class WebTestKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
130    """The kind of web test that this web test watches. Choices are ping and multistep.
131    """
132
133    PING = "ping"
134    MULTISTEP = "multistep"
135