getScheduledQueryRulesLog

Use this data source to access the properties of a LogToMetricAction scheduled query rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.monitoring.MonitoringFunctions;
import com.pulumi.azure.monitoring.inputs.GetScheduledQueryRulesLogArgs;
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 example = MonitoringFunctions.getScheduledQueryRulesLog(GetScheduledQueryRulesLogArgs.builder()
.resourceGroupName("example-rg")
.name("tfex-queryrule")
.build());
ctx.export("queryRuleId", example.applyValue(getScheduledQueryRulesLogResult -> getScheduledQueryRulesLogResult.id()));
}
}

Return

A collection of values returned by getScheduledQueryRulesLog.

Parameters

argument

A collection of arguments for invoking getScheduledQueryRulesLog.


Return

A collection of values returned by getScheduledQueryRulesLog.

See also

Parameters

name

Specifies the name of the scheduled query rule.

resourceGroupName

Specifies the name of the resource group where the scheduled query rule is located.


Return

A collection of values returned by getScheduledQueryRulesLog.

See also

Parameters

argument

Builder for com.pulumi.azure.monitoring.kotlin.inputs.GetScheduledQueryRulesLogPlainArgs.