-
Notifications
You must be signed in to change notification settings - Fork 498
/
Copy pathapp-insights.yml
160 lines (159 loc) · 7.22 KB
/
app-insights.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
### YamlMime:AzureCLIGroup
uid: az_monitor_app-insights
name: az monitor app-insights
extensionInformation: >-
> [!NOTE]
> This reference is part of the **application-insights** extension for the Azure CLI (version 2.55.0 or higher). The extension will automatically install the first time you run an **az monitor app-insights** command. [Learn more](https://learn.microsoft.com/cli/azure/azure-cli-extensions-overview) about extensions.
summary: |-
Commands for querying data in Application Insights applications.
status: GA
sourceType: Extension
directCommands:
- uid: az_monitor_app-insights_migrate-to-new-pricing-model
name: az monitor app-insights migrate-to-new-pricing-model
summary: |-
Enterprise Agreement Customer opted to use new pricing model.
status: GA
sourceType: Extension
syntax: az monitor app-insights migrate-to-new-pricing-model
examples:
- summary: |-
Migrate to new pricing model
syntax: az monitor app-insights migrate-to-new-pricing-model
- uid: az_monitor_app-insights_query
name: az monitor app-insights query
summary: |-
Execute a query over data in your application.
status: GA
sourceType: Extension
syntax: >-
az monitor app-insights query --analytics-query
[--apps]
[--end-time]
[--ids]
[--offset]
[--resource-group]
[--start-time]
[--subscription]
examples:
- summary: |-
Execute a simple query over past 1 hour and 30 minutes.
syntax: az monitor app-insights query --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --analytics-query 'requests | summarize count() by bin(timestamp, 1h)' --offset 1h30m
requiredParameters:
- isRequired: true
name: --analytics-query
summary: |-
Query to execute over Application Insights data.
optionalParameters:
- name: --apps -a
summary: |-
GUID, app name, or fully-qualified Azure resource name of Application Insights component. The application GUID may be acquired from the API Access menu item on any Application Insights resource in the Azure portal. If using an application name, please specify resource group.
- name: --end-time
summary: |-
End of time range for current operation. Defaults to the current time. Format: date (yyyy-mm-dd) time (hh:mm:ss.xxxxx) timezone (+/-hh:mm).
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --offset
defaultValue: "1h"
summary: |-
Time offset of the query range, in ##d##h format.
description: |-
Can be used with either --start-time or --end-time. If used with --start-time, then the end time will be calculated by adding the offset. If used with --end-time (default), then the start time will be calculated by subtracting the offset. If --start-time and --end-time are provided, then --offset will be ignored.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --start-time
summary: |-
Start-time of time range for which to retrieve data. Format: date (yyyy-mm-dd) time (hh:mm:ss.xxxxx) timezone (+/-hh:mm).
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
commands:
- az_monitor_app-insights_api-key
- az_monitor_app-insights_api-key_create
- az_monitor_app-insights_api-key_delete
- az_monitor_app-insights_api-key_show
- az_monitor_app-insights_component
- az_monitor_app-insights_component_billing
- az_monitor_app-insights_component_billing_show
- az_monitor_app-insights_component_billing_update
- az_monitor_app-insights_component_connect-function
- az_monitor_app-insights_component_connect-webapp
- az_monitor_app-insights_component_continues-export
- az_monitor_app-insights_component_continues-export_create
- az_monitor_app-insights_component_continues-export_delete
- az_monitor_app-insights_component_continues-export_list
- az_monitor_app-insights_component_continues-export_show
- az_monitor_app-insights_component_continues-export_update
- az_monitor_app-insights_component_create
- az_monitor_app-insights_component_delete
- az_monitor_app-insights_component_favorite
- az_monitor_app-insights_component_favorite_create
- az_monitor_app-insights_component_favorite_delete
- az_monitor_app-insights_component_favorite_list
- az_monitor_app-insights_component_favorite_show
- az_monitor_app-insights_component_favorite_update
- az_monitor_app-insights_component_linked-storage
- az_monitor_app-insights_component_linked-storage_link
- az_monitor_app-insights_component_linked-storage_show
- az_monitor_app-insights_component_linked-storage_unlink
- az_monitor_app-insights_component_linked-storage_update
- az_monitor_app-insights_component_quotastatus
- az_monitor_app-insights_component_quotastatus_show
- az_monitor_app-insights_component_show
- az_monitor_app-insights_component_update
- az_monitor_app-insights_component_update-tags
- az_monitor_app-insights_events
- az_monitor_app-insights_events_show
- az_monitor_app-insights_metrics
- az_monitor_app-insights_metrics_get-metadata
- az_monitor_app-insights_metrics_show
- az_monitor_app-insights_migrate-to-new-pricing-model
- az_monitor_app-insights_my-workbook
- az_monitor_app-insights_my-workbook_list
- az_monitor_app-insights_query
- az_monitor_app-insights_web-test
- az_monitor_app-insights_web-test_create
- az_monitor_app-insights_web-test_delete
- az_monitor_app-insights_web-test_list
- az_monitor_app-insights_web-test_show
- az_monitor_app-insights_web-test_update
- az_monitor_app-insights_workbook
- az_monitor_app-insights_workbook_create
- az_monitor_app-insights_workbook_delete
- az_monitor_app-insights_workbook_identity
- az_monitor_app-insights_workbook_identity_assign
- az_monitor_app-insights_workbook_identity_remove
- az_monitor_app-insights_workbook_list
- az_monitor_app-insights_workbook_revision
- az_monitor_app-insights_workbook_revision_list
- az_monitor_app-insights_workbook_revision_show
- az_monitor_app-insights_workbook_show
- az_monitor_app-insights_workbook_update
globalParameters:
- name: --debug
summary: |-
Increase logging verbosity to show all debug logs.
- name: --help -h
summary: |-
Show this help message and exit.
- name: --only-show-errors
summary: |-
Only show errors, suppressing warnings.
- name: --output -o
defaultValue: "json"
parameterValueGroup: "json, jsonc, none, table, tsv, yaml, yamlc"
summary: |-
Output format.
- name: --query
summary: |-
JMESPath query string. See <a href="http://jmespath.org/">http://jmespath.org/</a> for more information and examples.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- name: --verbose
summary: |-
Increase logging verbosity. Use --debug for full debug logs.
metadata:
description: Commands for querying data in Application Insights applications.