Class RealtimeDefinition

RealtimeDefinition

azureml.deploy.operationalization.RealtimeDefinition(name, op)

Bases: azureml.deploy.operationalization.OperationalizationDefinition

Realtime class defining a realtime service’s properties for publishing.

alias(alias)

Set the optional service function name alias to use in order to consume the service.

Example:

service = client.service('score-service').alias('score').deploy()

# `score()` is the function that will call the `score-service`
result = service.score()

Arguments

alias

The service function name alias to use in order to consume the service.

Returns

Self OperationalizationDefinition for fluent API.

deploy

deploy()

Bundle up the definition properties and publish the service.

Returns

A new instance of Service representing the service deployed.

description

description(description)

Set the service’s optional description.

Arguments

description

The description of the service.

Returns

Self OperationalizationDefinition for fluent API.

redeploy

redeploy(force=False)

Bundle up the definition properties and update the service.

Returns

A new instance of Service representing the service deployed.

serialized_model

serialized_model(model)

Serialized model.

Arguments

model

The required serialized model used for this realtime service.

Returns

Self OperationalizationDefinition for fluent API chaining.

version

version(version)

Set the service’s optional version.

Arguments

version

The version of the service.

Returns

Self OperationalizationDefinition for fluent API.