Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly
rootly.getIncident
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
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.GetIncidentArgs;
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 my-incident = RootlyFunctions.getIncident(GetIncidentArgs.builder()
            .slug("my-incident-slug")
            .build());
    }
}
Coming soon!
Coming soon!
variables:
  my-incident:
    fn::invoke:
      Function: rootly:getIncident
      Arguments:
        slug: my-incident-slug
Using getIncident
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 getIncident(args: GetIncidentArgs, opts?: InvokeOptions): Promise<GetIncidentResult>
function getIncidentOutput(args: GetIncidentOutputArgs, opts?: InvokeOptions): Output<GetIncidentResult>def get_incident(acknowledged_at: Optional[Mapping[str, Any]] = None,
                 created_at: Optional[Mapping[str, Any]] = None,
                 detected_at: Optional[Mapping[str, Any]] = None,
                 environments: Optional[str] = None,
                 functionalities: Optional[str] = None,
                 in_triage_at: Optional[Mapping[str, Any]] = None,
                 kind: Optional[str] = None,
                 labels: Optional[str] = None,
                 mitigated_at: Optional[Mapping[str, Any]] = None,
                 resolved_at: Optional[Mapping[str, Any]] = None,
                 services: Optional[str] = None,
                 severity: Optional[str] = None,
                 started_at: Optional[Mapping[str, Any]] = None,
                 updated_at: Optional[Mapping[str, Any]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetIncidentResult
def get_incident_output(acknowledged_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 detected_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 environments: Optional[pulumi.Input[str]] = None,
                 functionalities: Optional[pulumi.Input[str]] = None,
                 in_triage_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 kind: Optional[pulumi.Input[str]] = None,
                 labels: Optional[pulumi.Input[str]] = None,
                 mitigated_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 resolved_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 services: Optional[pulumi.Input[str]] = None,
                 severity: Optional[pulumi.Input[str]] = None,
                 started_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 updated_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetIncidentResult]func GetIncident(ctx *Context, args *GetIncidentArgs, opts ...InvokeOption) (*GetIncidentResult, error)
func GetIncidentOutput(ctx *Context, args *GetIncidentOutputArgs, opts ...InvokeOption) GetIncidentResultOutput> Note: This function is named GetIncident in the Go SDK.
public static class GetIncident 
{
    public static Task<GetIncidentResult> InvokeAsync(GetIncidentArgs args, InvokeOptions? opts = null)
    public static Output<GetIncidentResult> Invoke(GetIncidentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIncidentResult> getIncident(GetIncidentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: rootly:index/getIncident:getIncident
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Acknowledged
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Created
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Detected
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Environments string
 - Functionalities string
 - In
Triage Dictionary<string, object>At  - Filter by date range using 'lt' and 'gt'.
 - Kind string
 - Labels string
 - Mitigated
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Resolved
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Services string
 - Severity string
 - Started
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Updated
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 
- Acknowledged
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Created
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Detected
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Environments string
 - Functionalities string
 - In
Triage map[string]interface{}At  - Filter by date range using 'lt' and 'gt'.
 - Kind string
 - Labels string
 - Mitigated
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Resolved
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Services string
 - Severity string
 - Started
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Updated
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 
- acknowledged
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - created
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - detected
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - environments String
 - functionalities String
 - in
Triage Map<String,Object>At  - Filter by date range using 'lt' and 'gt'.
 - kind String
 - labels String
 - mitigated
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - resolved
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - services String
 - severity String
 - started
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - updated
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 
- acknowledged
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - created
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - detected
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - environments string
 - functionalities string
 - in
Triage {[key: string]: any}At  - Filter by date range using 'lt' and 'gt'.
 - kind string
 - labels string
 - mitigated
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - resolved
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - services string
 - severity string
 - started
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - updated
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 
- acknowledged_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - created_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - detected_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - environments str
 - functionalities str
 - in_
triage_ Mapping[str, Any]at  - Filter by date range using 'lt' and 'gt'.
 - kind str
 - labels str
 - mitigated_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - resolved_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - services str
 - severity str
 - started_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - updated_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 
- acknowledged
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - created
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - detected
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - environments String
 - functionalities String
 - in
Triage Map<Any>At  - Filter by date range using 'lt' and 'gt'.
 - kind String
 - labels String
 - mitigated
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - resolved
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - services String
 - severity String
 - started
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - updated
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 
getIncident Result
The following output properties are available:
- Environments string
 - Functionalities string
 - Id string
 - The ID of this resource.
 - Kind string
 - Labels string
 - Services string
 - Severity string
 - Acknowledged
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Created
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Detected
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - In
Triage Dictionary<string, object>At  - Filter by date range using 'lt' and 'gt'.
 - Mitigated
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Resolved
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Started
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 - Updated
At Dictionary<string, object> - Filter by date range using 'lt' and 'gt'.
 
- Environments string
 - Functionalities string
 - Id string
 - The ID of this resource.
 - Kind string
 - Labels string
 - Services string
 - Severity string
 - Acknowledged
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Created
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Detected
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - In
Triage map[string]interface{}At  - Filter by date range using 'lt' and 'gt'.
 - Mitigated
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Resolved
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Started
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 - Updated
At map[string]interface{} - Filter by date range using 'lt' and 'gt'.
 
- environments String
 - functionalities String
 - id String
 - The ID of this resource.
 - kind String
 - labels String
 - services String
 - severity String
 - acknowledged
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - created
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - detected
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - in
Triage Map<String,Object>At  - Filter by date range using 'lt' and 'gt'.
 - mitigated
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - resolved
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - started
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 - updated
At Map<String,Object> - Filter by date range using 'lt' and 'gt'.
 
- environments string
 - functionalities string
 - id string
 - The ID of this resource.
 - kind string
 - labels string
 - services string
 - severity string
 - acknowledged
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - created
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - detected
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - in
Triage {[key: string]: any}At  - Filter by date range using 'lt' and 'gt'.
 - mitigated
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - resolved
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - started
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 - updated
At {[key: string]: any} - Filter by date range using 'lt' and 'gt'.
 
- environments str
 - functionalities str
 - id str
 - The ID of this resource.
 - kind str
 - labels str
 - services str
 - severity str
 - acknowledged_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - created_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - detected_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - in_
triage_ Mapping[str, Any]at  - Filter by date range using 'lt' and 'gt'.
 - mitigated_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - resolved_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - started_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 - updated_
at Mapping[str, Any] - Filter by date range using 'lt' and 'gt'.
 
- environments String
 - functionalities String
 - id String
 - The ID of this resource.
 - kind String
 - labels String
 - services String
 - severity String
 - acknowledged
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - created
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - detected
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - in
Triage Map<Any>At  - Filter by date range using 'lt' and 'gt'.
 - mitigated
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - resolved
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - started
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 - updated
At Map<Any> - Filter by date range using 'lt' and 'gt'.
 
Package Details
- Repository
 - rootly rootlyhq/pulumi-rootly
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
rootlyTerraform Provider.