AlarmCalculatedFieldConfiguration
tb_ce_client.models.AlarmCalculatedFieldConfiguration
Extends: CalculatedFieldConfiguration
Name
Type
Description
Notes
arguments
Dict[str, Argument]
create_rules
Dict[str, AlarmRule]
clear_rule
AlarmRule
[optional]
propagate
bool
[optional]
propagate_to_owner
bool
[optional]
propagate_to_tenant
bool
[optional]
propagate_relation_types
List[str]
[optional]
EntityId types (AdminSettingsId, AiModelId, AlarmId, ApiKeyId, ApiUsageStateId, AssetId, AssetProfileId, CalculatedFieldId, CustomerId, DashboardId, DeviceId, DeviceProfileId, DomainId, EdgeId, EntityViewId, JobId, MobileAppBundleId, MobileAppId, NotificationId, NotificationRequestId, NotificationRuleId, NotificationTargetId, NotificationTemplateId, OAuth2ClientId, OtaPackageId, QueueId, QueueStatsId, RpcId, RuleChainId, RuleNodeId, TbResourceId, TenantId, TenantProfileId, UserId, WidgetTypeId, WidgetsBundleId, etc.): {entity_type: EntityType, id: UUID} — all EntityId subtypes share this structure.
CalculatedFieldConfiguration
Name
Type
Description
Notes
output
Output
[optional]
type
str
Name
Type
Description
Notes
ref_entity_id
EntityId
[optional]
ref_dynamic_source_configuration
CfArgumentDynamicSourceConfiguration
[optional]
ref_entity_key
ReferencedEntityKey
[optional]
default_value
str
[optional]
limit
int
[optional]
time_window
int
[optional]
Name
Type
Description
Notes
condition
AlarmCondition
alarm_details
str
[optional]
dashboard_id
DashboardId
[optional]
Name
Type
Description
Notes
decimals_by_default
int
[optional]
name
str
[optional]
scope
AttributeScope
[optional]
strategy
object
[optional]
type
str
AttributesOutput (extends Output, type=ATTRIBUTES)
Name
Type
Description
Notes
strategy
AttributesOutputStrategy
[optional]
TimeSeriesOutput (extends Output, type=TIME_SERIES)
Name
Type
Description
Notes
strategy
TimeSeriesOutputStrategy
[optional]
CfArgumentDynamicSourceConfiguration
Name
Type
Description
Notes
type
str
CurrentOwnerDynamicSourceConfiguration (extends CfArgumentDynamicSourceConfiguration, type=CURRENT_OWNER)
See CfArgumentDynamicSourceConfiguration for properties.
RelationPathQueryDynamicSourceConfiguration (extends CfArgumentDynamicSourceConfiguration, type=RELATION_PATH_QUERY)
Name
Type
Description
Notes
levels
List[RelationPathLevel]
[optional]
Name
Type
Description
Notes
key
str
[optional]
type
ArgumentType
[optional]
scope
AttributeScope
[optional]
Name
Type
Description
Notes
expression
AlarmConditionExpression
schedule
AlarmConditionValueAlarmSchedule
[optional]
type
str
DurationAlarmCondition (extends AlarmCondition, type=DURATION)
Name
Type
Description
Notes
unit
TimeUnit
value
AlarmConditionValueLong
RepeatingAlarmCondition (extends AlarmCondition, type=REPEATING)
Name
Type
Description
Notes
count
AlarmConditionValueInteger
SimpleAlarmCondition (extends AlarmCondition, type=SIMPLE)
See AlarmCondition for properties.
CLIENT_SCOPE | SERVER_SCOPE | SHARED_SCOPE
TENANT | CUSTOMER | USER | DASHBOARD | ASSET | DEVICE | ALARM | RULE_CHAIN | RULE_NODE | ENTITY_VIEW | … (36 values total)
TS_LATEST | ATTRIBUTE | TS_ROLLING
Name
Type
Description
Notes
type
str
SimpleAlarmConditionExpression (extends AlarmConditionExpression, type=SIMPLE)
Name
Type
Description
Notes
filters
List[AlarmConditionFilter]
operation
AlarmRuleComplexOperation
[optional]
TbelAlarmConditionExpression (extends AlarmConditionExpression, type=TBEL)
Name
Type
Description
Notes
expression
str
AlarmConditionValueAlarmSchedule
Name
Type
Description
Notes
static_value
AlarmSchedule
[optional]
dynamic_value_argument
str
[optional]
Name
Type
Description
Notes
type
str
TimeSeriesImmediateOutputStrategy (extends TimeSeriesOutputStrategy, type=IMMEDIATE)
Name
Type
Description
Notes
ttl
int
[optional]
save_time_series
bool
[optional]
save_latest
bool
[optional]
send_ws_update
bool
[optional]
process_cfs
bool
[optional]
TimeSeriesRuleChainOutputStrategy (extends TimeSeriesOutputStrategy, type=RULE_CHAIN)
See TimeSeriesOutputStrategy for properties.
Name
Type
Description
Notes
type
str
AttributesImmediateOutputStrategy (extends AttributesOutputStrategy, type=IMMEDIATE)
Name
Type
Description
Notes
send_attributes_updated_notification
bool
[optional]
update_attributes_only_on_value_change
bool
[optional]
save_attribute
bool
[optional]
send_ws_update
bool
[optional]
process_cfs
bool
[optional]
AttributesRuleChainOutputStrategy (extends AttributesOutputStrategy, type=RULE_CHAIN)
See AttributesOutputStrategy for properties.
Name
Type
Description
Notes
direction
EntitySearchDirection
relation_type
str
Name
Type
Description
Notes
type
str
AnyTimeSchedule (extends AlarmSchedule, type=ANY_TIME)
See AlarmSchedule for properties.
CustomTimeSchedule (extends AlarmSchedule, type=CUSTOM)
Name
Type
Description
Notes
timezone
str
[optional]
items
List[CustomTimeScheduleItem]
[optional]
SpecificTimeSchedule (extends AlarmSchedule, type=SPECIFIC_TIME)
Name
Type
Description
Notes
timezone
str
[optional]
days_of_week
List[int]
[optional]
starts_on
int
[optional]
ends_on
int
[optional]
NANOSECONDS | MICROSECONDS | MILLISECONDS | SECONDS | MINUTES | HOURS | DAYS
Name
Type
Description
Notes
static_value
int
[optional]
dynamic_value_argument
str
[optional]
AlarmConditionValueInteger
Name
Type
Description
Notes
static_value
int
[optional]
dynamic_value_argument
str
[optional]
EntitySearchDirection (enum)
FROM | TO
Name
Type
Description
Notes
argument
str
value_type
EntityKeyValueType
operation
AlarmRuleComplexOperation
[optional]
predicates
List[AlarmRuleKeyFilterPredicate]
AlarmRuleComplexOperation (enum)
AND | OR
EntityKeyValueType (enum)
STRING | NUMERIC | BOOLEAN | DATE_TIME
AlarmRuleKeyFilterPredicate
Name
Type
Description
Notes
type
str
AlarmRuleBooleanFilterPredicate (extends AlarmRuleKeyFilterPredicate, type=BOOLEAN)
Name
Type
Description
Notes
operation
AlarmRuleBooleanOperation
value
AlarmConditionValueBoolean
AlarmRuleComplexFilterPredicate (extends AlarmRuleKeyFilterPredicate, type=COMPLEX)
Name
Type
Description
Notes
operation
AlarmRuleComplexOperation
[optional]
predicates
List[AlarmRuleKeyFilterPredicate]
[optional]
NoDataFilterPredicate (extends AlarmRuleKeyFilterPredicate, type=NO_DATA)
Name
Type
Description
Notes
unit
TimeUnit
duration
AlarmConditionValueLong
AlarmRuleNumericFilterPredicate (extends AlarmRuleKeyFilterPredicate, type=NUMERIC)
Name
Type
Description
Notes
operation
AlarmRuleNumericOperation
value
AlarmConditionValueDouble
AlarmRuleStringFilterPredicate (extends AlarmRuleKeyFilterPredicate, type=STRING)
Name
Type
Description
Notes
operation
AlarmRuleStringOperation
value
AlarmConditionValueString
ignore_case
bool
[optional]
Name
Type
Description
Notes
enabled
bool
[optional]
day_of_week
int
[optional]
starts_on
int
[optional]
ends_on
int
[optional]
AlarmRuleStringOperation (enum)
EQUAL | NOT_EQUAL | STARTS_WITH | ENDS_WITH | CONTAINS | NOT_CONTAINS | IN | NOT_IN
AlarmConditionValueString
Name
Type
Description
Notes
static_value
str
[optional]
dynamic_value_argument
str
[optional]
AlarmRuleNumericOperation (enum)
EQUAL | NOT_EQUAL | GREATER | LESS | GREATER_OR_EQUAL | LESS_OR_EQUAL
AlarmConditionValueDouble
Name
Type
Description
Notes
static_value
float
[optional]
dynamic_value_argument
str
[optional]
AlarmRuleBooleanOperation (enum)
EQUAL | NOT_EQUAL
AlarmConditionValueBoolean
Name
Type
Description
Notes
static_value
bool
[optional]
dynamic_value_argument
str
[optional]
Package: tb_ce_client.models
Attribute access: obj.arguments, obj.name, etc.
Serialize: obj.model_dump() or obj.model_dump(by_alias=True) for camelCase JSON
Deserialize: AlarmCalculatedFieldConfiguration.model_validate(data) or AlarmCalculatedFieldConfiguration.model_validate_json(json_str)
None fields: Optional attributes default to None; accessing them never raises exceptions