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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.logz.getMetricsSourceTagRule
Explore with Pulumi AI
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.89.1 published on Sunday, Mar 2, 2025 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)
public static Output<GetMetricsSourceTagRuleResult> getMetricsSourceTagRule(GetMetricsSourceTagRuleArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:logz:getMetricsSourceTagRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MetricsSource stringName 
- Metrics Account resource name
- MonitorName string
- Monitor resource name
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- RuleSet stringName 
- MetricsSource stringName 
- Metrics Account resource name
- MonitorName string
- Monitor resource name
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- RuleSet stringName 
- metricsSource StringName 
- Metrics Account resource name
- monitorName String
- Monitor resource name
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- ruleSet StringName 
- metricsSource stringName 
- Metrics Account resource name
- monitorName string
- Monitor resource name
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ruleSet stringName 
- metrics_source_ strname 
- Metrics Account resource name
- monitor_name str
- Monitor resource name
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- rule_set_ strname 
- metricsSource StringName 
- Metrics Account resource name
- monitorName String
- Monitor resource name
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- ruleSet StringName 
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.Azure Native. Logz. Outputs. Metrics Tag Rules Properties Response 
- Definition of the properties for a TagRules resource.
- SystemData Pulumi.Azure Native. Logz. Outputs. System Data Response 
- 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
MetricsTag Rules Properties Response 
- Definition of the properties for a TagRules resource.
- SystemData SystemData Response 
- 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
MetricsTag Rules Properties Response 
- Definition of the properties for a TagRules resource.
- systemData SystemData Response 
- 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
MetricsTag Rules Properties Response 
- Definition of the properties for a TagRules resource.
- systemData SystemData Response 
- 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
MetricsTag Rules Properties Response 
- Definition of the properties for a TagRules resource.
- system_data SystemData Response 
- 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  
MetricRulesResponse  
- 
List<Pulumi.Azure Native. Logz. Inputs. Filtering Tag Response> 
- 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
- 
[]FilteringTag Response 
- 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
- 
List<FilteringTag Response> 
- 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
- 
FilteringTag Response[] 
- 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
- 
Sequence[FilteringTag Response] 
- 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
- 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.Azure Native. Logz. Inputs. System Data Response 
- Metadata pertaining to creation and last modification of the resource.
- MetricRules List<Pulumi.Azure Native. Logz. Inputs. Metric Rules Response> 
- 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 SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- MetricRules []MetricRules Response 
- 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 SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- metricRules List<MetricRules Response> 
- 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 SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- metricRules MetricRules Response[] 
- 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 SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- metric_rules Sequence[MetricRules Response] 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi