Skip to content

Heartbeat : lastPingTime is not accessible #151

@nicolasbrechet

Description

@nicolasbrechet

Hi,

When doing a curl request to get a Heartbeat, I receive the following (anonymized) payload:
{ "data": { "name": "my_heartbeat", "description": "Example heartbeat", "ownerTeam": { "id": "team-uuid", "name": "team name" }, "interval": 10, "enabled": true, "intervalUnit": "minutes", "expired": false, "lastPingTime": "2025-02-20T09:00:00.000Z", "alertMessage": "Opsgenie Heartbeat is expired", "alertTags": [ "someTag", "someOtherTag" ], "alertPriority": "P1" }, "took": 0.014, "requestId": "request-uuid" }

As you can see, there is a "lastPingTime" key.

However, the Heartbeat type doesn't contain it. It seems coherent with the documentation.

Imho it is a very useful information to get.

Would it be possible to add it to the Go sdk ?

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