LogProfilesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:log_profiles> attribute.

Constructor

LogProfilesOperations(*args, **kwargs)

Methods

create_or_update

Create or update a log profile in Azure Monitoring REST API.

delete

Deletes the log profile.

get

Gets the log profile.

list

List the log profiles.

update

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

create_or_update

Create or update a log profile in Azure Monitoring REST API.

create_or_update(log_profile_name: str, parameters: _models.LogProfileResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.LogProfileResource

Parameters

Name Description
log_profile_name
Required
str

The name of the log profile. Required.

parameters
Required

Parameters supplied to the operation. Is either a LogProfileResource type or a IO[bytes] type. Required.

Returns

Type Description

LogProfileResource or the result of cls(response)

Exceptions

Type Description

delete

Deletes the log profile.

delete(log_profile_name: str, **kwargs: Any) -> None

Parameters

Name Description
log_profile_name
Required
str

The name of the log profile. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets the log profile.

get(log_profile_name: str, **kwargs: Any) -> LogProfileResource

Parameters

Name Description
log_profile_name
Required
str

The name of the log profile. Required.

Returns

Type Description

LogProfileResource or the result of cls(response)

Exceptions

Type Description

list

List the log profiles.

list(**kwargs: Any) -> ItemPaged[LogProfileResource]

Returns

Type Description

An iterator like instance of either LogProfileResource or the result of cls(response)

Exceptions

Type Description

update

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

update(log_profile_name: str, log_profiles_resource: _models.LogProfileResourcePatch, *, content_type: str = 'application/json', **kwargs: Any) -> _models.LogProfileResource

Parameters

Name Description
log_profile_name
Required
str

The name of the log profile. Required.

log_profiles_resource
Required

Parameters supplied to the operation. Is either a LogProfileResourcePatch type or a IO[bytes] type. Required.

Returns

Type Description

LogProfileResource or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.monitor.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv181\\Lib\\site-packages\\azure\\mgmt\\monitor\\models\\__init__.py'>