We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Typo in Documentation
### Description of issue (in as much detail as possible)

The delete command's description says Create instead of delete. 

az monitor app-insights component delete | Create a new Application Insights resource.



-----



--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/application-insights/setup.py`
Content:
```
1 #!/usr/bin/env python
2 
3 # --------------------------------------------------------------------------------------------
4 # Copyright (c) Microsoft Corporation. All rights reserved.
5 # Licensed under the MIT License. See License.txt in the project root for license information.
6 # --------------------------------------------------------------------------------------------
7 
8 from codecs import open
9 from setuptools import setup, find_packages
10 
11 VERSION = "0.1.5"
12 
13 CLASSIFIERS = [
14     'Development Status :: 4 - Beta',
15     'Intended Audience :: Developers',
16     'Intended Audience :: System Administrators',
17     'Programming Language :: Python',
18     'Programming Language :: Python :: 2',
19     'Programming Language :: Python :: 2.7',
20     'Programming Language :: Python :: 3',
21     'Programming Language :: Python :: 3.4',
22     'Programming Language :: Python :: 3.5',
23     'Programming Language :: Python :: 3.6',
24     'License :: OSI Approved :: MIT License',
25 ]
26 
27 DEPENDENCIES = []
28 
29 with open('README.rst', 'r', encoding='utf-8') as f:
30     README = f.read()
31 with open('HISTORY.rst', 'r', encoding='utf-8') as f:
32     HISTORY = f.read()
33 
34 setup(
35     name='application-insights',
36     version=VERSION,
37     description='Support for managing Application Insights components and querying metrics, events, and logs from such components.',
38     long_description=README + '\n\n' + HISTORY,
39     license='MIT',
40     author='Ace Eldeib',
41     author_email='aleldeib@microsoft.com',
42     url='https://github.com/Azure/azure-cli-extensions/tree/master/src/application-insights',
43     classifiers=CLASSIFIERS,
44     packages=find_packages(exclude=["tests"]),
45     package_data={'azext_applicationinsights': ['azext_metadata.json']},
46     install_requires=DEPENDENCIES
47 )
48
```

Path: `src/application-insights/azext_applicationinsights/_help.py`
Content:
```
1 # --------------------------------------------------------------------------------------------
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # Licensed under the MIT License. See License.txt in the project root for license information.
4 # --------------------------------------------------------------------------------------------
5 
6 from knack.help_files import helps
7 
8 # pylint: disable=line-too-long
9 
10 helps['monitor app-insights'] = """
11     type: group
12     short-summary: Commands for querying data in Application Insights applications.
13     parameters:
14       - name: --offset
15         short-summary: >
16           Time offset of the query range, in ##d##h format.
17         long-summary: >
18           Can be used with either --start-time or --end-time. If used with --start-time, then
19           the end time will be calculated by adding the offset. If used with --end-time (default), then
20           the start time will be calculated by subtracting the offset. If --start-time and --end-time are
21           provided, then --offset will be ignored.
22 """
23 
24 helps['monitor app-insights component'] = """
25     type: group
26     short-summary: Manage an Application Insights component or its subcomponents.
27 """
28 
29 helps['monitor app-insights component create'] = """
30     type: command
31     short-summary: Create a new Application Insights resource.
32     parameters:
33       - name: --application-type
34         type: string
35         short-summary: Type of application being monitored. Possible values include 'web', 'other'. Default value is'web' .
36       - name: --kind -k
37         type: string
38         short-summary: The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of web, ios, other, store, java, phone.
39     examples:
40       - name: Create a component with kind web and location.
41         text: |
42           az monitor app-insights component create --app demoApp --location westus2 --kind web -g demoRg --application-type web
43 """
44 
45 helps['monitor app-insights component update'] = """
46     type: command
47     short-summary: Update properties on an existing Application Insights resource. The primary value which can be updated is kind, which customizes the UI experience.
48     parameters:
49       - name: --kind -k
50         type: string
51         short-summary: The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of web, ios, other, store, java, phone.
52     examples:
53       - name: Update a component with kind web.
54         text: |
55           az monitor app-insights component update --app demoApp -k web -g demoRg
56 """
57 
58 helps['monitor app-insights component update-tags'] = """
59     type: command
60     short-summary: Update tags on an existing Application Insights resource.
61     examples:
62       - name: Update the tag 'name' to equal 'value'.
63         text: |
64           az monitor app-insights component update-tags --app demoApp --tags name=value -g demoRg
65 """
66 
67 helps['monitor app-insights component show'] = """
68     type: command
69     short-summary: Get an Application Insights resource.
70     examples:
71       - name: Get a component by name.
72         text: |
73           az monitor app-insights component show --app demoApp -g demoRg
74       - name: List components in a resource group.
75         text: |
76           az monitor app-insights component show -g demoRg
77       - name: List components in the currently selected subscription.
78         text: |
79           az monitor app-insights component show
80 """
81 
82 helps['monitor app-insights component delete'] = """
83     type: command
84     short-summary: Create a new Application Insights resource.
85     examples:
86       - name: Create a component with kind web and location.
87         text: |
88           az monitor app-insights component delete --app demoApp -g demoRg
89 """
90 
91 helps['monitor app-insights component billing'] = """
92     type: group
93     short-summary: Manage an Application Insights component billing features.
94 """
95 
96 helps['monitor app-insights component billing show'] = """
97     type: command
98     short-summary: Show the billing features of an Application Insights resource.
99     examples:
100       - name: Show the billing features of an application insights component
101         text: |
102           az monitor app-insights component billing show --app demoApp -g demoRg
103 """
104 
105 helps['monitor app-insights component billing update'] = """
106     type: command
107     short-summary: Update the billing features of an Application Insights resource.
108     examples:
109       - name: Update the daily cap of the billing features
110         text: |
111           az monitor app-insights component billing update --app demoApp -g demoRg --cap 200 --stop
112 """
113 
114 helps['monitor app-insights api-key'] = """
115     type: group
116     short-summary: Operations on API keys associated with an Application Insights component.
117 """
118 
119 helps['monitor app-insights api-key show'] = """
120     type: command
121     short-summary: Get all keys or a specific API key associated with an Application Insights resource.
122     parameters:
123       - name: --api-key
124         type: string
125         short-summary: name of the API key to fetch. Can be found using `api-keys show`.
126     examples:
127       - name: Fetch API Key.
128         text: |
129           az monitor app-insights api-key show --app demoApp -g demoRg --api-key demo-key
130       - name: Fetch API Keys.
131         text: |
132           az monitor app-insights api-key show --app demoApp -g demoRg
133 """
134 
135 helps['monitor app-insights api-key delete'] = """
136     type: command
137     short-summary: Delete an API key from an Application Insights resource.
138     parameters:
139       - name: --api-key
140         type: string
141         short-summary: Name of the API key to delete. Can be found using `api-keys show`.
142     examples:
143       - name: Delete API Key.
144         text: |
145           az monitor app-insights api-key delete --app demoApp -g demoRg --api-key demo-key
146 """
147 
148 helps['monitor app-insights api-key create'] = """
149     type: command
150     short-summary: Create a new API key for use with an Application Insights resource.
151     parameters:
152       - name: --api-key
153         type: string
154         short-summary: Name of the API key to create.
155       - name: --read-properties
156         type: list
157         short-summary: A space seperated list of names of read Roles for this API key to inherit. Possible values include ReadTelemetry and AuthenticateSDKControlChannel.
158       - name: --write-properties
159         type: list
160         short-summary: A space seperated list of names of write Roles for this API key to inherit. Possible values include WriteAnnotations.
161     examples:
162       - name: Create a component with kind web and location.
163         text: |
164           az monitor app-insights api-key create --api-key cli-demo --read-properties ReadTelemetry -g demoRg --app testApp
165 """
166 
167 helps['monitor app-insights metrics'] = """
168     type: group
169     short-summary: Retrieve metrics from an application.
170 """
171 
172 helps['monitor app-insights events'] = """
173     type: group
174     short-summary: Retrieve events from an application.
175 """
176 
177 helps['monitor app-insights query'] = """
178     type: command
179     short-summary: Execute a query over data in your application.
180     parameters:
181       - name: --offset
182         short-summary: >
183           Time offset of the query range, in ##d##h format.
184         long-summary: >
185           Can be used with either --start-time or --end-time. If used with --start-time, then
186           the end time will be calculated by adding the offset. If used with --end-time (default), then
187           the start time will be calculated by subtracting the offset. If --start-time and --end-time are
188           provided, then --offset will be ignored.
189     examples:
190       - name: Execute a simple query over past 1 hour and 30 minutes.
191         text: |
192           az monitor app-insights query --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --analytics-query 'requests | summarize count() by bin(timestamp, 1h)' --offset 1h30m
193 """
194 
195 helps['monitor app-insights metrics show'] = """
196     type: command
197     short-summary: View the value of a single metric.
198     parameters:
199       - name: --interval
200         short-summary: >
201           The interval over which to aggregate metrics, in ##h##m format.
202       - name: --offset
203         short-summary: >
204           Time offset of the query range, in ##d##h format.
205         long-summary: >
206           Can be used with either --start-time or --end-time. If used with --start-time, then
207           the end time will be calculated by adding the offset. If used with --end-time (default), then
208           the start time will be calculated by subtracting the offset. If --start-time and --end-time are
209           provided, then --offset will be ignored.
210     examples:
211       - name: View the count of availabilityResults events.
212         text: |
213           az monitor app-insights metrics show --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --metric availabilityResults/count
214 """
215 
216 helps['monitor app-insights metrics get-metadata'] = """
217     type: command
218     short-summary: Get the metadata for metrics on a particular application.
219     examples:
220       - name: Views the metadata for the provided app.
221         text: |
222           az monitor app-insights metrics get-metadata --app e292531c-eb03-4079-9bb0-fe6b56b99f8b
223 """
224 
225 helps['monitor app-insights events show'] = """
226     type: command
227     short-summary: List events by type or view a single event from an application, specified by type and ID.
228     parameters:
229       - name: --offset
230         short-summary: >
231           Time offset of the query range, in ##d##h format.
232         long-summary: >
233           Can be used with either --start-time or --end-time. If used with --start-time, then
234           the end time will be calculated by adding the offset. If used with --end-time (default), then
235           the start time will be calculated by subtracting the offset. If --start-time and --end-time are
236           provided, then --offset will be ignored.
237     examples:
238       - name: Get an availability result by ID.
239         text: |
240           az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --event b2cf08df-bf42-4278-8d2c-5b55f85901fe
241       - name: List availability results from the last 24 hours.
242         text: |
243           az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --offset 24h
244 """
245
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/src/application-insights/azext_applicationinsights/_help.py b/src/application-insights/azext_applicationinsights/_help.py
--- a/src/application-insights/azext_applicationinsights/_help.py
+++ b/src/application-insights/azext_applicationinsights/_help.py
@@ -81,9 +81,9 @@
 
 helps['monitor app-insights component delete'] = """
     type: command
-    short-summary: Create a new Application Insights resource.
+    short-summary: Delete a new Application Insights resource.
     examples:
-      - name: Create a component with kind web and location.
+      - name: Delete a component with kind web and location.
         text: |
           az monitor app-insights component delete --app demoApp -g demoRg
 """
