Debian Codegraph @

docs/dyn/beyondcorp_v1alpha.projects.locations.insights.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="beyondcorp_v1alpha.html">BeyondCorp API</a> . <a href="beyondcorp_v1alpha.projects.html">projects</a> . <a href="beyondcorp_v1alpha.projects.locations.html">locations</a> . <a href="beyondcorp_v1alpha.projects.locations.insights.html">insights</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#configuredInsight">configuredInsight(insight, aggregation=None, customGrouping_fieldFilter=None, customGrouping_groupFields=None, endTime=None, fieldFilter=None, group=None, pageSize=None, pageToken=None, startTime=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Gets the value for a selected particular insight based on the provided filters. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project.</p>
83 <p class="toc_element">
84 <code><a href="#configuredInsight_next">configuredInsight_next()</a></code></p>
85 <p class="firstline">Retrieves the next page of results.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the value for a selected particular insight with default configuration. The default aggregation level is 'DAILY' and no grouping will be applied or default grouping if applicable. The data will be returned for recent 7 days starting the day before. The insight data size will be limited to 50 rows. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project. Setting the `view` to `BASIC` will only return the metadata for the insight.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, aggregation=None, endTime=None, filter=None, orderBy=None, pageSize=None, pageToken=None, startTime=None, view=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists for all the available insights that could be fetched from the system. Allows to filter using category. Setting the `view` to `BASIC` will let you iterate over the list of insight metadatas.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <h3>Method Details</h3>
96 <div class="method">
97 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99 </div>
100
101 <div class="method">
102 <code class="details" id="configuredInsight">configuredInsight(insight, aggregation=None, customGrouping_fieldFilter=None, customGrouping_groupFields=None, endTime=None, fieldFilter=None, group=None, pageSize=None, pageToken=None, startTime=None, x__xgafv=None)</code>
103 <pre>Gets the value for a selected particular insight based on the provided filters. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project.
104
105 Args:
106 insight: string, Required. The resource name of the insight using the form: `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` `projects/{project_id}/locations/{location_id}/insights/{insight_id}`. (required)
107 aggregation: string, Required. Aggregation type. Available aggregation could be fetched by calling insight list and get APIs in `BASIC` view.
108 Allowed values
109 AGGREGATION_UNSPECIFIED - Unspecified.
110 HOURLY - Insight should be aggregated at hourly level.
111 DAILY - Insight should be aggregated at daily level.
112 WEEKLY - Insight should be aggregated at weekly level.
113 MONTHLY - Insight should be aggregated at monthly level.
114 CUSTOM_DATE_RANGE - Insight should be aggregated at the custom date range passed in as the start and end time in the request.
115 customGrouping_fieldFilter: string, Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
116 customGrouping_groupFields: string, Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here. (repeated)
117 endTime: string, Required. Ending time for the duration for which insight is to be pulled.
118 fieldFilter: string, Optional. Other filterable/configurable parameters as applicable to the selected insight. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
119 group: string, Optional. Group id of the available groupings for the insight. Available groupings could be fetched by calling insight list and get APIs in `BASIC` view.
120 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
121 pageToken: string, Optional. Used to fetch the page represented by the token. Fetches the first page when not set.
122 startTime: string, Required. Starting time for the duration for which insight is to be pulled.
123 x__xgafv: string, V1 error format.
124 Allowed values
125 1 - v1 error format
126 2 - v2 error format
127
128 Returns:
129 An object of the form:
130
131 { # The response for the configured insight.
132 &quot;appliedConfig&quot;: { # The configuration that was applied to generate the result. # Output only. Applied insight config to generate the result data rows.
133 &quot;aggregation&quot;: &quot;A String&quot;, # Output only. Aggregation type applied.
134 &quot;customGrouping&quot;: { # Customised grouping option that allows setting the group_by fields and also the filters togather for a configured insight request. # Output only. Customised grouping applied.
135 &quot;fieldFilter&quot;: &quot;A String&quot;, # Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
136 &quot;groupFields&quot;: [ # Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
137 &quot;A String&quot;,
138 ],
139 },
140 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Ending time for the duration for which insight was pulled.
141 &quot;fieldFilter&quot;: &quot;A String&quot;, # Output only. Filters applied.
142 &quot;group&quot;: &quot;A String&quot;, # Output only. Group id of the grouping applied.
143 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Starting time for the duration for which insight was pulled.
144 },
145 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. Next page token to be fetched. Set to empty or NULL if there are no more pages available.
146 &quot;rows&quot;: [ # Output only. Result rows returned containing the required value(s) for configured insight.
147 { # Row of the fetch response consisting of a set of entries.
148 &quot;fieldValues&quot;: [ # Output only. Columns/entries/key-vals in the result.
149 { # Column or key value pair from the request as part of key to use in query or a single pair of the fetch response.
150 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
151 &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
152 &quot;id&quot;: &quot;A String&quot;, # Output only. Field id.
153 &quot;value&quot;: &quot;A String&quot;, # Output only. Value of the field in string format. Acceptable values are strings or numbers.
154 },
155 ],
156 },
157 ],
158 }</pre>
159 </div>
160
161 <div class="method">
162 <code class="details" id="configuredInsight_next">configuredInsight_next()</code>
163 <pre>Retrieves the next page of results.
164
165 Args:
166 previous_request: The request for the previous page. (required)
167 previous_response: The response from the request for the previous page. (required)
168
169 Returns:
170 A request object that you can call &#x27;execute()&#x27; on to request the next
171 page. Returns None if there are no more items in the collection.
172 </pre>
173 </div>
174
175 <div class="method">
176 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
177 <pre>Gets the value for a selected particular insight with default configuration. The default aggregation level is &#x27;DAILY&#x27; and no grouping will be applied or default grouping if applicable. The data will be returned for recent 7 days starting the day before. The insight data size will be limited to 50 rows. Use the organization level path for fetching at org level and project level path for fetching the insight value specific to a particular project. Setting the `view` to `BASIC` will only return the metadata for the insight.
178
179 Args:
180 name: string, Required. The resource name of the insight using the form: `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` `projects/{project_id}/locations/{location_id}/insights/{insight_id}` (required)
181 view: string, Required. Metadata only or full data view.
182 Allowed values
183 INSIGHT_VIEW_UNSPECIFIED - The default / unset value. The API will default to the BASIC view.
184 BASIC - Include basic metadata about the insight, but not the insight data. This is the default value (for both ListInsights and GetInsight).
185 FULL - Include everything.
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190
191 Returns:
192 An object of the form:
193
194 { # The Insight object with configuration that was returned and actual list of records.
195 &quot;appliedConfig&quot;: { # The configuration that was applied to generate the result. # Output only. Applied insight config to generate the result data rows.
196 &quot;aggregation&quot;: &quot;A String&quot;, # Output only. Aggregation type applied.
197 &quot;customGrouping&quot;: { # Customised grouping option that allows setting the group_by fields and also the filters togather for a configured insight request. # Output only. Customised grouping applied.
198 &quot;fieldFilter&quot;: &quot;A String&quot;, # Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
199 &quot;groupFields&quot;: [ # Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
200 &quot;A String&quot;,
201 ],
202 },
203 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Ending time for the duration for which insight was pulled.
204 &quot;fieldFilter&quot;: &quot;A String&quot;, # Output only. Filters applied.
205 &quot;group&quot;: &quot;A String&quot;, # Output only. Group id of the grouping applied.
206 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Starting time for the duration for which insight was pulled.
207 },
208 &quot;metadata&quot;: { # Insight filters, groupings and aggregations that can be applied for the insight. Examples: aggregations, groups, field filters. # Output only. Metadata for the Insight.
209 &quot;aggregations&quot;: [ # Output only. List of aggregation types available for insight.
210 &quot;A String&quot;,
211 ],
212 &quot;category&quot;: &quot;A String&quot;, # Output only. Category of the insight.
213 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Common name of the insight.
214 &quot;fields&quot;: [ # Output only. List of fields available for insight.
215 { # Field metadata. Commonly understandable name and description for the field. Multiple such fields constitute the Insight.
216 &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the field.
217 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
218 &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
219 &quot;filterable&quot;: True or False, # Output only. Indicates whether the field can be used for filtering.
220 &quot;groupable&quot;: True or False, # Output only. Indicates whether the field can be used for grouping in custom grouping request.
221 &quot;id&quot;: &quot;A String&quot;, # Output only. Field id for which this is the metadata.
222 },
223 ],
224 &quot;groups&quot;: [ # Output only. List of groupings available for insight.
225 &quot;A String&quot;,
226 ],
227 &quot;subCategory&quot;: &quot;A String&quot;, # Output only. Sub-Category of the insight.
228 &quot;type&quot;: &quot;A String&quot;, # Output only. Type of the insight. It is metadata describing whether the insight is a metric (e.g. count) or a report (e.g. list, status).
229 },
230 &quot;name&quot;: &quot;A String&quot;, # Output only. The insight resource name. e.g. `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` OR `projects/{project_id}/locations/{location_id}/insights/{insight_id}`.
231 &quot;rows&quot;: [ # Output only. Result rows returned containing the required value(s).
232 { # Row of the fetch response consisting of a set of entries.
233 &quot;fieldValues&quot;: [ # Output only. Columns/entries/key-vals in the result.
234 { # Column or key value pair from the request as part of key to use in query or a single pair of the fetch response.
235 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
236 &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
237 &quot;id&quot;: &quot;A String&quot;, # Output only. Field id.
238 &quot;value&quot;: &quot;A String&quot;, # Output only. Value of the field in string format. Acceptable values are strings or numbers.
239 },
240 ],
241 },
242 ],
243 }</pre>
244 </div>
245
246 <div class="method">
247 <code class="details" id="list">list(parent, aggregation=None, endTime=None, filter=None, orderBy=None, pageSize=None, pageToken=None, startTime=None, view=None, x__xgafv=None)</code>
248 <pre>Lists for all the available insights that could be fetched from the system. Allows to filter using category. Setting the `view` to `BASIC` will let you iterate over the list of insight metadatas.
249
250 Args:
251 parent: string, Required. The resource name of InsightMetadata using the form: `organizations/{organization_id}/locations/{location}` `projects/{project_id}/locations/{location_id}` (required)
252 aggregation: string, Optional. Aggregation type. The default is &#x27;DAILY&#x27;.
253 Allowed values
254 AGGREGATION_UNSPECIFIED - Unspecified.
255 HOURLY - Insight should be aggregated at hourly level.
256 DAILY - Insight should be aggregated at daily level.
257 WEEKLY - Insight should be aggregated at weekly level.
258 MONTHLY - Insight should be aggregated at monthly level.
259 CUSTOM_DATE_RANGE - Insight should be aggregated at the custom date range passed in as the start and end time in the request.
260 endTime: string, Optional. Ending time for the duration for which insights are to be pulled. The default is the current time.
261 filter: string, Optional. Filter expression to restrict the insights returned. Supported filter fields: * `type` * `category` * `subCategory` Examples: * &quot;category = application AND type = count&quot; * &quot;category = application AND subCategory = iap&quot; * &quot;type = status&quot; Allowed values: * type: [count, latency, status, list] * category: [application, device, request, security] * subCategory: [iap, caa, webprotect] NOTE: Only equality based comparison is allowed. Only `AND` conjunction is allowed. NOTE: The &#x27;AND&#x27; in the filter field needs to be in capital letters only. NOTE: Just filtering on `subCategory` is not allowed. It should be passed in with the parent `category` too. (These expressions are based on the filter language described at https://google.aip.dev/160).
262 orderBy: string, Optional. Hint for how to order the results. This is currently ignored.
263 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. NOTE: Default page size is 50.
264 pageToken: string, Optional. A token identifying a page of results the server should return.
265 startTime: string, Optional. Starting time for the duration for which insights are to be pulled. The default is 7 days before the current time.
266 view: string, Required. List only metadata or full data.
267 Allowed values
268 INSIGHT_VIEW_UNSPECIFIED - The default / unset value. The API will default to the BASIC view.
269 BASIC - Include basic metadata about the insight, but not the insight data. This is the default value (for both ListInsights and GetInsight).
270 FULL - Include everything.
271 x__xgafv: string, V1 error format.
272 Allowed values
273 1 - v1 error format
274 2 - v2 error format
275
276 Returns:
277 An object of the form:
278
279 { # The response for the list of insights.
280 &quot;insights&quot;: [ # Output only. List of all insights.
281 { # The Insight object with configuration that was returned and actual list of records.
282 &quot;appliedConfig&quot;: { # The configuration that was applied to generate the result. # Output only. Applied insight config to generate the result data rows.
283 &quot;aggregation&quot;: &quot;A String&quot;, # Output only. Aggregation type applied.
284 &quot;customGrouping&quot;: { # Customised grouping option that allows setting the group_by fields and also the filters togather for a configured insight request. # Output only. Customised grouping applied.
285 &quot;fieldFilter&quot;: &quot;A String&quot;, # Optional. Filterable parameters to be added to the grouping clause. Available fields could be fetched by calling insight list and get APIs in `BASIC` view. `=` is the only comparison operator supported. `AND` is the only logical operator supported. Usage: field_filter=&quot;fieldName1=fieldVal1 AND fieldName2=fieldVal2&quot;. NOTE: Only `AND` conditions are allowed. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the filtering the corresponding fields in this filter field. (These expressions are based on the filter language described at https://google.aip.dev/160).
286 &quot;groupFields&quot;: [ # Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
287 &quot;A String&quot;,
288 ],
289 },
290 &quot;endTime&quot;: &quot;A String&quot;, # Output only. Ending time for the duration for which insight was pulled.
291 &quot;fieldFilter&quot;: &quot;A String&quot;, # Output only. Filters applied.
292 &quot;group&quot;: &quot;A String&quot;, # Output only. Group id of the grouping applied.
293 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Starting time for the duration for which insight was pulled.
294 },
295 &quot;metadata&quot;: { # Insight filters, groupings and aggregations that can be applied for the insight. Examples: aggregations, groups, field filters. # Output only. Metadata for the Insight.
296 &quot;aggregations&quot;: [ # Output only. List of aggregation types available for insight.
297 &quot;A String&quot;,
298 ],
299 &quot;category&quot;: &quot;A String&quot;, # Output only. Category of the insight.
300 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Common name of the insight.
301 &quot;fields&quot;: [ # Output only. List of fields available for insight.
302 { # Field metadata. Commonly understandable name and description for the field. Multiple such fields constitute the Insight.
303 &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the field.
304 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
305 &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
306 &quot;filterable&quot;: True or False, # Output only. Indicates whether the field can be used for filtering.
307 &quot;groupable&quot;: True or False, # Output only. Indicates whether the field can be used for grouping in custom grouping request.
308 &quot;id&quot;: &quot;A String&quot;, # Output only. Field id for which this is the metadata.
309 },
310 ],
311 &quot;groups&quot;: [ # Output only. List of groupings available for insight.
312 &quot;A String&quot;,
313 ],
314 &quot;subCategory&quot;: &quot;A String&quot;, # Output only. Sub-Category of the insight.
315 &quot;type&quot;: &quot;A String&quot;, # Output only. Type of the insight. It is metadata describing whether the insight is a metric (e.g. count) or a report (e.g. list, status).
316 },
317 &quot;name&quot;: &quot;A String&quot;, # Output only. The insight resource name. e.g. `organizations/{organization_id}/locations/{location_id}/insights/{insight_id}` OR `projects/{project_id}/locations/{location_id}/insights/{insight_id}`.
318 &quot;rows&quot;: [ # Output only. Result rows returned containing the required value(s).
319 { # Row of the fetch response consisting of a set of entries.
320 &quot;fieldValues&quot;: [ # Output only. Columns/entries/key-vals in the result.
321 { # Column or key value pair from the request as part of key to use in query or a single pair of the fetch response.
322 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the field.
323 &quot;filterAlias&quot;: &quot;A String&quot;, # Output only. Field name to be used in filter while requesting configured insight filtered on this field.
324 &quot;id&quot;: &quot;A String&quot;, # Output only. Field id.
325 &quot;value&quot;: &quot;A String&quot;, # Output only. Value of the field in string format. Acceptable values are strings or numbers.
326 },
327 ],
328 },
329 ],
330 },
331 ],
332 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. Next page token to be fetched. Set to empty or NULL if there are no more pages available.
333 }</pre>
334 </div>
335
336 <div class="method">
337 <code class="details" id="list_next">list_next()</code>
338 <pre>Retrieves the next page of results.
339
340 Args:
341 previous_request: The request for the previous page. (required)
342 previous_response: The response from the request for the previous page. (required)
343
344 Returns:
345 A request object that you can call &#x27;execute()&#x27; on to request the next
346 page. Returns None if there are no more items in the collection.
347 </pre>
348 </div>
349
350 </body></html>