get Scheduled Query Rules Log
suspend fun getScheduledQueryRulesLog(argument: GetScheduledQueryRulesLogPlainArgs): GetScheduledQueryRulesLogResult
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()));
}
}
Content copied to clipboard
Return
A collection of values returned by getScheduledQueryRulesLog.
Parameters
argument
A collection of arguments for invoking getScheduledQueryRulesLog.
suspend fun getScheduledQueryRulesLog(name: String, resourceGroupName: String): GetScheduledQueryRulesLogResult
Return
A collection of values returned by getScheduledQueryRulesLog.
See also
Parameters
name
Specifies the name of the scheduled query rule.
resource Group Name
Specifies the name of the resource group where the scheduled query rule is located.
suspend fun getScheduledQueryRulesLog(argument: suspend GetScheduledQueryRulesLogPlainArgsBuilder.() -> Unit): GetScheduledQueryRulesLogResult
Return
A collection of values returned by getScheduledQueryRulesLog.
See also
Parameters
argument
Builder for com.pulumi.azure.monitoring.kotlin.inputs.GetScheduledQueryRulesLogPlainArgs.