Learn R Programming

datarobot (version 2.18.6)

CreateDeployment: Create a deployment.

Description

Create a deployment.

Usage

CreateDeployment(
  model,
  label = "",
  description = "",
  defaultPredictionServerId = NULL
)

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.

Arguments

model

An S3 object of class dataRobotModel like that returned by the function GetModel, or each element of the list returned by the function ListModels.

label

character. The name of the deployment.

description

character. Optional. A longer description of the deployment.

defaultPredictionServerId

character. The ID of the prediction server to connect to. Can also be a prediction server object.

Examples

Run this code
if (FALSE) {
  projectId <- "59a5af20c80891534e3c2bde"
  modelId <- "5996f820af07fc605e81ead4"
  model <- GetModel(projectId, modelId)
  predictionServer <- ListPredictionServers()[[1]]
  CreateDeployment(model,
                   label = "myDeployment",
                   description = "this is my deployment",
                   defaultPredictionServerId = predictionServer)
}

Run the code above in your browser using DataLab