Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
This issue has been resolved.
Gargi, You may not have the correct permissions to query the projects. You will only see the projects you have permission to see :). Were you using a service principal or your own user principal to execute the query? The service principal will only see one project.Jason
@Mohit Shakaly I believe the dlls are now signed. Correct?
@Sonali Vishal Patil , This is related to another issue. Your project has reached the quota limit for number of instances. There is an outstanding support request to remedy. Regards,Jason
@Sangavi M ,Can you kindly provide your API requests and possibly share your model?
@Sergei Sementchouk I’m not sure if this answers your question. If you want to list all edges in a space, your request to the models/instances/list endpoint could look like:{ "includeTyping": true, "instanceType": "edge", "filter": { "equals": { "property": [ "edge", "space" ], "value": "<ENTER SPACE NAME>" } }}This gets you all instances of edges in a space. If you know the space and id, you can use the model/instances/byids endpoint Jason
@Mohit Shakaly I think we can close this. For now, the team does not require dotnet dll signing as they have identified a workaround. If they require this in the future, we can add it to the shared SLB:Cognite Azure DevOps requirements backlog.
@Sangavi M , This API has changed. https://docs.cognite.com/api/v1/#tag/Instances/operation/byExternalIdsInstances this is the most recent. Can you have a look and see if this issue still exists for you. If so, tag me and I can have a second look. Jason
@Ankita Mane I try to highlight several ways you can use the python SDK to retrieve your large number of events. The SDK auto supports paging. If you hit the API directly, you will need to navigate the cursors yourself.Hope this helps,Jasonfrom cognite.client import CogniteClientimport timeclient: CogniteClient = ...# Serial retrievalstart = time.time()events = client.events.list(data_set_ids=[123], limit=None)end = time.time()print(f"Time {(end - start):.2f} seconds")# Parallel retrievalstart = time.time()events = client.events.list(data_set_ids=[123], limit=None, partitions=10)end = time.time()print(f"Partitioned Time {(end - start):.2f} seconds") # Serial chunk retrieval - keep a limited set in memorystart = time.time()for event in client.events(chunk_size=1000, data_set_ids=[123]): pass # Do your work.end = time.time()print(f"Partitioned Chunk Time {(end - start):.2f} seconds") # Parallel chunk retrievalstart = time.time()for event in client.events(chunk_size=1000, data_set_
@Neerajkumar Bhatewara Which model is this you are testing with? I presume slb-pdf is your project.
@Alex Narayanan,As mentioned, nothing out of the box is currently supported. I can imagine a solution using a configuration (CDF File or FDM), for a given set of well-known xls file templates. You can use cell references or named ranges. Your extractor would use the config to pull the data. For this to run on python, something like openpyxl, which would enable you to run as a Cognite function and enable the road to a reasonable reusable extractor Jason
@Sangavi M,I have validated this is an issue and have raised a ticket to fix. I will let you know once remedied. Thank you for sharing. Jason
@Basudeba Mandal ,I can help administer the clientId and secret you need to to access slb-pdf. I’ve reached out on Teams to verify and share with you the correct credentials.Jason
@Viswanadha Sai Akhil Pujyam,What type of event are you wanting to launch a function on? In addition to scheduling, you can programatically launch Cognite Functions. That trigger can be in response to an ‘event’.Jason
@Peter Arwanitis fyi. I had a call with @Snehal-Jagtap this morning. She’s looking for an example using spaces and has a few other asks. I mentioned that you could assist faster than I can 😀.
@Mohammad Imran,Independent of support for previous in the graphQL response, could you keep a history of cursors in your client application? This way, you can page or direct navigate using the historical cursors.-Jason
@Mohit ShakalymyType is a directRelation. It’s type is defined by a (space, externalId) tuple. Apologies for the very delayed reply. I’m using the null of the externalId as a measure of ‘null’ with respect to the direct relation.# Based on the following model derived from the Actor/Movie example:type PersonType @view(space: "test", version: "1") { typename: String!}interface Person @view(space: "test", version: "1") { typename: PersonType name: String! age: Int}#populate your Actors with 'actor' as the PersonType, do not populate the Directors with any typename# using the following graphQL query, you'll get just 'Director' Personsquery MyQuery { listPerson(filter: {typename: {externalId: {isNull: true}}}) { items { name typename { typename } } }} fyi @Dilini Fernando
@Mohammad Imran,Getting a list of cursors is not currently supported. So, yes, you’d need to go forward and cache each in order to back.-Jason
@Adrian Dams ,If your data has been ingested as Assets of a particular Dataset, you use those as your source. You can then map from Asset attributes and metadata to populate your target data model.-Jason
@Shreyas Mehta ,Yes will create a feature request. Please ensure this request is on slb ADO board as well for tracking :).-Jason
@Xiaofeng Wang Are you listing/querying or creating instances? Can you kindly share an representative example?-Jason
@carriechung,Regarding model structure changes: https://developer.cognite.com/dm/graphql/modeling#versioningIn short, every structure change to your Type will be a new version. In regards to versioning best practices it’s important to understand that a data model is a versioned collection of versioned views. You can see this when you query the data models endpoint: GET /models/datamodels. This returns a response like the following:The model is versioned and each view (type) of that model are versioned. You explicitly control the version of the model and views. A discussion can be found here: https://docs.cognite.com/cdf/data_modeling/guides/manage_dmVersioning can be done in multiple ways. If you are using the Fusion user interface, you can specify the version of the model when you publish and explicitly version each view using the @view directive. If you are publishing your models via the API, then you set the version in the API request.{ "items": [ { "space
@Lihui Meng,Today, getting a list of pages or navigating by offset is not supported. This was a conscious decision. In short, records may change (added or deleted) by other users or processes while any given user is navigating the records. Navigating to a particular offset may return different records each time the request is made. A similar request was asked: -Jason
@Mohammad Imran,Cognite Data Fusion (CDF) is a micro-services architecture SaaS application that is deployed to 3 major cloud service providers today (Azure, Google and most recently AWS). CDF consists of 300+ micro-services which are continuously deployed as many as 1000 times per week across development, staging and production environments. The infrastructure is predominantly Kubernetes based. Storage consists of a polyglot system of technologies based on data type, availability, scalability and performance requirements. Storing and serving time series data, for instance, involves a combination of storage technologies (Foundation db, Kafka, PostgreSQL, Elastic Search). You can read more about availability, business continuity, backups here at the following link: https://docs.cognite.com/cdf/trust/security/availability_continuityHope this helps,-Jason
@Shreyas Mehta I’m told to combine the @edge and @view directives like the following. This will work for you. type ActedIn @edge @view(space: "imdb", version: "1"){roleCode: Stringsalary: Float}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.