Exporting Attention¶
Attention can be found via the GraphQL API.
Strategy¶
Find all the assets in the organization. For each asset, use the following GraphQL query to find all the notes on that asset:
Query
query getAttention($assetId: ID! $start: Time! $end: Time!)
{
asset(id: $assetId) {
attentionIndex(startTime: $start endTime: $end) {
results {
timestamp
value
}
}
}
}
See the GraphQL documentation for further information.
Considerations¶
- Organizations with a large number of assets
- Determining start and end time based on knowledge of when the asset was commissioned
- The maximum duration of a call should be 6 months; make further queries to fulfil the required time range