discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.

Agent class abstract

Agent

Properties:

  • id - JSON object with the Agent Id. Specify this field to update the Agent. Referencing non-existing Agent Id will cause error. Omit this field to create new Agent.
  • createdTime - Timestamp of the agent creation, in milliseconds
  • additionalInfo - A value representing the any type (object or primitive)
  • tenantId - JSON object with Tenant Id. Use 'assignAgentToTenant' to change the Tenant Id.
  • customerId - JSON object with Customer Id.
  • name - Unique Agent Name in scope of Tenant
  • description - Agent description
  • routingKey - Agent routing key used for authentication
  • secret - Agent secret used for authentication
  • agentProfileId - JSON object with Agent Profile Id. Nullable.
  • version
  • ownerId - JSON object with Customer or Tenant Id
Annotations
  • @BuiltValue.new()

Constructors

Agent([void updates(AgentBuilder b)])
factory

Properties

additionalInfo → JsonObject?
A value representing the any type (object or primitive)
no setter
agentProfileId → AgentProfileId?
JSON object with Agent Profile Id. Nullable.
no setter
createdTime → int?
Timestamp of the agent creation, in milliseconds
no setter
customerId → CustomerId?
JSON object with Customer Id.
no setter
description → String?
Agent description
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → AgentId?
JSON object with the Agent Id. Specify this field to update the Agent. Referencing non-existing Agent Id will cause error. Omit this field to create new Agent.
no setter
name → String
Unique Agent Name in scope of Tenant
no setter
ownerId → EntityId?
JSON object with Customer or Tenant Id
no setter
routingKey → String
Agent routing key used for authentication
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secret → String
Agent secret used for authentication
no setter
tenantId → TenantId?
JSON object with Tenant Id. Use 'assignAgentToTenant' to change the Tenant Id.
no setter
version → int?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(AgentBuilder)) → Agent
Rebuilds the instance.
inherited
toBuilder() → AgentBuilder
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<Agent>
no setter