EventsOperations Class
EventsOperations operations.
- Inheritance
-
builtins.objectEventsOperations
Constructor
EventsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Methods
| get |
Get an event. Gets the data for a single event. |
| get_by_type |
Execute OData query. Executes an OData query for events. |
| get_odata_metadata |
Get OData metadata. Gets OData EDMX metadata describing the event data model. |
get
Get an event.
Gets the data for a single event.
get(app_id, event_type, event_id, timespan=None, custom_headers=None, raw=False, **operation_config)
Parameters
- app_id
- str
ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
The type of events to query; either a standard event type (traces, customEvents, pageViews, requests, dependencies, exceptions, availabilityResults) or $all to query across all event types. Possible values include: '$all', 'traces', 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', 'availabilityResults', 'performanceCounters', 'customMetrics'
- timespan
- str
Optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the Odata expression.
- operation_config
Operation configuration overrides.
Returns
EventsResults or ClientRawResponse if raw=true
Return type
Exceptions
get_by_type
Execute OData query.
Executes an OData query for events.
get_by_type(app_id, event_type, timespan=None, filter=None, search=None, orderby=None, select=None, skip=None, top=None, format=None, count=None, apply=None, custom_headers=None, raw=False, **operation_config)
Parameters
- app_id
- str
ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
The type of events to query; either a standard event type (traces, customEvents, pageViews, requests, dependencies, exceptions, availabilityResults) or $all to query across all event types. Possible values include: '$all', 'traces', 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', 'availabilityResults', 'performanceCounters', 'customMetrics'
- timespan
- str
Optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the Odata expression.
- search
- str
A free-text search expression to match for whether a particular event should be returned
- orderby
- str
A comma-separated list of properties with "asc" (the default) or "desc" to control the order of returned events
- operation_config
Operation configuration overrides.
Returns
EventsResults or ClientRawResponse if raw=true
Return type
Exceptions
get_odata_metadata
Get OData metadata.
Gets OData EDMX metadata describing the event data model.
get_odata_metadata(app_id, custom_headers=None, raw=False, **operation_config)
Parameters
- app_id
- str
ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
- operation_config
Operation configuration overrides.
Returns
object or ClientRawResponse if raw=true
Return type
Exceptions
Attributes
models
models = <module 'azure.applicationinsights.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\applicationinsights\\models\\__init__.py'>
Feedback
Submit and view feedback for