diff --git a/src/application-insights/setup.py b/src/application-insights/setup.py
--- a/src/application-insights/setup.py
+++ b/src/application-insights/setup.py
@@ -8,7 +8,7 @@
 from codecs import open
 from setuptools import setup, find_packages
 
-VERSION = "0.1.5"
+VERSION = "0.1.6"
 
 CLASSIFIERS = [
     'Development Status :: 4 - Beta',

{"golden_diff": "diff --git a/src/application-insights/azext_applicationinsights/_help.py b/src/application-insights/azext_applicationinsights/_help.py\n--- a/src/application-insights/azext_applicationinsights/_help.py\n+++ b/src/application-insights/azext_applicationinsights/_help.py\n@@ -81,9 +81,9 @@\n \n helps['monitor app-insights component delete'] = \"\"\"\n     type: command\n-    short-summary: Create a new Application Insights resource.\n+    short-summary: Delete a new Application Insights resource.\n     examples:\n-      - name: Create a component with kind web and location.\n+      - name: Delete a component with kind web and location.\n         text: |\n           az monitor app-insights component delete --app demoApp -g demoRg\n \"\"\"\ndiff --git a/src/application-insights/setup.py b/src/application-insights/setup.py\n--- a/src/application-insights/setup.py\n+++ b/src/application-insights/setup.py\n@@ -8,7 +8,7 @@\n from codecs import open\n from setuptools import setup, find_packages\n \n-VERSION = \"0.1.5\"\n+VERSION = \"0.1.6\"\n \n CLASSIFIERS = [\n     'Development Status :: 4 - Beta',\n", "issue": "Typo in Documentation\n### Description of issue (in as much detail as possible)\r\n\r\nThe delete command's description says Create instead of delete. \r\n\r\naz monitor app-insights component delete | Create a new Application Insights resource.\r\n\r\n\r\n\r\n-----\r\n\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\n# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# --------------------------------------------------------------------------------------------\n\nfrom codecs import open\nfrom setuptools import setup, find_packages\n\nVERSION = \"0.1.5\"\n\nCLASSIFIERS = [\n    'Development Status :: 4 - Beta',\n    'Intended Audience :: Developers',\n    'Intended Audience :: System Administrators',\n    'Programming Language :: Python',\n    'Programming Language :: Python :: 2',\n    'Programming Language :: Python :: 2.7',\n    'Programming Language :: Python :: 3',\n    'Programming Language :: Python :: 3.4',\n    'Programming Language :: Python :: 3.5',\n    'Programming Language :: Python :: 3.6',\n    'License :: OSI Approved :: MIT License',\n]\n\nDEPENDENCIES = []\n\nwith open('README.rst', 'r', encoding='utf-8') as f:\n    README = f.read()\nwith open('HISTORY.rst', 'r', encoding='utf-8') as f:\n    HISTORY = f.read()\n\nsetup(\n    name='application-insights',\n    version=VERSION,\n    description='Support for managing Application Insights components and querying metrics, events, and logs from such components.',\n    long_description=README + '\\n\\n' + HISTORY,\n    license='MIT',\n    author='Ace Eldeib',\n    author_email='aleldeib@microsoft.com',\n    url='https://github.com/Azure/azure-cli-extensions/tree/master/src/application-insights',\n    classifiers=CLASSIFIERS,\n    packages=find_packages(exclude=[\"tests\"]),\n    package_data={'azext_applicationinsights': ['azext_metadata.json']},\n    install_requires=DEPENDENCIES\n)\n", "path": "src/application-insights/setup.py"}, {"content": "# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# --------------------------------------------------------------------------------------------\n\nfrom knack.help_files import helps\n\n# pylint: disable=line-too-long\n\nhelps['monitor app-insights'] = \"\"\"\n    type: group\n    short-summary: Commands for querying data in Application Insights applications.\n    parameters:\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n\"\"\"\n\nhelps['monitor app-insights component'] = \"\"\"\n    type: group\n    short-summary: Manage an Application Insights component or its subcomponents.\n\"\"\"\n\nhelps['monitor app-insights component create'] = \"\"\"\n    type: command\n    short-summary: Create a new Application Insights resource.\n    parameters:\n      - name: --application-type\n        type: string\n        short-summary: Type of application being monitored. Possible values include 'web', 'other'. Default value is'web' .\n      - name: --kind -k\n        type: string\n        short-summary: The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of web, ios, other, store, java, phone.\n    examples:\n      - name: Create a component with kind web and location.\n        text: |\n          az monitor app-insights component create --app demoApp --location westus2 --kind web -g demoRg --application-type web\n\"\"\"\n\nhelps['monitor app-insights component update'] = \"\"\"\n    type: command\n    short-summary: Update properties on an existing Application Insights resource. The primary value which can be updated is kind, which customizes the UI experience.\n    parameters:\n      - name: --kind -k\n        type: string\n        short-summary: The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of web, ios, other, store, java, phone.\n    examples:\n      - name: Update a component with kind web.\n        text: |\n          az monitor app-insights component update --app demoApp -k web -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component update-tags'] = \"\"\"\n    type: command\n    short-summary: Update tags on an existing Application Insights resource.\n    examples:\n      - name: Update the tag 'name' to equal 'value'.\n        text: |\n          az monitor app-insights component update-tags --app demoApp --tags name=value -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component show'] = \"\"\"\n    type: command\n    short-summary: Get an Application Insights resource.\n    examples:\n      - name: Get a component by name.\n        text: |\n          az monitor app-insights component show --app demoApp -g demoRg\n      - name: List components in a resource group.\n        text: |\n          az monitor app-insights component show -g demoRg\n      - name: List components in the currently selected subscription.\n        text: |\n          az monitor app-insights component show\n\"\"\"\n\nhelps['monitor app-insights component delete'] = \"\"\"\n    type: command\n    short-summary: Create a new Application Insights resource.\n    examples:\n      - name: Create a component with kind web and location.\n        text: |\n          az monitor app-insights component delete --app demoApp -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component billing'] = \"\"\"\n    type: group\n    short-summary: Manage an Application Insights component billing features.\n\"\"\"\n\nhelps['monitor app-insights component billing show'] = \"\"\"\n    type: command\n    short-summary: Show the billing features of an Application Insights resource.\n    examples:\n      - name: Show the billing features of an application insights component\n        text: |\n          az monitor app-insights component billing show --app demoApp -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component billing update'] = \"\"\"\n    type: command\n    short-summary: Update the billing features of an Application Insights resource.\n    examples:\n      - name: Update the daily cap of the billing features\n        text: |\n          az monitor app-insights component billing update --app demoApp -g demoRg --cap 200 --stop\n\"\"\"\n\nhelps['monitor app-insights api-key'] = \"\"\"\n    type: group\n    short-summary: Operations on API keys associated with an Application Insights component.\n\"\"\"\n\nhelps['monitor app-insights api-key show'] = \"\"\"\n    type: command\n    short-summary: Get all keys or a specific API key associated with an Application Insights resource.\n    parameters:\n      - name: --api-key\n        type: string\n        short-summary: name of the API key to fetch. Can be found using `api-keys show`.\n    examples:\n      - name: Fetch API Key.\n        text: |\n          az monitor app-insights api-key show --app demoApp -g demoRg --api-key demo-key\n      - name: Fetch API Keys.\n        text: |\n          az monitor app-insights api-key show --app demoApp -g demoRg\n\"\"\"\n\nhelps['monitor app-insights api-key delete'] = \"\"\"\n    type: command\n    short-summary: Delete an API key from an Application Insights resource.\n    parameters:\n      - name: --api-key\n        type: string\n        short-summary: Name of the API key to delete. Can be found using `api-keys show`.\n    examples:\n      - name: Delete API Key.\n        text: |\n          az monitor app-insights api-key delete --app demoApp -g demoRg --api-key demo-key\n\"\"\"\n\nhelps['monitor app-insights api-key create'] = \"\"\"\n    type: command\n    short-summary: Create a new API key for use with an Application Insights resource.\n    parameters:\n      - name: --api-key\n        type: string\n        short-summary: Name of the API key to create.\n      - name: --read-properties\n        type: list\n        short-summary: A space seperated list of names of read Roles for this API key to inherit. Possible values include ReadTelemetry and AuthenticateSDKControlChannel.\n      - name: --write-properties\n        type: list\n        short-summary: A space seperated list of names of write Roles for this API key to inherit. Possible values include WriteAnnotations.\n    examples:\n      - name: Create a component with kind web and location.\n        text: |\n          az monitor app-insights api-key create --api-key cli-demo --read-properties ReadTelemetry -g demoRg --app testApp\n\"\"\"\n\nhelps['monitor app-insights metrics'] = \"\"\"\n    type: group\n    short-summary: Retrieve metrics from an application.\n\"\"\"\n\nhelps['monitor app-insights events'] = \"\"\"\n    type: group\n    short-summary: Retrieve events from an application.\n\"\"\"\n\nhelps['monitor app-insights query'] = \"\"\"\n    type: command\n    short-summary: Execute a query over data in your application.\n    parameters:\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n    examples:\n      - name: Execute a simple query over past 1 hour and 30 minutes.\n        text: |\n          az monitor app-insights query --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --analytics-query 'requests | summarize count() by bin(timestamp, 1h)' --offset 1h30m\n\"\"\"\n\nhelps['monitor app-insights metrics show'] = \"\"\"\n    type: command\n    short-summary: View the value of a single metric.\n    parameters:\n      - name: --interval\n        short-summary: >\n          The interval over which to aggregate metrics, in ##h##m format.\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n    examples:\n      - name: View the count of availabilityResults events.\n        text: |\n          az monitor app-insights metrics show --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --metric availabilityResults/count\n\"\"\"\n\nhelps['monitor app-insights metrics get-metadata'] = \"\"\"\n    type: command\n    short-summary: Get the metadata for metrics on a particular application.\n    examples:\n      - name: Views the metadata for the provided app.\n        text: |\n          az monitor app-insights metrics get-metadata --app e292531c-eb03-4079-9bb0-fe6b56b99f8b\n\"\"\"\n\nhelps['monitor app-insights events show'] = \"\"\"\n    type: command\n    short-summary: List events by type or view a single event from an application, specified by type and ID.\n    parameters:\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n    examples:\n      - name: Get an availability result by ID.\n        text: |\n          az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --event b2cf08df-bf42-4278-8d2c-5b55f85901fe\n      - name: List availability results from the last 24 hours.\n        text: |\n          az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --offset 24h\n\"\"\"\n", "path": "src/application-insights/azext_applicationinsights/_help.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\n# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# --------------------------------------------------------------------------------------------\n\nfrom codecs import open\nfrom setuptools import setup, find_packages\n\nVERSION = \"0.1.6\"\n\nCLASSIFIERS = [\n    'Development Status :: 4 - Beta',\n    'Intended Audience :: Developers',\n    'Intended Audience :: System Administrators',\n    'Programming Language :: Python',\n    'Programming Language :: Python :: 2',\n    'Programming Language :: Python :: 2.7',\n    'Programming Language :: Python :: 3',\n    'Programming Language :: Python :: 3.4',\n    'Programming Language :: Python :: 3.5',\n    'Programming Language :: Python :: 3.6',\n    'License :: OSI Approved :: MIT License',\n]\n\nDEPENDENCIES = []\n\nwith open('README.rst', 'r', encoding='utf-8') as f:\n    README = f.read()\nwith open('HISTORY.rst', 'r', encoding='utf-8') as f:\n    HISTORY = f.read()\n\nsetup(\n    name='application-insights',\n    version=VERSION,\n    description='Support for managing Application Insights components and querying metrics, events, and logs from such components.',\n    long_description=README + '\\n\\n' + HISTORY,\n    license='MIT',\n    author='Ace Eldeib',\n    author_email='aleldeib@microsoft.com',\n    url='https://github.com/Azure/azure-cli-extensions/tree/master/src/application-insights',\n    classifiers=CLASSIFIERS,\n    packages=find_packages(exclude=[\"tests\"]),\n    package_data={'azext_applicationinsights': ['azext_metadata.json']},\n    install_requires=DEPENDENCIES\n)\n", "path": "src/application-insights/setup.py"}, {"content": "# --------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# --------------------------------------------------------------------------------------------\n\nfrom knack.help_files import helps\n\n# pylint: disable=line-too-long\n\nhelps['monitor app-insights'] = \"\"\"\n    type: group\n    short-summary: Commands for querying data in Application Insights applications.\n    parameters:\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n\"\"\"\n\nhelps['monitor app-insights component'] = \"\"\"\n    type: group\n    short-summary: Manage an Application Insights component or its subcomponents.\n\"\"\"\n\nhelps['monitor app-insights component create'] = \"\"\"\n    type: command\n    short-summary: Create a new Application Insights resource.\n    parameters:\n      - name: --application-type\n        type: string\n        short-summary: Type of application being monitored. Possible values include 'web', 'other'. Default value is'web' .\n      - name: --kind -k\n        type: string\n        short-summary: The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of web, ios, other, store, java, phone.\n    examples:\n      - name: Create a component with kind web and location.\n        text: |\n          az monitor app-insights component create --app demoApp --location westus2 --kind web -g demoRg --application-type web\n\"\"\"\n\nhelps['monitor app-insights component update'] = \"\"\"\n    type: command\n    short-summary: Update properties on an existing Application Insights resource. The primary value which can be updated is kind, which customizes the UI experience.\n    parameters:\n      - name: --kind -k\n        type: string\n        short-summary: The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of web, ios, other, store, java, phone.\n    examples:\n      - name: Update a component with kind web.\n        text: |\n          az monitor app-insights component update --app demoApp -k web -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component update-tags'] = \"\"\"\n    type: command\n    short-summary: Update tags on an existing Application Insights resource.\n    examples:\n      - name: Update the tag 'name' to equal 'value'.\n        text: |\n          az monitor app-insights component update-tags --app demoApp --tags name=value -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component show'] = \"\"\"\n    type: command\n    short-summary: Get an Application Insights resource.\n    examples:\n      - name: Get a component by name.\n        text: |\n          az monitor app-insights component show --app demoApp -g demoRg\n      - name: List components in a resource group.\n        text: |\n          az monitor app-insights component show -g demoRg\n      - name: List components in the currently selected subscription.\n        text: |\n          az monitor app-insights component show\n\"\"\"\n\nhelps['monitor app-insights component delete'] = \"\"\"\n    type: command\n    short-summary: Delete a new Application Insights resource.\n    examples:\n      - name: Delete a component with kind web and location.\n        text: |\n          az monitor app-insights component delete --app demoApp -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component billing'] = \"\"\"\n    type: group\n    short-summary: Manage an Application Insights component billing features.\n\"\"\"\n\nhelps['monitor app-insights component billing show'] = \"\"\"\n    type: command\n    short-summary: Show the billing features of an Application Insights resource.\n    examples:\n      - name: Show the billing features of an application insights component\n        text: |\n          az monitor app-insights component billing show --app demoApp -g demoRg\n\"\"\"\n\nhelps['monitor app-insights component billing update'] = \"\"\"\n    type: command\n    short-summary: Update the billing features of an Application Insights resource.\n    examples:\n      - name: Update the daily cap of the billing features\n        text: |\n          az monitor app-insights component billing update --app demoApp -g demoRg --cap 200 --stop\n\"\"\"\n\nhelps['monitor app-insights api-key'] = \"\"\"\n    type: group\n    short-summary: Operations on API keys associated with an Application Insights component.\n\"\"\"\n\nhelps['monitor app-insights api-key show'] = \"\"\"\n    type: command\n    short-summary: Get all keys or a specific API key associated with an Application Insights resource.\n    parameters:\n      - name: --api-key\n        type: string\n        short-summary: name of the API key to fetch. Can be found using `api-keys show`.\n    examples:\n      - name: Fetch API Key.\n        text: |\n          az monitor app-insights api-key show --app demoApp -g demoRg --api-key demo-key\n      - name: Fetch API Keys.\n        text: |\n          az monitor app-insights api-key show --app demoApp -g demoRg\n\"\"\"\n\nhelps['monitor app-insights api-key delete'] = \"\"\"\n    type: command\n    short-summary: Delete an API key from an Application Insights resource.\n    parameters:\n      - name: --api-key\n        type: string\n        short-summary: Name of the API key to delete. Can be found using `api-keys show`.\n    examples:\n      - name: Delete API Key.\n        text: |\n          az monitor app-insights api-key delete --app demoApp -g demoRg --api-key demo-key\n\"\"\"\n\nhelps['monitor app-insights api-key create'] = \"\"\"\n    type: command\n    short-summary: Create a new API key for use with an Application Insights resource.\n    parameters:\n      - name: --api-key\n        type: string\n        short-summary: Name of the API key to create.\n      - name: --read-properties\n        type: list\n        short-summary: A space seperated list of names of read Roles for this API key to inherit. Possible values include ReadTelemetry and AuthenticateSDKControlChannel.\n      - name: --write-properties\n        type: list\n        short-summary: A space seperated list of names of write Roles for this API key to inherit. Possible values include WriteAnnotations.\n    examples:\n      - name: Create a component with kind web and location.\n        text: |\n          az monitor app-insights api-key create --api-key cli-demo --read-properties ReadTelemetry -g demoRg --app testApp\n\"\"\"\n\nhelps['monitor app-insights metrics'] = \"\"\"\n    type: group\n    short-summary: Retrieve metrics from an application.\n\"\"\"\n\nhelps['monitor app-insights events'] = \"\"\"\n    type: group\n    short-summary: Retrieve events from an application.\n\"\"\"\n\nhelps['monitor app-insights query'] = \"\"\"\n    type: command\n    short-summary: Execute a query over data in your application.\n    parameters:\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n    examples:\n      - name: Execute a simple query over past 1 hour and 30 minutes.\n        text: |\n          az monitor app-insights query --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --analytics-query 'requests | summarize count() by bin(timestamp, 1h)' --offset 1h30m\n\"\"\"\n\nhelps['monitor app-insights metrics show'] = \"\"\"\n    type: command\n    short-summary: View the value of a single metric.\n    parameters:\n      - name: --interval\n        short-summary: >\n          The interval over which to aggregate metrics, in ##h##m format.\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n    examples:\n      - name: View the count of availabilityResults events.\n        text: |\n          az monitor app-insights metrics show --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --metric availabilityResults/count\n\"\"\"\n\nhelps['monitor app-insights metrics get-metadata'] = \"\"\"\n    type: command\n    short-summary: Get the metadata for metrics on a particular application.\n    examples:\n      - name: Views the metadata for the provided app.\n        text: |\n          az monitor app-insights metrics get-metadata --app e292531c-eb03-4079-9bb0-fe6b56b99f8b\n\"\"\"\n\nhelps['monitor app-insights events show'] = \"\"\"\n    type: command\n    short-summary: List events by type or view a single event from an application, specified by type and ID.\n    parameters:\n      - name: --offset\n        short-summary: >\n          Time offset of the query range, in ##d##h format.\n        long-summary: >\n          Can be used with either --start-time or --end-time. If used with --start-time, then\n          the end time will be calculated by adding the offset. If used with --end-time (default), then\n          the start time will be calculated by subtracting the offset. If --start-time and --end-time are\n          provided, then --offset will be ignored.\n    examples:\n      - name: Get an availability result by ID.\n        text: |\n          az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --event b2cf08df-bf42-4278-8d2c-5b55f85901fe\n      - name: List availability results from the last 24 hours.\n        text: |\n          az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --offset 24h\n\"\"\"\n", "path": "src/application-insights/azext_applicationinsights/_help.py"}]}