chronosphere.AzureMetricsIntegration
Create AzureMetricsIntegration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureMetricsIntegration(name: string, args: AzureMetricsIntegrationArgs, opts?: CustomResourceOptions);@overload
def AzureMetricsIntegration(resource_name: str,
args: AzureMetricsIntegrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureMetricsIntegration(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
count_metrics_enabled: Optional[bool] = None,
principal: Optional[AzureMetricsIntegrationPrincipalArgs] = None,
propagate_tags: Optional[bool] = None,
scrape_config: Optional[AzureMetricsIntegrationScrapeConfigArgs] = None,
slug: Optional[str] = None,
usage_metrics_enabled: Optional[bool] = None)func NewAzureMetricsIntegration(ctx *Context, name string, args AzureMetricsIntegrationArgs, opts ...ResourceOption) (*AzureMetricsIntegration, error)public AzureMetricsIntegration(string name, AzureMetricsIntegrationArgs args, CustomResourceOptions? opts = null)
public AzureMetricsIntegration(String name, AzureMetricsIntegrationArgs args)
public AzureMetricsIntegration(String name, AzureMetricsIntegrationArgs args, CustomResourceOptions options)
type: chronosphere:AzureMetricsIntegration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AzureMetricsIntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AzureMetricsIntegrationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AzureMetricsIntegrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureMetricsIntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureMetricsIntegrationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureMetricsIntegrationResource = new Pulumi.AzureMetricsIntegration("azureMetricsIntegrationResource", new()
{
Name = "string",
CountMetricsEnabled = false,
Principal = new Pulumi.Inputs.AzureMetricsIntegrationPrincipalArgs
{
ClientId = "string",
TenantId = "string",
},
PropagateTags = false,
ScrapeConfig = new Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigArgs
{
Locations = new[]
{
"string",
},
ResourceTypes = new[]
{
new Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigResourceTypeArgs
{
MetricNames = new[]
{
"string",
},
Name = "string",
},
},
SubscriptionIds = new[]
{
"string",
},
},
Slug = "string",
UsageMetricsEnabled = false,
});
example, err := chronosphere.NewAzureMetricsIntegration(ctx, "azureMetricsIntegrationResource", &chronosphere.AzureMetricsIntegrationArgs{
Name: pulumi.String("string"),
CountMetricsEnabled: pulumi.Bool(false),
Principal: &chronosphere.AzureMetricsIntegrationPrincipalArgs{
ClientId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
PropagateTags: pulumi.Bool(false),
ScrapeConfig: &chronosphere.AzureMetricsIntegrationScrapeConfigArgs{
Locations: pulumi.StringArray{
pulumi.String("string"),
},
ResourceTypes: chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArray{
&chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArgs{
MetricNames: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
},
},
SubscriptionIds: pulumi.StringArray{
pulumi.String("string"),
},
},
Slug: pulumi.String("string"),
UsageMetricsEnabled: pulumi.Bool(false),
})
var azureMetricsIntegrationResource = new AzureMetricsIntegration("azureMetricsIntegrationResource", AzureMetricsIntegrationArgs.builder()
.name("string")
.countMetricsEnabled(false)
.principal(AzureMetricsIntegrationPrincipalArgs.builder()
.clientId("string")
.tenantId("string")
.build())
.propagateTags(false)
.scrapeConfig(AzureMetricsIntegrationScrapeConfigArgs.builder()
.locations("string")
.resourceTypes(AzureMetricsIntegrationScrapeConfigResourceTypeArgs.builder()
.metricNames("string")
.name("string")
.build())
.subscriptionIds("string")
.build())
.slug("string")
.usageMetricsEnabled(false)
.build());
azure_metrics_integration_resource = chronosphere.AzureMetricsIntegration("azureMetricsIntegrationResource",
name="string",
count_metrics_enabled=False,
principal={
"client_id": "string",
"tenant_id": "string",
},
propagate_tags=False,
scrape_config={
"locations": ["string"],
"resource_types": [{
"metric_names": ["string"],
"name": "string",
}],
"subscription_ids": ["string"],
},
slug="string",
usage_metrics_enabled=False)
const azureMetricsIntegrationResource = new chronosphere.AzureMetricsIntegration("azureMetricsIntegrationResource", {
name: "string",
countMetricsEnabled: false,
principal: {
clientId: "string",
tenantId: "string",
},
propagateTags: false,
scrapeConfig: {
locations: ["string"],
resourceTypes: [{
metricNames: ["string"],
name: "string",
}],
subscriptionIds: ["string"],
},
slug: "string",
usageMetricsEnabled: false,
});
type: chronosphere:AzureMetricsIntegration
properties:
countMetricsEnabled: false
name: string
principal:
clientId: string
tenantId: string
propagateTags: false
scrapeConfig:
locations:
- string
resourceTypes:
- metricNames:
- string
name: string
subscriptionIds:
- string
slug: string
usageMetricsEnabled: false
AzureMetricsIntegration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AzureMetricsIntegration resource accepts the following input properties:
- name String
- count
Metrics BooleanEnabled - principal
Azure
Metrics Integration Principal - Boolean
- scrape
Config AzureMetrics Integration Scrape Config - slug String
- usage
Metrics BooleanEnabled
- name string
- count
Metrics booleanEnabled - principal
Azure
Metrics Integration Principal - boolean
- scrape
Config AzureMetrics Integration Scrape Config - slug string
- usage
Metrics booleanEnabled
- name String
- count
Metrics BooleanEnabled - principal Property Map
- Boolean
- scrape
Config Property Map - slug String
- usage
Metrics BooleanEnabled
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureMetricsIntegration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AzureMetricsIntegration Resource
Get an existing AzureMetricsIntegration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AzureMetricsIntegrationState, opts?: CustomResourceOptions): AzureMetricsIntegration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
count_metrics_enabled: Optional[bool] = None,
name: Optional[str] = None,
principal: Optional[AzureMetricsIntegrationPrincipalArgs] = None,
propagate_tags: Optional[bool] = None,
scrape_config: Optional[AzureMetricsIntegrationScrapeConfigArgs] = None,
slug: Optional[str] = None,
usage_metrics_enabled: Optional[bool] = None) -> AzureMetricsIntegrationfunc GetAzureMetricsIntegration(ctx *Context, name string, id IDInput, state *AzureMetricsIntegrationState, opts ...ResourceOption) (*AzureMetricsIntegration, error)public static AzureMetricsIntegration Get(string name, Input<string> id, AzureMetricsIntegrationState? state, CustomResourceOptions? opts = null)public static AzureMetricsIntegration get(String name, Output<String> id, AzureMetricsIntegrationState state, CustomResourceOptions options)resources: _: type: chronosphere:AzureMetricsIntegration get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- count
Metrics BooleanEnabled - name String
- principal
Azure
Metrics Integration Principal - Boolean
- scrape
Config AzureMetrics Integration Scrape Config - slug String
- usage
Metrics BooleanEnabled
- count
Metrics booleanEnabled - name string
- principal
Azure
Metrics Integration Principal - boolean
- scrape
Config AzureMetrics Integration Scrape Config - slug string
- usage
Metrics booleanEnabled
- count
Metrics BooleanEnabled - name String
- principal Property Map
- Boolean
- scrape
Config Property Map - slug String
- usage
Metrics BooleanEnabled
Supporting Types
AzureMetricsIntegrationPrincipal, AzureMetricsIntegrationPrincipalArgs
AzureMetricsIntegrationScrapeConfig, AzureMetricsIntegrationScrapeConfigArgs
- locations List<String>
- resource
Types List<AzureMetrics Integration Scrape Config Resource Type> - subscription
Ids List<String>
- locations Sequence[str]
- resource_
types Sequence[AzureMetrics Integration Scrape Config Resource Type] - subscription_
ids Sequence[str]
- locations List<String>
- resource
Types List<Property Map> - subscription
Ids List<String>
AzureMetricsIntegrationScrapeConfigResourceType, AzureMetricsIntegrationScrapeConfigResourceTypeArgs
- Metric
Names List<string> - Name string
- Metric
Names []string - Name string
- metric
Names List<String> - name String
- metric
Names string[] - name string
- metric_
names Sequence[str] - name str
- metric
Names List<String> - name String
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
