db

Element details

type: meya.db.integration
class: DbIntegration
path: /meya/db/integration.py
signature: -

Fields

fielddescription               requiredsignaturedefaulttype
specOverride the original spec for this element.nullSpec
enabledEnables the integration, allowing it to process events and HTTP/WS entries.truebool
filterSpecifies the GridQL to filter rx_sub, rx, tx, tx_pubentries. Check the integration filtering guidefor more info.rx_sub: true
rx: true
tx: true
tx_pub: true
IntegrationFilter
verify_tokenThe token to be verified for each incoming request. You need to add the verify_token=YOUR_TOKEN query parameter to integration's webhook URL.nullstr
max_attachment_sizeControls maximum attachment size supported by the integration in bytes.nullint
presence_queuecache_maxlen: 10000
DbQueueConfigSpec
presence_ledgercache_maxlen: 200
cache_ttl: 3m
persist: false
PresenceLedgerConfigSpec
presence_device_viewcache_ttl: 3m
persist: false
PresenceHashViewConfigSpec
ws_queuecache_maxlen: 10000
DbQueueConfigSpec
ws_ledgercache_maxlen: 2
cache_ttl: 3m
persist: false
WsLedgerConfigSpec

Usage reference

Basic

type: meya.db.integration

Full

type: meya.db.integration
spec:
  type: STRING
  data:
    STRING: ANY
  timeout: 123
  trigger_when: ANY
enabled: false
filter:
  rx_sub: STRING
  rx: STRING
  tx: STRING
  tx_pub: STRING
verify_token: STRING
max_attachment_size: 123
presence_queue:
  cache_maxlen: 123
presence_ledger:
  cache_maxlen: 123
  cache_ttl: 60s
  persist: false
presence_device_view:
  cache_ttl: 60s
  persist: false
ws_queue:
  cache_maxlen: 123
ws_ledger:
  cache_maxlen: 123
  cache_ttl: 60s
  persist: false