createdAt date-time — OPTIONALCreation timestamp (ISO 8601, UTC). |
updatedAt date-time — OPTIONALLast update timestamp (ISO 8601, UTC). |
createdBy string — OPTIONAL |
updatedBy string — OPTIONALEmail of the last updater. |
id stringPubNub-generated unique ID for the Business Object. Required in later requests for GET, UPDATE, and DELETE methods. |
name stringBusiness object name (1-50 characters). |
isActive booleanWhether to start capturing data (default: false). |
description string — OPTIONALDescription (max 200 characters). |
fields object[] — OPTIONALData fields for the business object (max 100). id stringPubNub-generated unique ID for the field. Required when creating metrics and decisions. Used as measureId, dimensionIds, or inputFields[].sourceId. | name stringField name (1-50 characters). | jsonPath string — OPTIONALJSON path expression for extracting data (max 200 chars). Required when source is JSONPATH and isActive is true. | jsonFieldType stringPossible values: [TEXT, TEXT_LONG, NUMERIC, TIMESTAMP, DURATION_SECONDS] Field data type: TEXT, TEXT_LONG (character limit is 1000, limited to 5 per Business Object), NUMERIC, or TIMESTAMP. Required when source is JSONPATH. | isKeyset booleanBoolean flag indicating if this field is part of the keyset. Informational only. | source stringPossible values: [JSONPATH, DERIVED] Field source type: JSONPATH or DERIVED. | derivation object — OPTIONALDerivation configuration. Required when source is DERIVED. operation stringPossible values: [TIME_DIFF] Derivation operation type. Currently only TIME_DIFF is supported. | params objectParameters for the derivation calculation. startSource stringPossible values: [DATA_FIELD, PUBLISH_TIMETOKEN] Start source for time difference calculation: DATA_FIELD or PUBLISH_TIMETOKEN. DATA_FIELD accepts only TIMESTAMP data type. | startFieldIndex number — OPTIONALIndex or position of the start timestamp data field in your array. Not required if startSource is PUBLISH_TIMETOKEN. | endSource stringPossible values: [DATA_FIELD, PUBLISH_TIMETOKEN] End source for time difference calculation: DATA_FIELD or PUBLISH_TIMETOKEN. | endFieldIndex number — OPTIONALIndex or position of the end timestamp data field in your array. Not required if endSource is PUBLISH_TIMETOKEN. |
|
|
|
accountId string |
subkeys string[]PubNub subscribe keys to capture data from (min 0, max 10). At least one subscribe key must be specified to activate the Business Object. |
metrics (circular)[] — OPTIONALAssociated metrics for this business object. |
decisions (circular)[] — OPTIONALAssociated decisions for this business object. |
dashboards object[] — OPTIONALAssociated dashboards for this business object. createdAt date-time — OPTIONALCreation timestamp (ISO 8601, UTC). | updatedAt date-time — OPTIONALLast update timestamp (ISO 8601, UTC). | createdBy string — OPTIONAL | updatedBy string — OPTIONALEmail of the last updater. | id stringPubNub-generated unique ID for the dashboard. Required in later requests to update, delete, or retrieve the dashboard. | name stringDashboard title (max 50 characters). | accountId string | dateRange stringPossible values: [30 minutes, 1 hour, 24 hours, 3 days, 1 week, 30 days, 3 months, Custom date] Date range for dashboard data: 30 minutes, 1 hour, 24 hours, 3 days, 1 week, 30 days, 3 months, or Custom date. | startDate date-time — OPTIONALCustom start date/time (ISO 8601). Required when dateRange is Custom date. | endDate date-time — OPTIONALCustom end date/time (ISO 8601). Required when dateRange is Custom date. | charts object[]List of charts to display on the dashboard. id string | series object[]title string | metric string | values object[]date date-time | value number |
| tooltip string |
|
| customer object — OPTIONALAssociated OEM customer for this dashboard. id stringYour unique customer ID for OEM partners (requires Partner Portal). | name string |
|
|
queries (circular)[] — OPTIONALAssociated queries for this business object. |
customers object[] — OPTIONALAssociated OEM customers for this business object. id stringYour unique customer ID for OEM partners (requires Partner Portal). | name string |
|