1. Packages
  2. Azure Native
  3. API Docs
  4. logz
  5. getMetricsSourceTagRule
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.logz.getMetricsSourceTagRule

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Capture metrics of Azure resources based on ARM tags. Azure REST API version: 2022-01-01-preview.

    Using getMetricsSourceTagRule

    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 getMetricsSourceTagRule(args: GetMetricsSourceTagRuleArgs, opts?: InvokeOptions): Promise<GetMetricsSourceTagRuleResult>
    function getMetricsSourceTagRuleOutput(args: GetMetricsSourceTagRuleOutputArgs, opts?: InvokeOptions): Output<GetMetricsSourceTagRuleResult>
    def get_metrics_source_tag_rule(metrics_source_name: Optional[str] = None,
                                    monitor_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    rule_set_name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetMetricsSourceTagRuleResult
    def get_metrics_source_tag_rule_output(metrics_source_name: Optional[pulumi.Input[str]] = None,
                                    monitor_name: Optional[pulumi.Input[str]] = None,
                                    resource_group_name: Optional[pulumi.Input[str]] = None,
                                    rule_set_name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetMetricsSourceTagRuleResult]
    func LookupMetricsSourceTagRule(ctx *Context, args *LookupMetricsSourceTagRuleArgs, opts ...InvokeOption) (*LookupMetricsSourceTagRuleResult, error)
    func LookupMetricsSourceTagRuleOutput(ctx *Context, args *LookupMetricsSourceTagRuleOutputArgs, opts ...InvokeOption) LookupMetricsSourceTagRuleResultOutput

    > Note: This function is named LookupMetricsSourceTagRule in the Go SDK.

    public static class GetMetricsSourceTagRule 
    {
        public static Task<GetMetricsSourceTagRuleResult> InvokeAsync(GetMetricsSourceTagRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetMetricsSourceTagRuleResult> Invoke(GetMetricsSourceTagRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMetricsSourceTagRuleResult> getMetricsSourceTagRule(GetMetricsSourceTagRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:logz:getMetricsSourceTagRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MetricsSourceName string
    Metrics Account resource name
    MonitorName string
    Monitor resource name
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    RuleSetName string
    MetricsSourceName string
    Metrics Account resource name
    MonitorName string
    Monitor resource name
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    RuleSetName string
    metricsSourceName String
    Metrics Account resource name
    monitorName String
    Monitor resource name
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    ruleSetName String
    metricsSourceName string
    Metrics Account resource name
    monitorName string
    Monitor resource name
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    ruleSetName string
    metrics_source_name str
    Metrics Account resource name
    monitor_name str
    Monitor resource name
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    rule_set_name str
    metricsSourceName String
    Metrics Account resource name
    monitorName String
    Monitor resource name
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    ruleSetName String

    getMetricsSourceTagRule Result

    The following output properties are available:

    Id string
    The id of the rule set.
    Name string
    Name of the rule set.
    Properties Pulumi.AzureNative.Logz.Outputs.MetricsTagRulesPropertiesResponse
    Definition of the properties for a TagRules resource.
    SystemData Pulumi.AzureNative.Logz.Outputs.SystemDataResponse
    The system metadata relating to this resource
    Type string
    The type of the rule set.
    Id string
    The id of the rule set.
    Name string
    Name of the rule set.
    Properties MetricsTagRulesPropertiesResponse
    Definition of the properties for a TagRules resource.
    SystemData SystemDataResponse
    The system metadata relating to this resource
    Type string
    The type of the rule set.
    id String
    The id of the rule set.
    name String
    Name of the rule set.
    properties MetricsTagRulesPropertiesResponse
    Definition of the properties for a TagRules resource.
    systemData SystemDataResponse
    The system metadata relating to this resource
    type String
    The type of the rule set.
    id string
    The id of the rule set.
    name string
    Name of the rule set.
    properties MetricsTagRulesPropertiesResponse
    Definition of the properties for a TagRules resource.
    systemData SystemDataResponse
    The system metadata relating to this resource
    type string
    The type of the rule set.
    id str
    The id of the rule set.
    name str
    Name of the rule set.
    properties MetricsTagRulesPropertiesResponse
    Definition of the properties for a TagRules resource.
    system_data SystemDataResponse
    The system metadata relating to this resource
    type str
    The type of the rule set.
    id String
    The id of the rule set.
    name String
    Name of the rule set.
    properties Property Map
    Definition of the properties for a TagRules resource.
    systemData Property Map
    The system metadata relating to this resource
    type String
    The type of the rule set.

    Supporting Types

    FilteringTagResponse

    Action string
    Valid actions for a filtering tag. Exclusion takes priority over inclusion.
    Name string
    The name (also known as the key) of the tag.
    Value string
    The value of the tag.
    Action string
    Valid actions for a filtering tag. Exclusion takes priority over inclusion.
    Name string
    The name (also known as the key) of the tag.
    Value string
    The value of the tag.
    action String
    Valid actions for a filtering tag. Exclusion takes priority over inclusion.
    name String
    The name (also known as the key) of the tag.
    value String
    The value of the tag.
    action string
    Valid actions for a filtering tag. Exclusion takes priority over inclusion.
    name string
    The name (also known as the key) of the tag.
    value string
    The value of the tag.
    action str
    Valid actions for a filtering tag. Exclusion takes priority over inclusion.
    name str
    The name (also known as the key) of the tag.
    value str
    The value of the tag.
    action String
    Valid actions for a filtering tag. Exclusion takes priority over inclusion.
    name String
    The name (also known as the key) of the tag.
    value String
    The value of the tag.

    MetricRulesResponse

    FilteringTags List<Pulumi.AzureNative.Logz.Inputs.FilteringTagResponse>
    List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
    SubscriptionId string
    Subscription Id for which filtering tags are applicable
    FilteringTags []FilteringTagResponse
    List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
    SubscriptionId string
    Subscription Id for which filtering tags are applicable
    filteringTags List<FilteringTagResponse>
    List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
    subscriptionId String
    Subscription Id for which filtering tags are applicable
    filteringTags FilteringTagResponse[]
    List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
    subscriptionId string
    Subscription Id for which filtering tags are applicable
    filtering_tags Sequence[FilteringTagResponse]
    List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
    subscription_id str
    Subscription Id for which filtering tags are applicable
    filteringTags List<Property Map>
    List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
    subscriptionId String
    Subscription Id for which filtering tags are applicable

    MetricsTagRulesPropertiesResponse

    ProvisioningState string
    Flag specifying if the resource provisioning state as tracked by ARM.
    SystemData Pulumi.AzureNative.Logz.Inputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    MetricRules List<Pulumi.AzureNative.Logz.Inputs.MetricRulesResponse>
    SendMetrics bool
    Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
    ProvisioningState string
    Flag specifying if the resource provisioning state as tracked by ARM.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    MetricRules []MetricRulesResponse
    SendMetrics bool
    Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
    provisioningState String
    Flag specifying if the resource provisioning state as tracked by ARM.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    metricRules List<MetricRulesResponse>
    sendMetrics Boolean
    Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
    provisioningState string
    Flag specifying if the resource provisioning state as tracked by ARM.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    metricRules MetricRulesResponse[]
    sendMetrics boolean
    Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
    provisioning_state str
    Flag specifying if the resource provisioning state as tracked by ARM.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    metric_rules Sequence[MetricRulesResponse]
    send_metrics bool
    Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
    provisioningState String
    Flag specifying if the resource provisioning state as tracked by ARM.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    metricRules List<Property Map>
    sendMetrics Boolean
    Flag specifying if metrics from Azure resources should be sent for the Monitor resource.

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi