zenduty 0.2.6 published on Wednesday, Jan 15, 2025 by zenduty
zenduty.getAlertrules
Explore with Pulumi AI
data "zenduty_alertrules" "examplealertrules" {
team_id = ""
service_id = ""
integration_id = ""
#alert_rule_id = ""
}
import * as pulumi from "@pulumi/pulumi";
export const zendutyAlertrules = data.zenduty_alertrules.examplealertrules.alertrules;
import pulumi
pulumi.export("zendutyAlertrules", data["zenduty_alertrules"]["examplealertrules"]["alertrules"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ctx.Export("zendutyAlertrules", data.Zenduty_alertrules.Examplealertrules.Alertrules)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
return new Dictionary<string, object?>
{
["zendutyAlertrules"] = data.Zenduty_alertrules.Examplealertrules.Alertrules,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
ctx.export("zendutyAlertrules", data.zenduty_alertrules().examplealertrules().alertrules());
}
}
outputs:
zendutyAlertrules: ${data.zenduty_alertrules.examplealertrules.alertrules}
Using getAlertrules
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 getAlertrules(args: GetAlertrulesArgs, opts?: InvokeOptions): Promise<GetAlertrulesResult>
function getAlertrulesOutput(args: GetAlertrulesOutputArgs, opts?: InvokeOptions): Output<GetAlertrulesResult>
def get_alertrules(alert_rule_id: Optional[str] = None,
id: Optional[str] = None,
integration_id: Optional[str] = None,
service_id: Optional[str] = None,
team_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertrulesResult
def get_alertrules_output(alert_rule_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
integration_id: Optional[pulumi.Input[str]] = None,
service_id: Optional[pulumi.Input[str]] = None,
team_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlertrulesResult]
func LookupAlertrules(ctx *Context, args *LookupAlertrulesArgs, opts ...InvokeOption) (*LookupAlertrulesResult, error)
func LookupAlertrulesOutput(ctx *Context, args *LookupAlertrulesOutputArgs, opts ...InvokeOption) LookupAlertrulesResultOutput
> Note: This function is named LookupAlertrules
in the Go SDK.
public static class GetAlertrules
{
public static Task<GetAlertrulesResult> InvokeAsync(GetAlertrulesArgs args, InvokeOptions? opts = null)
public static Output<GetAlertrulesResult> Invoke(GetAlertrulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlertrulesResult> getAlertrules(GetAlertrulesArgs args, InvokeOptions options)
public static Output<GetAlertrulesResult> getAlertrules(GetAlertrulesArgs args, InvokeOptions options)
fn::invoke:
function: zenduty:index/getAlertrules:getAlertrules
arguments:
# arguments dictionary
The following arguments are supported:
- Integration
Id string - unique_id of the integration
- Service
Id string - unique_id of the service
- Team
Id string - unique_id of the team
- Alert
Rule stringId - unique_id of the alert rule
- Id string
- Integration
Id string - unique_id of the integration
- Service
Id string - unique_id of the service
- Team
Id string - unique_id of the team
- Alert
Rule stringId - unique_id of the alert rule
- Id string
- integration
Id String - unique_id of the integration
- service
Id String - unique_id of the service
- team
Id String - unique_id of the team
- alert
Rule StringId - unique_id of the alert rule
- id String
- integration
Id string - unique_id of the integration
- service
Id string - unique_id of the service
- team
Id string - unique_id of the team
- alert
Rule stringId - unique_id of the alert rule
- id string
- integration_
id str - unique_id of the integration
- service_
id str - unique_id of the service
- team_
id str - unique_id of the team
- alert_
rule_ strid - unique_id of the alert rule
- id str
- integration
Id String - unique_id of the integration
- service
Id String - unique_id of the service
- team
Id String - unique_id of the team
- alert
Rule StringId - unique_id of the alert rule
- id String
getAlertrules Result
The following output properties are available:
- Alertrules
List<Get
Alertrules Alertrule> - Id string
- Integration
Id string - Service
Id string - Team
Id string - Alert
Rule stringId
- Alertrules
[]Get
Alertrules Alertrule - Id string
- Integration
Id string - Service
Id string - Team
Id string - Alert
Rule stringId
- alertrules
List<Get
Alertrules Alertrule> - id String
- integration
Id String - service
Id String - team
Id String - alert
Rule StringId
- alertrules
Get
Alertrules Alertrule[] - id string
- integration
Id string - service
Id string - team
Id string - alert
Rule stringId
- alertrules List<Property Map>
- id String
- integration
Id String - service
Id String - team
Id String - alert
Rule StringId
Supporting Types
GetAlertrulesAlertrule
- Actions
List<Get
Alertrules Alertrule Action> - The actions of the alert rule as a list of maps:
- Description string
- The description of the alert rule
- Position double
- Rule
Json string - The JSON representation of the alert rule
- Rule
Type double - Stop bool
- Unique
Id string - The unique_id of the action
- Actions
[]Get
Alertrules Alertrule Action - The actions of the alert rule as a list of maps:
- Description string
- The description of the alert rule
- Position float64
- Rule
Json string - The JSON representation of the alert rule
- Rule
Type float64 - Stop bool
- Unique
Id string - The unique_id of the action
- actions
List<Get
Alertrules Alertrule Action> - The actions of the alert rule as a list of maps:
- description String
- The description of the alert rule
- position Double
- rule
Json String - The JSON representation of the alert rule
- rule
Type Double - stop Boolean
- unique
Id String - The unique_id of the action
- actions
Get
Alertrules Alertrule Action[] - The actions of the alert rule as a list of maps:
- description string
- The description of the alert rule
- position number
- rule
Json string - The JSON representation of the alert rule
- rule
Type number - stop boolean
- unique
Id string - The unique_id of the action
- actions
Sequence[Get
Alertrules Alertrule Action] - The actions of the alert rule as a list of maps:
- description str
- The description of the alert rule
- position float
- rule_
json str - The JSON representation of the alert rule
- rule_
type float - stop bool
- unique_
id str - The unique_id of the action
- actions List<Property Map>
- The actions of the alert rule as a list of maps:
- description String
- The description of the alert rule
- position Number
- rule
Json String - The JSON representation of the alert rule
- rule
Type Number - stop Boolean
- unique
Id String - The unique_id of the action
GetAlertrulesAlertruleAction
- Action
Type double - The type of the action
- Assign
To string - The assign_to of the action (only if action_type is
6
) - Escalation
Policy string - Unique id of the escalation policy (only if action_type
4
) - Key string
- Schedule string
- Sla string
- Unique_id of the sla (only if action_type is
14
) - Team
Priority string - Unique_id of the team priority (only if action_type is
15
) - Unique
Id string - The unique_id of the action
- Value string
- The value of the action (only if action_type not in
3
,4
,6
,14
,15
)
- Action
Type float64 - The type of the action
- Assign
To string - The assign_to of the action (only if action_type is
6
) - Escalation
Policy string - Unique id of the escalation policy (only if action_type
4
) - Key string
- Schedule string
- Sla string
- Unique_id of the sla (only if action_type is
14
) - Team
Priority string - Unique_id of the team priority (only if action_type is
15
) - Unique
Id string - The unique_id of the action
- Value string
- The value of the action (only if action_type not in
3
,4
,6
,14
,15
)
- action
Type Double - The type of the action
- assign
To String - The assign_to of the action (only if action_type is
6
) - escalation
Policy String - Unique id of the escalation policy (only if action_type
4
) - key String
- schedule String
- sla String
- Unique_id of the sla (only if action_type is
14
) - team
Priority String - Unique_id of the team priority (only if action_type is
15
) - unique
Id String - The unique_id of the action
- value String
- The value of the action (only if action_type not in
3
,4
,6
,14
,15
)
- action
Type number - The type of the action
- assign
To string - The assign_to of the action (only if action_type is
6
) - escalation
Policy string - Unique id of the escalation policy (only if action_type
4
) - key string
- schedule string
- sla string
- Unique_id of the sla (only if action_type is
14
) - team
Priority string - Unique_id of the team priority (only if action_type is
15
) - unique
Id string - The unique_id of the action
- value string
- The value of the action (only if action_type not in
3
,4
,6
,14
,15
)
- action_
type float - The type of the action
- assign_
to str - The assign_to of the action (only if action_type is
6
) - escalation_
policy str - Unique id of the escalation policy (only if action_type
4
) - key str
- schedule str
- sla str
- Unique_id of the sla (only if action_type is
14
) - team_
priority str - Unique_id of the team priority (only if action_type is
15
) - unique_
id str - The unique_id of the action
- value str
- The value of the action (only if action_type not in
3
,4
,6
,14
,15
)
- action
Type Number - The type of the action
- assign
To String - The assign_to of the action (only if action_type is
6
) - escalation
Policy String - Unique id of the escalation policy (only if action_type
4
) - key String
- schedule String
- sla String
- Unique_id of the sla (only if action_type is
14
) - team
Priority String - Unique_id of the team priority (only if action_type is
15
) - unique
Id String - The unique_id of the action
- value String
- The value of the action (only if action_type not in
3
,4
,6
,14
,15
)
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zenduty
Terraform Provider.