Class RealtimeDefinition

RealtimeDefinition

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

Bases: azureml.deploy.operationalization.OperationalizationDefinition

Real-time class defining a real-time 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 real-time 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.