Skip to content

Latest commit

 

History

History
290 lines (243 loc) · 13.1 KB

File metadata and controls

290 lines (243 loc) · 13.1 KB

PageDataJob

org.thingsboard.client.model.PageDataJob

Properties

Name Type Description Notes
data List<Job> Array of the entities [optional]
totalPages Integer Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria [optional] [readonly]
totalElements Long Total number of elements in all available pages [optional] [readonly]
hasNext Boolean 'false' value indicates the end of the result set [optional] [readonly]

Referenced Types

EntityId types (AdminSettingsId, AiModelId, AlarmId, ApiKeyId, ApiUsageStateId, AssetId, AssetProfileId, BlobEntityId, CalculatedFieldId, ConverterId, CustomerId, DashboardId, DeviceId, DeviceProfileId, DomainId, EdgeId, EntityGroupId, EntityViewId, GroupPermissionId, IntegrationId, JobId, MobileAppBundleId, MobileAppId, NotificationId, NotificationRequestId, NotificationRuleId, NotificationTargetId, NotificationTemplateId, OAuth2ClientId, OtaPackageId, QueueId, QueueStatsId, ReportId, ReportTemplateId, RoleId, RpcId, RuleChainId, RuleNodeId, SchedulerEventId, SecretId, TbResourceId, TenantId, TenantProfileId, UserId, WidgetTypeId, WidgetsBundleId, etc.): {entityType: EntityType, id: UUID} — all EntityId subtypes share this structure.

Job

Name Type Description Notes
id JobId [optional]
createdTime Long Entity creation timestamp in milliseconds since Unix epoch [optional] [readonly]
tenantId TenantId
type JobType
key String
entityId EntityId
entityName String [optional]
status JobStatus
_configuration JobConfiguration
result JobResult

JobType (enum)

CF_REPROCESSING | REPORT | DUMMY

JobStatus (enum)

QUEUED | PENDING | RUNNING | COMPLETED | FAILED | CANCELLED

JobConfiguration

Name Type Description Notes
tasksKey String
toReprocess List [optional]
type String

CfReprocessingJobConfiguration (extends JobConfiguration, type=CF_REPROCESSING)

Name Type Description Notes
calculatedFieldId CalculatedFieldId
calculatedFieldName String [optional]
startTs Long [optional]
endTs Long [optional]

DummyJobConfiguration (extends JobConfiguration, type=DUMMY)

Name Type Description Notes
taskProcessingTimeMs Long [optional]
successfulTasksCount Integer [optional]
failedTasksCount Integer [optional]
permanentlyFailedTasksCount Integer [optional]
errors List [optional]
retries Integer [optional]
taskProcessingTimeoutMs Long [optional]
generalError String [optional]
submittedTasksBeforeGeneralError Integer [optional]

ReportJobConfiguration (extends JobConfiguration, type=REPORT)

Name Type Description Notes
reportTemplateId ReportTemplateId [optional]
userId UserId [optional]
timezone String [optional]
targets List [optional]
notificationTemplateId NotificationTemplateId [optional]
notificationRequests List [optional]
originator EntityId [optional]
ruleNode RuleNode [optional]
outputTbMsgProto String [optional]
queueName String [optional]
schedulerEventInfo EntityInfo [optional]

JobResult

Name Type Description Notes
successfulCount Integer Count of successfully completed tasks [optional]
failedCount Integer Count of failed tasks [optional]
discardedCount Integer Count of discarded tasks [optional]
totalCount Integer Total number of tasks, set when all tasks are submitted [optional]
results List [optional]
generalError String General error message if the job failed [optional]
startTs Long Timestamp of the job start, in milliseconds [optional]
finishTs Long Timestamp of the job finish, in milliseconds [optional]
cancellationTs Long Timestamp of the job cancellation, in milliseconds [optional]
jobType String

CfReprocessingJobResult (extends JobResult, jobType=CF_REPROCESSING)

See JobResult for properties.

DummyJobResult (extends JobResult, jobType=DUMMY)

See JobResult for properties.

ReportJobResult (extends JobResult, jobType=REPORT)

Name Type Description Notes
report Report [optional]

EntityType (enum)

TENANT | CUSTOMER | USER | DASHBOARD | ASSET | DEVICE | ALARM | ENTITY_GROUP | CONVERTER | INTEGRATION | … (46 values total)

TaskResult

Name Type Description Notes
key String [optional]
success Boolean [optional]
discarded Boolean [optional]
finishTs Long [optional]
error String [optional]
jobType String

NotificationRequest

Name Type Description Notes
id NotificationRequestId [optional]
createdTime Long Entity creation timestamp in milliseconds since Unix epoch [optional] [readonly]
tenantId TenantId [optional]
targets List
templateId NotificationTemplateId [optional]
template NotificationTemplate [optional]
info NotificationInfo [optional]
additionalConfig NotificationRequestConfig [optional]
originatorEntityId EntityId [optional]
ruleId NotificationRuleId [optional]
status NotificationRequestStatus [optional]
stats NotificationRequestStats [optional]

RuleNode

