Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly
rootly.getSeverity
Explore with Pulumi AI
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rootly = Pulumi.Rootly;
return await Deployment.RunAsync(() =>
{
var critical = Rootly.GetSeverity.Invoke(new()
{
Slug = "sev0",
});
});
package main
import (
"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rootly.LookupSeverity(ctx, &rootly.LookupSeverityArgs{
Slug: pulumi.StringRef("sev0"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rootly.RootlyFunctions;
import com.pulumi.rootly.inputs.GetSeverityArgs;
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) {
final var critical = RootlyFunctions.getSeverity(GetSeverityArgs.builder()
.slug("sev0")
.build());
}
}
import pulumi
import pulumi_rootly as rootly
critical = rootly.get_severity(slug="sev0")
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const critical = rootly.getSeverity({
slug: "sev0",
});
variables:
critical:
fn::invoke:
Function: rootly:getSeverity
Arguments:
slug: sev0
Using getSeverity
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 getSeverity(args: GetSeverityArgs, opts?: InvokeOptions): Promise<GetSeverityResult>
function getSeverityOutput(args: GetSeverityOutputArgs, opts?: InvokeOptions): Output<GetSeverityResult>
def get_severity(color: Optional[str] = None,
created_at: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None,
severity: Optional[str] = None,
slug: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSeverityResult
def get_severity_output(color: Optional[pulumi.Input[str]] = None,
created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
name: Optional[pulumi.Input[str]] = None,
severity: Optional[pulumi.Input[str]] = None,
slug: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSeverityResult]
func LookupSeverity(ctx *Context, args *LookupSeverityArgs, opts ...InvokeOption) (*LookupSeverityResult, error)
func LookupSeverityOutput(ctx *Context, args *LookupSeverityOutputArgs, opts ...InvokeOption) LookupSeverityResultOutput
> Note: This function is named LookupSeverity
in the Go SDK.
public static class GetSeverity
{
public static Task<GetSeverityResult> InvokeAsync(GetSeverityArgs args, InvokeOptions? opts = null)
public static Output<GetSeverityResult> Invoke(GetSeverityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSeverityResult> getSeverity(GetSeverityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rootly:index/getSeverity:getSeverity
arguments:
# arguments dictionary
The following arguments are supported:
- color str
- created_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
- name str
- severity str
- slug str
getSeverity Result
The following output properties are available:
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.