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.73.0 published on Wednesday, Nov 20, 2024 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.73.0 published on Wednesday, Nov 20, 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:
- Metrics
Source stringName - Metrics Account resource name
- Monitor
Name string - Monitor resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Set stringName
- Metrics
Source stringName - Metrics Account resource name
- Monitor
Name string - Monitor resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Set stringName
- metrics
Source StringName - Metrics Account resource name
- monitor
Name String - Monitor resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Set StringName
- metrics
Source stringName - Metrics Account resource name
- monitor
Name string - Monitor resource name
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- rule
Set 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
- metrics
Source StringName - Metrics Account resource name
- monitor
Name String - Monitor resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Set 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.
- System
Data 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
Metrics
Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- System
Data 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
Metrics
Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- system
Data 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
Metrics
Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- system
Data 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
Metrics
Tag 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.
- system
Data 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.
- Subscription
Id string - Subscription Id for which filtering tags are applicable
- []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.
- Subscription
Id string - Subscription Id for which filtering tags are applicable
- List<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.
- subscription
Id String - Subscription Id for which filtering tags are applicable
- 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.
- subscription
Id string - Subscription Id for which filtering tags are applicable
- Sequence[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.
- 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.
- subscription
Id String - Subscription Id for which filtering tags are applicable
MetricsTagRulesPropertiesResponse
- Provisioning
State string - Flag specifying if the resource provisioning state as tracked by ARM.
- System
Data Pulumi.Azure Native. Logz. Inputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Metric
Rules List<Pulumi.Azure Native. Logz. Inputs. Metric Rules Response> - Send
Metrics bool - Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
- Provisioning
State string - 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 []MetricRules Response - Send
Metrics bool - Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
- provisioning
State String - 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 List<MetricRules Response> - send
Metrics Boolean - Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
- provisioning
State string - 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 MetricRules Response[] - send
Metrics 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.
- provisioning
State String - Flag specifying if the resource provisioning state as tracked by ARM.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- metric
Rules List<Property Map> - send
Metrics Boolean - Flag specifying if metrics from Azure resources should be sent for the Monitor resource.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi