Dataiku API Service: pricing

Created in API designer menu in dataiku project.

Endpoint: Recalculate

Background

The Pricing backend initially finds similarities between CPCs and from the 10 closest or so, compute a recommended price for the target CPC (median + business rules, overlays, etc.)

However some of the initial neighbors CPCs might not be comparable from business point of view and they remove them. The new recommended price must be recomputed, that is where the API is used.

Goal

Recalculate the recommended price given the target and a list of neighbor CPCs.

Requirements


Solution

Additionnal settings

Deployment

Actually done by data ops team.

Since API host (hostname) is important, make sure deployment follows needed naming convention (for prod, test env).

Additionnally we deploy on a kubernetes cluster with a load balancer, some settings are needed.

Steps:

  1. In API Designer, Create a Version and Publish it on deployer
  2. In Local Deployer, API Services, find the correct service and version, and deploy it: new deployment or update existing deployment.
  3. Before the actual deployment, check the settings