
com.pulumi.azurenative.insights.ScheduledQueryRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.insights;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.insights.ScheduledQueryRuleArgs;
import com.pulumi.azurenative.insights.outputs.ActionsResponse;
import com.pulumi.azurenative.insights.outputs.IdentityResponse;
import com.pulumi.azurenative.insights.outputs.RuleResolveConfigurationResponse;
import com.pulumi.azurenative.insights.outputs.ScheduledQueryRuleCriteriaResponse;
import com.pulumi.azurenative.insights.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* The scheduled query rule resource.
* Azure REST API version: 2023-03-15-preview. Prior API version in Azure Native 1.x: 2018-04-16.
*
* Other available API versions: 2018-04-16, 2020-05-01-preview, 2022-08-01-preview, 2023-12-01, 2024-01-01-preview.
*
* ## Example Usage
* ### Create or update a scheduled query rule for Single Resource
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.insights.ScheduledQueryRule;
* import com.pulumi.azurenative.insights.ScheduledQueryRuleArgs;
* import com.pulumi.azurenative.insights.inputs.ActionsArgs;
* import com.pulumi.azurenative.insights.inputs.ScheduledQueryRuleCriteriaArgs;
* import com.pulumi.azurenative.insights.inputs.RuleResolveConfigurationArgs;
* 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) {
* var scheduledQueryRule = new ScheduledQueryRule("scheduledQueryRule", ScheduledQueryRuleArgs.builder()
* .actions(ActionsArgs.builder()
* .actionGroups("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup")
* .customProperties(Map.ofEntries(
* Map.entry("key11", "value11"),
* Map.entry("key12", "value12")
* ))
* .build())
* .checkWorkspaceAlertsStorageConfigured(true)
* .criteria(ScheduledQueryRuleCriteriaArgs.builder()
* .allOf(ConditionArgs.builder()
* .dimensions(
* DimensionArgs.builder()
* .name("ComputerIp")
* .operator("Exclude")
* .values("192.168.1.1")
* .build(),
* DimensionArgs.builder()
* .name("OSType")
* .operator("Include")
* .values("*")
* .build())
* .failingPeriods(ConditionFailingPeriodsArgs.builder()
* .minFailingPeriodsToAlert(1)
* .numberOfEvaluationPeriods(1)
* .build())
* .metricMeasureColumn("% Processor Time")
* .operator("GreaterThan")
* .query("Perf | where ObjectName == \"Processor\"")
* .resourceIdColumn("resourceId")
* .threshold(70)
* .timeAggregation("Average")
* .build())
* .build())
* .description("Performance rule")
* .enabled(true)
* .evaluationFrequency("PT5M")
* .location("eastus")
* .muteActionsDuration("PT30M")
* .resolveConfiguration(RuleResolveConfigurationArgs.builder()
* .autoResolved(true)
* .timeToResolve("PT10M")
* .build())
* .resourceGroupName("QueryResourceGroupName")
* .ruleName("perf")
* .scopes("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1")
* .severity(4)
* .skipQueryValidation(true)
* .windowSize("PT10M")
* .build());
*
* }
* }
*
* }
*
* ### Create or update a scheduled query rule on Resource group(s)
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.insights.ScheduledQueryRule;
* import com.pulumi.azurenative.insights.ScheduledQueryRuleArgs;
* import com.pulumi.azurenative.insights.inputs.ActionsArgs;
* import com.pulumi.azurenative.insights.inputs.ScheduledQueryRuleCriteriaArgs;
* import com.pulumi.azurenative.insights.inputs.RuleResolveConfigurationArgs;
* 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) {
* var scheduledQueryRule = new ScheduledQueryRule("scheduledQueryRule", ScheduledQueryRuleArgs.builder()
* .actions(ActionsArgs.builder()
* .actionGroups("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup")
* .customProperties(Map.ofEntries(
* Map.entry("key11", "value11"),
* Map.entry("key12", "value12")
* ))
* .build())
* .checkWorkspaceAlertsStorageConfigured(true)
* .criteria(ScheduledQueryRuleCriteriaArgs.builder()
* .allOf(ConditionArgs.builder()
* .dimensions()
* .failingPeriods(ConditionFailingPeriodsArgs.builder()
* .minFailingPeriodsToAlert(1)
* .numberOfEvaluationPeriods(1)
* .build())
* .operator("GreaterThan")
* .query("Heartbeat")
* .threshold(360)
* .timeAggregation("Count")
* .build())
* .build())
* .description("Health check rule")
* .enabled(true)
* .evaluationFrequency("PT5M")
* .location("eastus")
* .muteActionsDuration("PT30M")
* .resolveConfiguration(RuleResolveConfigurationArgs.builder()
* .autoResolved(true)
* .timeToResolve("PT10M")
* .build())
* .resourceGroupName("QueryResourceGroupName")
* .ruleName("heartbeat")
* .scopes("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1")
* .severity(4)
* .skipQueryValidation(true)
* .targetResourceTypes("Microsoft.Compute/virtualMachines")
* .windowSize("PT10M")
* .build());
*
* }
* }
*
* }
*
* ### Create or update a scheduled query rule on Subscription
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.insights.ScheduledQueryRule;
* import com.pulumi.azurenative.insights.ScheduledQueryRuleArgs;
* import com.pulumi.azurenative.insights.inputs.ActionsArgs;
* import com.pulumi.azurenative.insights.inputs.ScheduledQueryRuleCriteriaArgs;
* import com.pulumi.azurenative.insights.inputs.RuleResolveConfigurationArgs;
* 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) {
* var scheduledQueryRule = new ScheduledQueryRule("scheduledQueryRule", ScheduledQueryRuleArgs.builder()
* .actions(ActionsArgs.builder()
* .actionGroups("/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup")
* .customProperties(Map.ofEntries(
* Map.entry("key11", "value11"),
* Map.entry("key12", "value12")
* ))
* .build())
* .checkWorkspaceAlertsStorageConfigured(true)
* .criteria(ScheduledQueryRuleCriteriaArgs.builder()
* .allOf(ConditionArgs.builder()
* .dimensions(
* DimensionArgs.builder()
* .name("ComputerIp")
* .operator("Exclude")
* .values("192.168.1.1")
* .build(),
* DimensionArgs.builder()
* .name("OSType")
* .operator("Include")
* .values("*")
* .build())
* .failingPeriods(ConditionFailingPeriodsArgs.builder()
* .minFailingPeriodsToAlert(1)
* .numberOfEvaluationPeriods(1)
* .build())
* .metricMeasureColumn("% Processor Time")
* .operator("GreaterThan")
* .query("Perf | where ObjectName == \"Processor\"")
* .resourceIdColumn("resourceId")
* .threshold(70)
* .timeAggregation("Average")
* .build())
* .build())
* .description("Performance rule")
* .enabled(true)
* .evaluationFrequency("PT5M")
* .location("eastus")
* .muteActionsDuration("PT30M")
* .resolveConfiguration(RuleResolveConfigurationArgs.builder()
* .autoResolved(true)
* .timeToResolve("PT10M")
* .build())
* .resourceGroupName("QueryResourceGroupName")
* .ruleName("perf")
* .scopes("/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147")
* .severity(4)
* .skipQueryValidation(true)
* .targetResourceTypes("Microsoft.Compute/virtualMachines")
* .windowSize("PT10M")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:insights:ScheduledQueryRule perf /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
* ```
*
*/
@ResourceType(type="azure-native:insights:ScheduledQueryRule")
public class ScheduledQueryRule extends com.pulumi.resources.CustomResource {
/**
* Actions to invoke when the alert fires.
*
*/
@Export(name="actions", refs={ActionsResponse.class}, tree="[0]")
private Output* @Nullable */ ActionsResponse> actions;
/**
* @return Actions to invoke when the alert fires.
*
*/
public Output> actions() {
return Codegen.optional(this.actions);
}
/**
* The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
*
*/
@Export(name="autoMitigate", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> autoMitigate;
/**
* @return The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert.
*
*/
public Output> autoMitigate() {
return Codegen.optional(this.autoMitigate);
}
/**
* The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
*
*/
@Export(name="checkWorkspaceAlertsStorageConfigured", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> checkWorkspaceAlertsStorageConfigured;
/**
* @return The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
*
*/
public Output> checkWorkspaceAlertsStorageConfigured() {
return Codegen.optional(this.checkWorkspaceAlertsStorageConfigured);
}
/**
* The api-version used when creating this alert rule
*
*/
@Export(name="createdWithApiVersion", refs={String.class}, tree="[0]")
private Output createdWithApiVersion;
/**
* @return The api-version used when creating this alert rule
*
*/
public Output createdWithApiVersion() {
return this.createdWithApiVersion;
}
/**
* The rule criteria that defines the conditions of the scheduled query rule.
*
*/
@Export(name="criteria", refs={ScheduledQueryRuleCriteriaResponse.class}, tree="[0]")
private Output criteria;
/**
* @return The rule criteria that defines the conditions of the scheduled query rule.
*
*/
public Output criteria() {
return this.criteria;
}
/**
* The description of the scheduled query rule.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return The description of the scheduled query rule.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The display name of the alert rule
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> displayName;
/**
* @return The display name of the alert rule
*
*/
public Output> displayName() {
return Codegen.optional(this.displayName);
}
/**
* The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
*
*/
@Export(name="enabled", refs={Boolean.class}, tree="[0]")
private Output enabled;
/**
* @return The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
*
*/
public Output enabled() {
return this.enabled;
}
/**
* The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private Output etag;
/**
* @return The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
*
*/
public Output etag() {
return this.etag;
}
/**
* How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
*
*/
@Export(name="evaluationFrequency", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> evaluationFrequency;
/**
* @return How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert.
*
*/
public Output> evaluationFrequency() {
return Codegen.optional(this.evaluationFrequency);
}
/**
* The identity of the resource.
*
*/
@Export(name="identity", refs={IdentityResponse.class}, tree="[0]")
private Output* @Nullable */ IdentityResponse> identity;
/**
* @return The identity of the resource.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* True if alert rule is legacy Log Analytic rule
*
*/
@Export(name="isLegacyLogAnalyticsRule", refs={Boolean.class}, tree="[0]")
private Output isLegacyLogAnalyticsRule;
/**
* @return True if alert rule is legacy Log Analytic rule
*
*/
public Output isLegacyLogAnalyticsRule() {
return this.isLegacyLogAnalyticsRule;
}
/**
* The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
*
*/
@Export(name="isWorkspaceAlertsStorageConfigured", refs={Boolean.class}, tree="[0]")
private Output isWorkspaceAlertsStorageConfigured;
/**
* @return The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
*
*/
public Output isWorkspaceAlertsStorageConfigured() {
return this.isWorkspaceAlertsStorageConfigured;
}
/**
* Indicates the type of scheduled query rule. The default is LogAlert.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> kind;
/**
* @return Indicates the type of scheduled query rule. The default is LogAlert.
*
*/
public Output> kind() {
return Codegen.optional(this.kind);
}
/**
* The geo-location where the resource lives
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Output location() {
return this.location;
}
/**
* Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
*
*/
@Export(name="muteActionsDuration", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> muteActionsDuration;
/**
* @return Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert.
*
*/
public Output> muteActionsDuration() {
return Codegen.optional(this.muteActionsDuration);
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
*
*/
@Export(name="overrideQueryTimeRange", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> overrideQueryTimeRange;
/**
* @return If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
*
*/
public Output> overrideQueryTimeRange() {
return Codegen.optional(this.overrideQueryTimeRange);
}
/**
* Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
*
*/
@Export(name="resolveConfiguration", refs={RuleResolveConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ RuleResolveConfigurationResponse> resolveConfiguration;
/**
* @return Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert.
*
*/
public Output> resolveConfiguration() {
return Codegen.optional(this.resolveConfiguration);
}
/**
* The list of resource id's that this scheduled query rule is scoped to.
*
*/
@Export(name="scopes", refs={List.class,String.class}, tree="[0,1]")
private Output> scopes;
/**
* @return The list of resource id's that this scheduled query rule is scoped to.
*
*/
public Output> scopes() {
return this.scopes;
}
/**
* Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
*
*/
@Export(name="severity", refs={Double.class}, tree="[0]")
private Output* @Nullable */ Double> severity;
/**
* @return Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
*
*/
public Output> severity() {
return Codegen.optional(this.severity);
}
/**
* The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
*
*/
@Export(name="skipQueryValidation", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> skipQueryValidation;
/**
* @return The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert.
*
*/
public Output> skipQueryValidation() {
return Codegen.optional(this.skipQueryValidation);
}
/**
* SystemData of ScheduledQueryRule.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return SystemData of ScheduledQueryRule.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert
*
*/
@Export(name="targetResourceTypes", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> targetResourceTypes;
/**
* @return List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert
*
*/
public Output>> targetResourceTypes() {
return Codegen.optional(this.targetResourceTypes);
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
* The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
*
*/
@Export(name="windowSize", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> windowSize;
/**
* @return The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert.
*
*/
public Output> windowSize() {
return Codegen.optional(this.windowSize);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ScheduledQueryRule(java.lang.String name) {
this(name, ScheduledQueryRuleArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ScheduledQueryRule(java.lang.String name, ScheduledQueryRuleArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public ScheduledQueryRule(java.lang.String name, ScheduledQueryRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:ScheduledQueryRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ScheduledQueryRule(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:ScheduledQueryRule", name, null, makeResourceOptions(options, id), false);
}
private static ScheduledQueryRuleArgs makeArgs(ScheduledQueryRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ScheduledQueryRuleArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:insights/v20180416:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20200501preview:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20210201preview:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20210801:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20220615:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20220801preview:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20230315preview:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20231201:ScheduledQueryRule").build()),
Output.of(Alias.builder().type("azure-native:insights/v20240101preview:ScheduledQueryRule").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static ScheduledQueryRule get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ScheduledQueryRule(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy