Codeunit "Azure AI Usage"

ID 2006
Namespace: System.AI

Retrieves information about the usage of the Azure AI services.

Properties

Name Value
Access Public

Methods

IncrementTotalProcessingTime

Increments the processing time for the provided Azure AI service with ProcessingTime.

procedure IncrementTotalProcessingTime(Service: Enum "Azure AI Service", ProcessingTime: Decimal)

Parameters

Name Type Description
Service Enum System.AI."Azure AI Service"

The Azure AI service for which to increment the processing time.

ProcessingTime Decimal

The value with which to increment the total processing time of the Azure AI service.

IsLimitReached

Checks whether the total processing time of a provided Azure AI service has reached a certain limit.

procedure IsLimitReached(Service: Enum "Azure AI Service", UsageLimit: Decimal): Boolean

Parameters

Name Type Description
Service Enum System.AI."Azure AI Service"

The Azure AI service for which to check.

UsageLimit Decimal

The limit for which to check if it was reached.

Returns

Type Description
Boolean

True if the limit was reached; otherwise - false.

GetTotalProcessingTime

Gets the total processing time of an Azure AI service.

procedure GetTotalProcessingTime(Service: Enum "Azure AI Service"): Decimal

Parameters

Name Type Description
Service Enum System.AI."Azure AI Service"

The Azure AI service for which to retrieve the processing time.

Returns

Type Description
Decimal

The processing time that the service has used so far.

GetResourceLimit

Gets the limit of an Azure AI service.

procedure GetResourceLimit(Service: Enum "Azure AI Service"): Decimal

Parameters

Name Type Description
Service Enum System.AI."Azure AI Service"

The Azure AI service for which to retrieve the resource limit.

Returns

Type Description
Decimal

The resource limit for the provided service.

GetLimitPeriod

Gets the type of limit period of an Azure AI service.

procedure GetLimitPeriod(Service: Enum "Azure AI Service"): Option

Parameters

Name Type Description
Service Enum System.AI."Azure AI Service"

The Azure AI service for which to retrieve the limit period.

Returns

Type Description
Option

An option: Year,Month,Day,Hour.

GetLastTimeUpdated

Gets the last time the provided Azure AI service was updated.

procedure GetLastTimeUpdated(Service: Enum "Azure AI Service"): DateTime

Parameters

Name Type Description
Service Enum System.AI."Azure AI Service"

The Azure AI service for which to retrieve the last time it was updated.

Returns

Type Description
DateTime

A datetime that notes the last time the Azure AI service was updated.

SetImageAnalysisIsSetup

Sets a value that denotes whether the Image Analysis service was setup.

procedure SetImageAnalysisIsSetup(NewValue: Boolean)

Parameters

Name Type Description
NewValue Boolean

The value to set.

Remarks

The function will be discontinued as it should not be part of the this API.

See also