The time series aggregation now accepts a list of IDs instead of a comma separated string. You can now use a column from another query directly as input to the function, making it much easier to use.
If a CDF project is on a custom cluster, you can set the CDF Environment to the URL of the API server for the cluster when you connect to CDF.
You can also set a specific API version by appending it to the URL, for example
v1. We also support shorthand notations. For example,
api/v1 uses the default API endpoint and v1 of the API.
Examples of supported CDF environment values:
api- the same as
api/v1- the same as
xyz- a custom cluster. The same as
Learn more about the Cognite Power BI connector.
The new section gathers the most useful resources and links related to the CDF SDKs:
The new release introduces an improved interface to make it easier to work with labels.
# create label definition(s) client.labels.create(LabelDefinition( external_id="PUMP", name="Pump", description="Pump equipment")) # ... or multiple client.labels.create([ LabelDefinition(external_id="PUMP"), LabelDefinition(external_id="VALVE")]) # list label definitions label_definitions = client.labels.list(name="Pump") # delete label definitions client.labels.delete("PUMP") # ... or multiple client.labels.delete(["PUMP", "VALVE"]) # create an asset with label asset = Asset(name="my_pump", labels=[Label(external_id="PUMP")]) client.assets.create(assets) # filter assets by labels my_label_filter = LabelFilter(contains_all=["PUMP", "VERIFIED"]) asset_list = client.assets.list(labels=my_label_filter) # attach/detach labels to/from assets my_update = AssetUpdate(id=1) .labels.add(["PUMP"]) .labels.remove(["VALVE"]) res = c.assets.update(my_update)
To learn more about the changes in new release, see the release notes.
New major release separates SDK into 3 different packages:
In addition to structural changes, the new version of the SDK introduces these changes:
unitattribute is now exposed in data points objects.
To learn more about the new release, see the release notes.
To upgrade to the newest version, follow the migration guidelines.
Find up-to-date release information for tools and libraries here: