Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty
zenduty.getHeartbeats lists the account’s heartbeats, optionally filtered to one service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const backup = zenduty.getHeartbeats({
serviceId: backupZendutyServices.id,
});
export const expiredHeartbeats = backup.then(backup => .filter(h => h.status == "expired").map(h => (h.name)));
import pulumi
import pulumi_zenduty as zenduty
backup = zenduty.get_heartbeats(service_id=backup_zenduty_services["id"])
pulumi.export("expiredHeartbeats", [h.name for h in backup.heartbeats if h.status == "expired"])
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() =>
{
var backup = Zenduty.GetHeartbeats.Invoke(new()
{
ServiceId = backupZendutyServices.Id,
});
return new Dictionary<string, object?>
{
["expiredHeartbeats"] = .Where(h => h.Status == "expired").Select(h =>
{
return h.Name;
}).ToList(),
};
});
Example coming soon!
Example coming soon!
Example coming soon!
Using getHeartbeats
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHeartbeats(args: GetHeartbeatsArgs, opts?: InvokeOptions): Promise<GetHeartbeatsResult>
function getHeartbeatsOutput(args: GetHeartbeatsOutputArgs, opts?: InvokeOutputOptions): Output<GetHeartbeatsResult>def get_heartbeats(id: Optional[str] = None,
service_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHeartbeatsResult
def get_heartbeats_output(id: pulumi.Input[Optional[str]] = None,
service_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetHeartbeatsResult]func GetHeartbeats(ctx *Context, args *GetHeartbeatsArgs, opts ...InvokeOption) (*GetHeartbeatsResult, error)
func GetHeartbeatsOutput(ctx *Context, args *GetHeartbeatsOutputArgs, opts ...InvokeOption) GetHeartbeatsResultOutput> Note: This function is named GetHeartbeats in the Go SDK.
public static class GetHeartbeats
{
public static Task<GetHeartbeatsResult> InvokeAsync(GetHeartbeatsArgs args, InvokeOptions? opts = null)
public static Output<GetHeartbeatsResult> Invoke(GetHeartbeatsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetHeartbeatsResult> Invoke(GetHeartbeatsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetHeartbeatsResult> getHeartbeats(GetHeartbeatsArgs args, InvokeOptions options)
public static Output<GetHeartbeatsResult> getHeartbeats(GetHeartbeatsArgs args, InvokeOptions options)
public static Output<GetHeartbeatsResult> getHeartbeats(GetHeartbeatsArgs args, InvokeOutputOptions options)
fn::invoke:
function: zenduty:index/getHeartbeats:getHeartbeats
arguments:
# arguments dictionarydata "zenduty_get_heartbeats" "name" {
# arguments
}The following arguments are supported:
- id string
- service_
id string - Only return heartbeats of this service.
- id str
- service_
id str - Only return heartbeats of this service.
getHeartbeats Result
The following output properties are available:
- Heartbeats
List<Get
Heartbeats Heartbeat> - The list of heartbeats, each with:
- Id string
- Service
Id string - ,
service_name,team_id,team_name
- Heartbeats
[]Get
Heartbeats Heartbeat - The list of heartbeats, each with:
- Id string
- Service
Id string - ,
service_name,team_id,team_name
- heartbeats list(object)
- The list of heartbeats, each with:
- id string
- service_
id string - ,
service_name,team_id,team_name
- heartbeats
List<Get
Heartbeats Heartbeat> - The list of heartbeats, each with:
- id String
- service
Id String - ,
service_name,team_id,team_name
- heartbeats
Get
Heartbeats Heartbeat[] - The list of heartbeats, each with:
- id string
- service
Id string - ,
service_name,team_id,team_name
- heartbeats
Sequence[Get
Heartbeats Heartbeat] - The list of heartbeats, each with:
- id str
- service_
id str - ,
service_name,team_id,team_name
- heartbeats List<Property Map>
- The list of heartbeats, each with:
- id String
- service
Id String - ,
service_name,team_id,team_name
Supporting Types
GetHeartbeatsHeartbeat
- Alert
Message string - ,
alert_urgency(0low,1high,-1when unset),ping_type,email_subject_contains - Alert
Urgency double - Description string
- Email
Subject stringContains - Expires
At string - Interval
Seconds double - ,
is_enabled,status(disabled,pending,healthy,expired) - Is
Enabled bool - Last
Ping stringAt - Name string
- Ping
Email string - Ping
Type double - Ping
Url string - ,
ping_email,last_ping_at,expires_at - Service
Id string - Only return heartbeats of this service.
- Service
Name string - Status string
- Team
Id string - Team
Name string - Unique
Id string - ,
name,description
- Alert
Message string - ,
alert_urgency(0low,1high,-1when unset),ping_type,email_subject_contains - Alert
Urgency float64 - Description string
- Email
Subject stringContains - Expires
At string - Interval
Seconds float64 - ,
is_enabled,status(disabled,pending,healthy,expired) - Is
Enabled bool - Last
Ping stringAt - Name string
- Ping
Email string - Ping
Type float64 - Ping
Url string - ,
ping_email,last_ping_at,expires_at - Service
Id string - Only return heartbeats of this service.
- Service
Name string - Status string
- Team
Id string - Team
Name string - Unique
Id string - ,
name,description
- alert_
message string - ,
alert_urgency(0low,1high,-1when unset),ping_type,email_subject_contains - alert_
urgency number - description string
- email_
subject_ stringcontains - expires_
at string - interval_
seconds number - ,
is_enabled,status(disabled,pending,healthy,expired) - is_
enabled bool - last_
ping_ stringat - name string
- ping_
email string - ping_
type number - ping_
url string - ,
ping_email,last_ping_at,expires_at - service_
id string - Only return heartbeats of this service.
- service_
name string - status string
- team_
id string - team_
name string - unique_
id string - ,
name,description
- alert
Message String - ,
alert_urgency(0low,1high,-1when unset),ping_type,email_subject_contains - alert
Urgency Double - description String
- email
Subject StringContains - expires
At String - interval
Seconds Double - ,
is_enabled,status(disabled,pending,healthy,expired) - is
Enabled Boolean - last
Ping StringAt - name String
- ping
Email String - ping
Type Double - ping
Url String - ,
ping_email,last_ping_at,expires_at - service
Id String - Only return heartbeats of this service.
- service
Name String - status String
- team
Id String - team
Name String - unique
Id String - ,
name,description
- alert
Message string - ,
alert_urgency(0low,1high,-1when unset),ping_type,email_subject_contains - alert
Urgency number - description string
- email
Subject stringContains - expires
At string - interval
Seconds number - ,
is_enabled,status(disabled,pending,healthy,expired) - is
Enabled boolean - last
Ping stringAt - name string
- ping
Email string - ping
Type number - ping
Url string - ,
ping_email,last_ping_at,expires_at - service
Id string - Only return heartbeats of this service.
- service
Name string - status string
- team
Id string - team
Name string - unique
Id string - ,
name,description
- alert_
message str - ,
alert_urgency(0low,1high,-1when unset),ping_type,email_subject_contains - alert_
urgency float - description str
- email_
subject_ strcontains - expires_
at str - interval_
seconds float - ,
is_enabled,status(disabled,pending,healthy,expired) - is_
enabled bool - last_
ping_ strat - name str
- ping_
email str - ping_
type float - ping_
url str - ,
ping_email,last_ping_at,expires_at - service_
id str - Only return heartbeats of this service.
- service_
name str - status str
- team_
id str - team_
name str - unique_
id str - ,
name,description
- alert
Message String - ,
alert_urgency(0low,1high,-1when unset),ping_type,email_subject_contains - alert
Urgency Number - description String
- email
Subject StringContains - expires
At String - interval
Seconds Number - ,
is_enabled,status(disabled,pending,healthy,expired) - is
Enabled Boolean - last
Ping StringAt - name String
- ping
Email String - ping
Type Number - ping
Url String - ,
ping_email,last_ping_at,expires_at - service
Id String - Only return heartbeats of this service.
- service
Name String - status String
- team
Id String - team
Name String - unique
Id String - ,
name,description
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty