ActivityLogsOperations class

Definition

ActivityLogsOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

ActivityLogsOperations(client, config, serializer, deserializer)
Inheritance
builtins.object
ActivityLogsOperations

Parameters

client

Client for service requests.

config

Configuration of service client.

serializer

An object model serializer.

deserializer

An object model deserializer.

Variables

api_version
class
Client Api Version. Constant value: "2015-04-01".

Methods

list(filter=None, select=None, custom_headers=None, raw=False, **operation_config)

Provides the list of records from the activity logs.

list(filter=None, select=None, custom_headers=None, raw=False, **operation_config)

Provides the list of records from the activity logs.

list(filter=None, select=None, custom_headers=None, raw=False, **operation_config)

Parameters

filter
str

Reduces the set of data collected.
The $filter argument is very restricted and allows only the following patterns.
- List events for a resource group: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq 'resourceGroupName'.
- List events for resource: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.
- List events for a subscription in a time range: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.
- List events for a resource provider: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.
- List events for a correlation Id: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.

NOTE: No other syntax is allowed.

default value: None
select
str

Used to fetch events with only the given properties.
The $select argument is a comma separated list of property names to be returned. Possible values are: authorization, claims, correlationId, description, eventDataId, eventName, eventTimestamp, httpRequest, level, operationId, operationName, properties, resourceGroupName, resourceProviderName, resourceId, status, submissionTimestamp, subStatus, subscriptionId

default value: None
custom_headers
dict

headers that will be added to the request

default value: None
raw
bool

returns the direct response alongside the deserialized response

default value: False
operation_config

Operation configuration overrides.

Returns

An iterator like instance of EventData

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.monitor.v2015_04_01.models' from 'c:\\hostedtoolcache\\windows\\python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2015_04_01\\models\\__init__.py'>