ReplaceDeployedModel {datarobot} | R Documentation |
Replace a model in a deployment with another model.
Description
Replace a model in a deployment with another model.
Usage
ReplaceDeployedModel(
deploymentId,
newModelId,
replacementReason,
maxWait = 600
)
Arguments
deploymentId |
character. The ID of the deployment. |
newModelId |
character. The ID of the model to use in the deployment. This model will replace the old model. You can also pass a dataRobotModel object. |
replacementReason |
character. Optional. The reason for replacing the deployment.
See |
maxWait |
integer. How long to wait (in seconds) for the computation to complete before returning a timeout error? (Default 600 seconds) |
Value
A DataRobotDeployment object containing:
id character. The ID of the deployment.
label character. The label of the deployment.
description character. The description of the deployment.
defaultPredictionServer list. Information on the default prediction server connected with the deployment. See
ListPredictionServers
for details.model dataRobotModel. The model associated with the deployment. See
GetModel
for details.capabilities list. Information on the capabilities of the deployment.
predictionUsage list. Information on the prediction usage of the deployment.
permissions list. User's permissions on the deployment.
serviceHealth list. Information on the service health of the deployment.
modelHealth list. Information on the model health of the deployment.
accuracyHealth list. Information on the accuracy health of the deployment.
Examples
## Not run:
deploymentId <- "5e319d2e422fbd6b58a5edad"
newModelId <- "5996f820af07fc605e81ead4"
ReplaceDeployedModel(deploymentId, newModelId, ModelReplacementReason$Other)
## End(Not run)