CreateDeployment: Create a deployment.

View source: R/Deployment.R

CreateDeploymentR Documentation

Create a deployment.

Description

Create a deployment.

Usage

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

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.

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: 
  projectId <- "59a5af20c80891534e3c2bde"
  modelId <- "5996f820af07fc605e81ead4"
  model <- GetModel(projectId, modelId)
  predictionServer <- ListPredictionServers()[[1]]
  CreateDeployment(model,
                   label = "myDeployment",
                   description = "this is my deployment",
                   defaultPredictionServerId = predictionServer)

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.