discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.

AgentAppArgument class abstract

AgentAppArgument

Properties:

  • name - Argument name, referenced in the compose as ${tb.
  • sourceType - Source entity the value is resolved from.
  • sourceEntityId - Concrete source entity id. Required when sourceType references a specific entity (DEVICE, ASSET, CUSTOMER, EDGE); ignored for the context-derived sources.
  • valueType - Whether the value is read from an attribute or the latest telemetry.
  • scope - Attribute scope. Applicable only when valueType is ATTRIBUTE. Defaults to SERVER_SCOPE.
  • key - Attribute or latest telemetry key to read.
  • defaultValue - Optional fallback value used when the source has no value for the key.
  • format - How the resolved value is injected into the compose: STRING (quoted) or JSON (raw, for arrays/objects/numbers when the placeholder is the whole value). Defaults to STRING.
Annotations
  • @BuiltValue.new()

Constructors

AgentAppArgument([void updates(AgentAppArgumentBuilder b)])
factory

Properties

defaultValue → String?
Optional fallback value used when the source has no value for the key.
no setter
format → AgentAppArgumentFormat?
How the resolved value is injected into the compose: STRING (quoted) or JSON (raw, for arrays/objects/numbers when the placeholder is the whole value). Defaults to STRING.
no setter
hashCode → int
The hash code for this object.
no setterinherited
key → String?
Attribute or latest telemetry key to read.
no setter
name → String?
Argument name, referenced in the compose as ${tb.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → AttributeScope?
Attribute scope. Applicable only when valueType is ATTRIBUTE. Defaults to SERVER_SCOPE.
no setter
sourceEntityId → EntityId?
Concrete source entity id. Required when sourceType references a specific entity (DEVICE, ASSET, CUSTOMER, EDGE); ignored for the context-derived sources.
no setter
sourceType → AgentAppArgumentSource?
Source entity the value is resolved from.
no setter
valueType → AgentAppArgumentValueType?
Whether the value is read from an attribute or the latest telemetry.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(AgentAppArgumentBuilder)) → AgentAppArgument
Rebuilds the instance.
inherited
toBuilder() → AgentAppArgumentBuilder
Converts the instance to a builder B.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

serializer → Serializer<AgentAppArgument>
no setter