Viewing docs for logzio 1.27.0
published on Thursday, Feb 19, 2026 by logzio
published on Thursday, Feb 19, 2026 by logzio
Viewing docs for logzio 1.27.0
published on Thursday, Feb 19, 2026 by logzio
published on Thursday, Feb 19, 2026 by logzio
# Unified Alert Data Source
Use this data source to access information about an existing Logz.io unified alert.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as logzio from "@pulumi/logzio";
// Lookup log alert by ID
const logAlertById = logzio.getUnifiedAlert({
type: "LOG_ALERT",
alertId: "alert-123",
});
// Lookup metric alert by ID
const metricAlertById = logzio.getUnifiedAlert({
type: "METRIC_ALERT",
alertId: "alert-456",
});
// Reference from a managed resource
const fromResource = logzio.getUnifiedAlert({
type: "LOG_ALERT",
alertId: myLogAlert.alertId,
});
export const alertTitle = logAlertById.then(logAlertById => logAlertById.title);
export const alertEnabled = logAlertById.then(logAlertById => logAlertById.enabled);
export const metricSeverity = metricAlertById.then(metricAlertById => metricAlertById.alertConfigurations?.[0]?.severity);
import pulumi
import pulumi_logzio as logzio
# Lookup log alert by ID
log_alert_by_id = logzio.get_unified_alert(type="LOG_ALERT",
alert_id="alert-123")
# Lookup metric alert by ID
metric_alert_by_id = logzio.get_unified_alert(type="METRIC_ALERT",
alert_id="alert-456")
# Reference from a managed resource
from_resource = logzio.get_unified_alert(type="LOG_ALERT",
alert_id=my_log_alert["alertId"])
pulumi.export("alertTitle", log_alert_by_id.title)
pulumi.export("alertEnabled", log_alert_by_id.enabled)
pulumi.export("metricSeverity", metric_alert_by_id.alert_configurations[0].severity)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/logzio/logzio"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Lookup log alert by ID
logAlertById, err := logzio.LookupUnifiedAlert(ctx, &logzio.LookupUnifiedAlertArgs{
Type: "LOG_ALERT",
AlertId: "alert-123",
}, nil)
if err != nil {
return err
}
// Lookup metric alert by ID
metricAlertById, err := logzio.LookupUnifiedAlert(ctx, &logzio.LookupUnifiedAlertArgs{
Type: "METRIC_ALERT",
AlertId: "alert-456",
}, nil)
if err != nil {
return err
}
// Reference from a managed resource
_, err = logzio.LookupUnifiedAlert(ctx, &logzio.LookupUnifiedAlertArgs{
Type: "LOG_ALERT",
AlertId: myLogAlert.AlertId,
}, nil)
if err != nil {
return err
}
ctx.Export("alertTitle", logAlertById.Title)
ctx.Export("alertEnabled", logAlertById.Enabled)
ctx.Export("metricSeverity", metricAlertById.AlertConfigurations[0].Severity)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Logzio = Pulumi.Logzio;
return await Deployment.RunAsync(() =>
{
// Lookup log alert by ID
var logAlertById = Logzio.GetUnifiedAlert.Invoke(new()
{
Type = "LOG_ALERT",
AlertId = "alert-123",
});
// Lookup metric alert by ID
var metricAlertById = Logzio.GetUnifiedAlert.Invoke(new()
{
Type = "METRIC_ALERT",
AlertId = "alert-456",
});
// Reference from a managed resource
var fromResource = Logzio.GetUnifiedAlert.Invoke(new()
{
Type = "LOG_ALERT",
AlertId = myLogAlert.AlertId,
});
return new Dictionary<string, object?>
{
["alertTitle"] = logAlertById.Apply(getUnifiedAlertResult => getUnifiedAlertResult.Title),
["alertEnabled"] = logAlertById.Apply(getUnifiedAlertResult => getUnifiedAlertResult.Enabled),
["metricSeverity"] = metricAlertById.Apply(getUnifiedAlertResult => getUnifiedAlertResult.AlertConfigurations[0]?.Severity),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.logzio.LogzioFunctions;
import com.pulumi.logzio.inputs.GetUnifiedAlertArgs;
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) {
// Lookup log alert by ID
final var logAlertById = LogzioFunctions.getUnifiedAlert(GetUnifiedAlertArgs.builder()
.type("LOG_ALERT")
.alertId("alert-123")
.build());
// Lookup metric alert by ID
final var metricAlertById = LogzioFunctions.getUnifiedAlert(GetUnifiedAlertArgs.builder()
.type("METRIC_ALERT")
.alertId("alert-456")
.build());
// Reference from a managed resource
final var fromResource = LogzioFunctions.getUnifiedAlert(GetUnifiedAlertArgs.builder()
.type("LOG_ALERT")
.alertId(myLogAlert.alertId())
.build());
ctx.export("alertTitle", logAlertById.title());
ctx.export("alertEnabled", logAlertById.enabled());
ctx.export("metricSeverity", metricAlertById.alertConfigurations()[0].severity());
}
}
variables:
# Lookup log alert by ID
logAlertById:
fn::invoke:
function: logzio:getUnifiedAlert
arguments:
type: LOG_ALERT
alertId: alert-123
# Lookup metric alert by ID
metricAlertById:
fn::invoke:
function: logzio:getUnifiedAlert
arguments:
type: METRIC_ALERT
alertId: alert-456
# Reference from a managed resource
fromResource:
fn::invoke:
function: logzio:getUnifiedAlert
arguments:
type: LOG_ALERT
alertId: ${myLogAlert.alertId}
outputs:
# Use the data source outputs
alertTitle: ${logAlertById.title}
alertEnabled: ${logAlertById.enabled}
metricSeverity: ${metricAlertById.alertConfigurations[0].severity}
Using getUnifiedAlert
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 getUnifiedAlert(args: GetUnifiedAlertArgs, opts?: InvokeOptions): Promise<GetUnifiedAlertResult>
function getUnifiedAlertOutput(args: GetUnifiedAlertOutputArgs, opts?: InvokeOptions): Output<GetUnifiedAlertResult>def get_unified_alert(alert_id: Optional[str] = None,
id: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUnifiedAlertResult
def get_unified_alert_output(alert_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUnifiedAlertResult]func LookupUnifiedAlert(ctx *Context, args *LookupUnifiedAlertArgs, opts ...InvokeOption) (*LookupUnifiedAlertResult, error)
func LookupUnifiedAlertOutput(ctx *Context, args *LookupUnifiedAlertOutputArgs, opts ...InvokeOption) LookupUnifiedAlertResultOutput> Note: This function is named LookupUnifiedAlert in the Go SDK.
public static class GetUnifiedAlert
{
public static Task<GetUnifiedAlertResult> InvokeAsync(GetUnifiedAlertArgs args, InvokeOptions? opts = null)
public static Output<GetUnifiedAlertResult> Invoke(GetUnifiedAlertInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUnifiedAlertResult> getUnifiedAlert(GetUnifiedAlertArgs args, InvokeOptions options)
public static Output<GetUnifiedAlertResult> getUnifiedAlert(GetUnifiedAlertArgs args, InvokeOptions options)
fn::invoke:
function: logzio:index/getUnifiedAlert:getUnifiedAlert
arguments:
# arguments dictionaryThe following arguments are supported:
getUnifiedAlert Result
The following output properties are available:
- Alert
Configurations List<GetUnified Alert Alert Configuration> - The alert configuration block. See the resource documentation for full details.
- Alert
Id string - The unique alert identifier.
- Created
At double - Unix timestamp of creation.
- Created
By string - Email of the user who created the alert.
- Description string
- Alert description.
- Enabled bool
- Whether the alert is enabled.
- Id string
- Linked
Panels List<GetUnified Alert Linked Panel> - Dashboard panel link with
folder_id,dashboard_id,panel_id. - Rca bool
- Whether RCA is enabled.
- Rca
Notification List<double>Endpoint Ids - RCA notification endpoint IDs.
- Recipients
List<Get
Unified Alert Recipient> - Notification recipients with
emailsandnotification_endpoint_ids. - Runbook string
- Runbook text.
- List<string>
- Set of tags.
- Title string
- Alert name.
- Type string
- Updated
At double - Unix timestamp of last update.
- Updated
By string - Email of the user who last updated the alert.
- Use
Alert boolNotification Endpoints For Rca - Whether to use alert endpoints for RCA.
- Alert
Configurations []GetUnified Alert Alert Configuration - The alert configuration block. See the resource documentation for full details.
- Alert
Id string - The unique alert identifier.
- Created
At float64 - Unix timestamp of creation.
- Created
By string - Email of the user who created the alert.
- Description string
- Alert description.
- Enabled bool
- Whether the alert is enabled.
- Id string
- Linked
Panels []GetUnified Alert Linked Panel - Dashboard panel link with
folder_id,dashboard_id,panel_id. - Rca bool
- Whether RCA is enabled.
- Rca
Notification []float64Endpoint Ids - RCA notification endpoint IDs.
- Recipients
[]Get
Unified Alert Recipient - Notification recipients with
emailsandnotification_endpoint_ids. - Runbook string
- Runbook text.
- []string
- Set of tags.
- Title string
- Alert name.
- Type string
- Updated
At float64 - Unix timestamp of last update.
- Updated
By string - Email of the user who last updated the alert.
- Use
Alert boolNotification Endpoints For Rca - Whether to use alert endpoints for RCA.
- alert
Configurations List<GetUnified Alert Alert Configuration> - The alert configuration block. See the resource documentation for full details.
- alert
Id String - The unique alert identifier.
- created
At Double - Unix timestamp of creation.
- created
By String - Email of the user who created the alert.
- description String
- Alert description.
- enabled Boolean
- Whether the alert is enabled.
- id String
- linked
Panels List<GetUnified Alert Linked Panel> - Dashboard panel link with
folder_id,dashboard_id,panel_id. - rca Boolean
- Whether RCA is enabled.
- rca
Notification List<Double>Endpoint Ids - RCA notification endpoint IDs.
- recipients
List<Get
Unified Alert Recipient> - Notification recipients with
emailsandnotification_endpoint_ids. - runbook String
- Runbook text.
- List<String>
- Set of tags.
- title String
- Alert name.
- type String
- updated
At Double - Unix timestamp of last update.
- updated
By String - Email of the user who last updated the alert.
- use
Alert BooleanNotification Endpoints For Rca - Whether to use alert endpoints for RCA.
- alert
Configurations GetUnified Alert Alert Configuration[] - The alert configuration block. See the resource documentation for full details.
- alert
Id string - The unique alert identifier.
- created
At number - Unix timestamp of creation.
- created
By string - Email of the user who created the alert.
- description string
- Alert description.
- enabled boolean
- Whether the alert is enabled.
- id string
- linked
Panels GetUnified Alert Linked Panel[] - Dashboard panel link with
folder_id,dashboard_id,panel_id. - rca boolean
- Whether RCA is enabled.
- rca
Notification number[]Endpoint Ids - RCA notification endpoint IDs.
- recipients
Get
Unified Alert Recipient[] - Notification recipients with
emailsandnotification_endpoint_ids. - runbook string
- Runbook text.
- string[]
- Set of tags.
- title string
- Alert name.
- type string
- updated
At number - Unix timestamp of last update.
- updated
By string - Email of the user who last updated the alert.
- use
Alert booleanNotification Endpoints For Rca - Whether to use alert endpoints for RCA.
- alert_
configurations Sequence[GetUnified Alert Alert Configuration] - The alert configuration block. See the resource documentation for full details.
- alert_
id str - The unique alert identifier.
- created_
at float - Unix timestamp of creation.
- created_
by str - Email of the user who created the alert.
- description str
- Alert description.
- enabled bool
- Whether the alert is enabled.
- id str
- linked_
panels Sequence[GetUnified Alert Linked Panel] - Dashboard panel link with
folder_id,dashboard_id,panel_id. - rca bool
- Whether RCA is enabled.
- rca_
notification_ Sequence[float]endpoint_ ids - RCA notification endpoint IDs.
- recipients
Sequence[Get
Unified Alert Recipient] - Notification recipients with
emailsandnotification_endpoint_ids. - runbook str
- Runbook text.
- Sequence[str]
- Set of tags.
- title str
- Alert name.
- type str
- updated_
at float - Unix timestamp of last update.
- updated_
by str - Email of the user who last updated the alert.
- use_
alert_ boolnotification_ endpoints_ for_ rca - Whether to use alert endpoints for RCA.
- alert
Configurations List<Property Map> - The alert configuration block. See the resource documentation for full details.
- alert
Id String - The unique alert identifier.
- created
At Number - Unix timestamp of creation.
- created
By String - Email of the user who created the alert.
- description String
- Alert description.
- enabled Boolean
- Whether the alert is enabled.
- id String
- linked
Panels List<Property Map> - Dashboard panel link with
folder_id,dashboard_id,panel_id. - rca Boolean
- Whether RCA is enabled.
- rca
Notification List<Number>Endpoint Ids - RCA notification endpoint IDs.
- recipients List<Property Map>
- Notification recipients with
emailsandnotification_endpoint_ids. - runbook String
- Runbook text.
- List<String>
- Set of tags.
- title String
- Alert name.
- type String
- updated
At Number - Unix timestamp of last update.
- updated
By String - Email of the user who last updated the alert.
- use
Alert BooleanNotification Endpoints For Rca - Whether to use alert endpoints for RCA.
Supporting Types
GetUnifiedAlertAlertConfiguration
- Alert
Output stringTemplate Type - Correlations
List<Get
Unified Alert Alert Configuration Correlation> - Queries
List<Get
Unified Alert Alert Configuration Query> - Schedules
List<Get
Unified Alert Alert Configuration Schedule> - Search
Timeframe doubleMinutes - Severity string
- Sub
Components List<GetUnified Alert Alert Configuration Sub Component> - Suppress
Notifications doubleMinutes - Triggers
List<Get
Unified Alert Alert Configuration Trigger> - Type string
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- Alert
Output stringTemplate Type - Correlations
[]Get
Unified Alert Alert Configuration Correlation - Queries
[]Get
Unified Alert Alert Configuration Query - Schedules
[]Get
Unified Alert Alert Configuration Schedule - Search
Timeframe float64Minutes - Severity string
- Sub
Components []GetUnified Alert Alert Configuration Sub Component - Suppress
Notifications float64Minutes - Triggers
[]Get
Unified Alert Alert Configuration Trigger - Type string
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- alert
Output StringTemplate Type - correlations
List<Get
Unified Alert Alert Configuration Correlation> - queries
List<Get
Unified Alert Alert Configuration Query> - schedules
List<Get
Unified Alert Alert Configuration Schedule> - search
Timeframe DoubleMinutes - severity String
- sub
Components List<GetUnified Alert Alert Configuration Sub Component> - suppress
Notifications DoubleMinutes - triggers
List<Get
Unified Alert Alert Configuration Trigger> - type String
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- alert
Output stringTemplate Type - correlations
Get
Unified Alert Alert Configuration Correlation[] - queries
Get
Unified Alert Alert Configuration Query[] - schedules
Get
Unified Alert Alert Configuration Schedule[] - search
Timeframe numberMinutes - severity string
- sub
Components GetUnified Alert Alert Configuration Sub Component[] - suppress
Notifications numberMinutes - triggers
Get
Unified Alert Alert Configuration Trigger[] - type string
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- alert_
output_ strtemplate_ type - correlations
Sequence[Get
Unified Alert Alert Configuration Correlation] - queries
Sequence[Get
Unified Alert Alert Configuration Query] - schedules
Sequence[Get
Unified Alert Alert Configuration Schedule] - search_
timeframe_ floatminutes - severity str
- sub_
components Sequence[GetUnified Alert Alert Configuration Sub Component] - suppress_
notifications_ floatminutes - triggers
Sequence[Get
Unified Alert Alert Configuration Trigger] - type str
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- alert
Output StringTemplate Type - correlations List<Property Map>
- queries List<Property Map>
- schedules List<Property Map>
- search
Timeframe NumberMinutes - severity String
- sub
Components List<Property Map> - suppress
Notifications NumberMinutes - triggers List<Property Map>
- type String
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
GetUnifiedAlertAlertConfigurationCorrelation
- Correlation
Operators List<string> - Joins
List<Immutable
Dictionary<string, string>>
- Correlation
Operators []string - Joins []map[string]string
- correlation
Operators List<String> - joins List<Map<String,String>>
- correlation
Operators string[] - joins {[key: string]: string}[]
- correlation_
operators Sequence[str] - joins Sequence[Mapping[str, str]]
- correlation
Operators List<String> - joins List<Map<String>>
GetUnifiedAlertAlertConfigurationQuery
GetUnifiedAlertAlertConfigurationQueryQueryDefinition
- Account
Id double - Promql
Query string
- Account
Id float64 - Promql
Query string
- account
Id Double - promql
Query String
- account
Id number - promql
Query string
- account_
id float - promql_
query str
- account
Id Number - promql
Query String
GetUnifiedAlertAlertConfigurationSchedule
- Cron
Expression string - Timezone string
- Cron
Expression string - Timezone string
- cron
Expression String - timezone String
- cron
Expression string - timezone string
- cron_
expression str - timezone str
- cron
Expression String - timezone String
GetUnifiedAlertAlertConfigurationSubComponent
GetUnifiedAlertAlertConfigurationSubComponentOutput
GetUnifiedAlertAlertConfigurationSubComponentOutputColumn
- field_
name str - regex str
- sort str
GetUnifiedAlertAlertConfigurationSubComponentQueryDefinition
- Account
Ids List<double>To Query Ons - Aggregations
List<Get
Unified Alert Alert Configuration Sub Component Query Definition Aggregation> - Filters string
- Group
Bies List<string> - Query string
- Should
Query boolOn All Accounts
- Account
Ids []float64To Query Ons - Aggregations
[]Get
Unified Alert Alert Configuration Sub Component Query Definition Aggregation - Filters string
- Group
Bies []string - Query string
- Should
Query boolOn All Accounts
- account
Ids List<Double>To Query Ons - aggregations
List<Get
Unified Alert Alert Configuration Sub Component Query Definition Aggregation> - filters String
- group
Bies List<String> - query String
- should
Query BooleanOn All Accounts
- account
Ids number[]To Query Ons - aggregations
Get
Unified Alert Alert Configuration Sub Component Query Definition Aggregation[] - filters string
- group
Bies string[] - query string
- should
Query booleanOn All Accounts
- account_
ids_ Sequence[float]to_ query_ ons - aggregations
Sequence[Get
Unified Alert Alert Configuration Sub Component Query Definition Aggregation] - filters str
- group_
bies Sequence[str] - query str
- should_
query_ boolon_ all_ accounts
- account
Ids List<Number>To Query Ons - aggregations List<Property Map>
- filters String
- group
Bies List<String> - query String
- should
Query BooleanOn All Accounts
GetUnifiedAlertAlertConfigurationSubComponentQueryDefinitionAggregation
- Aggregation
Type string - Field
To stringAggregate On - Value
To stringAggregate On
- Aggregation
Type string - Field
To stringAggregate On - Value
To stringAggregate On
- aggregation
Type String - field
To StringAggregate On - value
To StringAggregate On
- aggregation
Type string - field
To stringAggregate On - value
To stringAggregate On
- aggregation
Type String - field
To StringAggregate On - value
To StringAggregate On
GetUnifiedAlertAlertConfigurationSubComponentTrigger
GetUnifiedAlertAlertConfigurationSubComponentTriggerSeverityThresholdTier
GetUnifiedAlertAlertConfigurationTrigger
- Conditions
List<Get
Unified Alert Alert Configuration Trigger Condition> - Expression string
- Type string
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- Conditions
[]Get
Unified Alert Alert Configuration Trigger Condition - Expression string
- Type string
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- conditions
List<Get
Unified Alert Alert Configuration Trigger Condition> - expression String
- type String
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- conditions
Get
Unified Alert Alert Configuration Trigger Condition[] - expression string
- type string
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- conditions
Sequence[Get
Unified Alert Alert Configuration Trigger Condition] - expression str
- type str
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
- conditions List<Property Map>
- expression String
- type String
- Alert type. Must be
LOG_ALERTorMETRIC_ALERT.
GetUnifiedAlertAlertConfigurationTriggerCondition
- From double
- Operator
Type string - Threshold double
- To double
- From float64
- Operator
Type string - Threshold float64
- To float64
- from Double
- operator
Type String - threshold Double
- to Double
- from number
- operator
Type string - threshold number
- to number
- from_ float
- operator_
type str - threshold float
- to float
- from Number
- operator
Type String - threshold Number
- to Number
GetUnifiedAlertLinkedPanel
- Dashboard
Id string - Folder
Id string - Panel
Id string
- Dashboard
Id string - Folder
Id string - Panel
Id string
- dashboard
Id String - folder
Id String - panel
Id String
- dashboard
Id string - folder
Id string - panel
Id string
- dashboard_
id str - folder_
id str - panel_
id str
- dashboard
Id String - folder
Id String - panel
Id String
GetUnifiedAlertRecipient
- Emails List<string>
- Notification
Endpoint List<double>Ids
- Emails []string
- Notification
Endpoint []float64Ids
- emails List<String>
- notification
Endpoint List<Double>Ids
- emails string[]
- notification
Endpoint number[]Ids
- emails Sequence[str]
- notification_
endpoint_ Sequence[float]ids
- emails List<String>
- notification
Endpoint List<Number>Ids
Package Details
- Repository
- logzio logzio/terraform-provider-logzio
- License
- Notes
- This Pulumi package is based on the
logzioTerraform Provider.
Viewing docs for logzio 1.27.0
published on Thursday, Feb 19, 2026 by logzio
published on Thursday, Feb 19, 2026 by logzio