Name Type Description Notes
id RuleNodeId JSON object with the Rule Node Id. Specify this field to update the Rule Node. Referencing non-existing Rule Node Id will cause error. Omit this field to create new rule node. [optional]
createdTime Long Timestamp of the rule node creation, in milliseconds [optional] [readonly]
additionalInfo com.fasterxml.jackson.databind.JsonNode Additional parameters of the rule node. May include: 'layoutX' (number, X coordinate for visualization), 'layoutY' (number, Y coordinate for visualization), 'description' (string). [optional]
ruleChainId RuleChainId JSON object with the Rule Chain Id. [optional] [readonly]
type String Full Java Class Name of the rule node implementation. [optional]
name String User defined name of the rule node. Used on UI and for logging. [optional]
debugSettings DebugSettings Debug settings object. [optional]
singletonMode Boolean Enable/disable singleton mode. [optional]
queueName String Queue name. [optional]
configurationVersion Integer Version of rule node configuration. [optional]
_configuration com.fasterxml.jackson.databind.JsonNode JSON with the rule node configuration. Structure depends on the rule node implementation. [optional]
externalId RuleNodeId [optional]
debugMode Boolean [optional]

EntityInfo

Name Type Description Notes
id EntityId JSON object with the entity Id. [optional]
name String Entity Name [optional]

Report

Name Type Description Notes
id ReportId [optional]
createdTime Long Entity creation timestamp in milliseconds since Unix epoch [optional] [readonly]
tenantId TenantId
customerId CustomerId [optional]
templateId ReportTemplateId
format TbReportFormat
name String
userId UserId
ownerId EntityId JSON object with Customer or Tenant Id [optional] [readonly]

NotificationTemplate

Name Type Description Notes
id NotificationTemplateId [optional]
createdTime Long Entity creation timestamp in milliseconds since Unix epoch [optional] [readonly]
tenantId TenantId [optional]
name String
notificationType NotificationType
_configuration NotificationTemplateConfig

NotificationInfo

Name Type Description Notes
dashboardId DashboardId [optional]
stateEntityId EntityId [optional]
type String

NotificationRequestConfig

Name Type Description Notes
sendingDelayInSec Integer [optional]
reports List [optional]

NotificationRequestStatus (enum)

PROCESSING | SENT | SCHEDULED

NotificationRequestStats

Name Type Description Notes
sent Map<String, Integer> [optional]
errors Map<String, Map<String, String>> [optional]
totalErrors Integer [optional]
error String [optional]
totalSent Integer [optional]

DebugSettings

Name Type Description Notes
failuresEnabled Boolean Debug failures. [optional]
allEnabled Boolean Debug All. Used as a trigger for updating debugAllUntil. [optional]
allEnabledUntil Long Timestamp of the end time for the processing debug events. [optional]

TbReportFormat (enum)

PDF | CSV

NotificationType (enum)

GENERAL | ALARM | DEVICE_ACTIVITY | ENTITY_ACTION | ALARM_COMMENT | RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT | ALARM_ASSIGNMENT | NEW_PLATFORM_VERSION | ENTITIES_LIMIT | ENTITIES_LIMIT_INCREASE_REQUEST | … (22 values total)

NotificationTemplateConfig

Name Type Description Notes
deliveryMethodsTemplates Map<String, DeliveryMethodNotificationTemplate>
attachReport Boolean [optional]
reportTemplateId ReportTemplateId [optional]
userId UserId [optional]
timezone String [optional]

DeliveryMethodNotificationTemplate

Name Type Description Notes
enabled Boolean [optional]
body String
method String

EmailDeliveryMethodNotificationTemplate (extends DeliveryMethodNotificationTemplate, method=EMAIL)

Name Type Description Notes
subject String

MicrosoftTeamsDeliveryMethodNotificationTemplate (extends DeliveryMethodNotificationTemplate, method=MICROSOFT_TEAMS)

Name Type Description Notes
subject String [optional]
themeColor String [optional]
button Button [optional]

MobileAppDeliveryMethodNotificationTemplate (extends DeliveryMethodNotificationTemplate, method=MOBILE_APP)

Name Type Description Notes
subject String Subject line for the mobile notification
additionalConfig com.fasterxml.jackson.databind.JsonNode Additional JSON configuration for web buttons/actions [optional]

SlackDeliveryMethodNotificationTemplate (extends DeliveryMethodNotificationTemplate, method=SLACK)

See DeliveryMethodNotificationTemplate for properties.

SmsDeliveryMethodNotificationTemplate (extends DeliveryMethodNotificationTemplate, method=SMS)

See DeliveryMethodNotificationTemplate for properties.

WebDeliveryMethodNotificationTemplate (extends DeliveryMethodNotificationTemplate, method=WEB)

Name Type Description Notes
subject String Subject line for the web notification
additionalConfig com.fasterxml.jackson.databind.JsonNode Additional JSON configuration for web buttons/actions [optional]

Button

Name Type Description Notes
enabled Boolean [optional]
text String [optional]
linkType LinkType [optional]
link String [optional]
dashboardId UUID [optional]
dashboardState String [optional]
setEntityIdInState Boolean [optional]

LinkType (enum)

LINK | DASHBOARD


Conventions

  • Package: org.thingsboard.client.model
  • Getter pattern: get<PropertyName>() — e.g., getId(), getName()
  • Setter pattern: set<PropertyName>(value) — e.g., setId(value), setName(value)
  • Null fields: Getters return null for unset optional fields; they do not throw exceptions