Skip to main content

Setup and administration

Early adopter

The features described in this section are currently only available to customers via our Early Adopter program. Contact your Cognite representative for more information.

The Functions service provides a scalable, secure, and automated way for data scientists, data engineers, solution architects, and others to host and execute Python code.

The Python code can range from basic operations and data transformations to deploying advanced machine learning models. For example, you can use Functions to:

  • Preprocess data, transform and validate data, convert to the same unit, detect deviation from estimated production.
  • Convert from simple to complex calculations: interpolation, production trends, computing gas rates, generating alarms based on events.
  • Create statistical models such as forecasting oil/water separation and time series smoothing.

Set up Functions authentication

When Cognite Functions has been activated for your CDF project:

  1. Make sure you have registered the Cognite API and the CDF portal application in Azure AD and set up Azure AD and CDF groups.

    To use Functions, a user or an application must be member of a CDF group with these capabilities:

    • functions:write: to create, call and schedule functions.
    • functions:read: to retrieve and list functions, retrieve function responses and function logs.
    • files:read: to create functions.
    • files:write: to create functions.
    • sessions:create: to call and schedule functions.