Are there API functions (Python or Java) related to the tag reference tracker? In particular, getting the active subscriptions from a tag path. Would be useful for generating a tag report as part of a test suite I'm developing.
1 Like
GatewayTagProvider
has the entrypoints:
You'll potentially get a GatewayTagProvider
via gatewayContext.getTagManager().getTagProvider(providerName)
.
Thanks!
I'm having trouble finding the class com.inductiveautomation.ignition.common.tags.config.model.TagReferenceQuery in the API docs so I'm not exactly sure what I need to pass to the method.
1 Like
TagReferenceQuery
is a Kotlin data class (more or less equivalent to a Java record class) - there's some issue I forget about with our Javadoc generation and Kotlin classes, but it takes three constructor parameters:
data class TagReferenceQuery (
val path: TagPath,
val activeSubscriptions: Boolean,
val activeSince: Long = 0
)
In Java, TagPath
, primitive boolean
, and primitive long
.
1 Like