TagRule

Capture logs and metrics of Azure resources based on ARM tags. API Version: 2020-07-01.

Example Usage

TagRules_CreateOrUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var tagRule = new AzureNative.Elastic.TagRule("tagRule", new()
{
MonitorName = "myMonitor",
ResourceGroupName = "myResourceGroup",
RuleSetName = "default",
});
});
package main
import (
elastic "github.com/pulumi/pulumi-azure-native/sdk/go/azure/elastic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elastic.NewTagRule(ctx, "tagRule", &elastic.TagRuleArgs{
MonitorName: pulumi.String("myMonitor"),
ResourceGroupName: pulumi.String("myResourceGroup"),
RuleSetName: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.elastic.TagRule;
import com.pulumi.azurenative.elastic.TagRuleArgs;
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 tagRule = new TagRule("tagRule", TagRuleArgs.builder()
.monitorName("myMonitor")
.resourceGroupName("myResourceGroup")
.ruleSetName("default")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:elastic:TagRule default /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the rule set.

Link copied to clipboard

Properties of the monitoring tag rules.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The system metadata relating to this resource

Link copied to clipboard
val type: Output<String>

The type of the rule set.

Link copied to clipboard
val urn: Output<String>