Skip to content

Bug: DeviceSDT creation fails due to incorrect resource key in SDK (SDT model) #9

@braminsign

Description

@braminsign

When attempting to create a DeviceSDT using the lm-sdk-python (specifically the sdt.py model), the operation fails with an error indicating that a "resource" cannot be found. This suggests a mismatch in the expected payload structure between the SDK and the LogicMonitor API for DeviceSDT creation.

'id': 'id',

Example of Web Interface API Payload (observed via web-dev tools):

{
  "deviceId": 1,
  "type": "ResourceSDT",
  "sdtType": "oneTime",
  "startDateTime": 1750312260000,
  "endDateTime": 1750315860000,
  "timezone": "Europe/Amsterdam",
  "comment": ""
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions