import * as pulumi from "@pulumi/pulumi"; /** * > **Note:** This resource is only applicable for Spring Cloud Service enterprise tier * * Manages a Spring Cloud Application Performance Monitoring resource for Elastic. * * !> **Note:** Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the `azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring` resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example", * location: "West Europe", * }); * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * skuName: "E0", * }); * const exampleSpringCloudElasticApplicationPerformanceMonitoring = new azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring("example", { * name: "example", * springCloudServiceId: exampleSpringCloudService.id, * globallyEnabled: true, * applicationPackages: [ * "org.example", * "org.another.example", * ], * serviceName: "example-service-name", * serverUrl: "http://127.0.0.1:8200", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.AppPlatform` - 2024-01-01-preview * * ## Import * * Spring Cloud Application Performance Monitoring resource for Elastic can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appplatform/springCloudElasticApplicationPerformanceMonitoring:SpringCloudElasticApplicationPerformanceMonitoring example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AppPlatform/spring/service1/apms/apm1 * ``` */ export declare class SpringCloudElasticApplicationPerformanceMonitoring extends pulumi.CustomResource { /** * Get an existing SpringCloudElasticApplicationPerformanceMonitoring resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SpringCloudElasticApplicationPerformanceMonitoringState, opts?: pulumi.CustomResourceOptions): SpringCloudElasticApplicationPerformanceMonitoring; /** * Returns true if the given object is an instance of SpringCloudElasticApplicationPerformanceMonitoring. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SpringCloudElasticApplicationPerformanceMonitoring; /** * Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names. */ readonly applicationPackages: pulumi.Output; /** * Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to `false`. */ readonly globallyEnabled: pulumi.Output; /** * The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port. */ readonly serverUrl: pulumi.Output; /** * Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface. */ readonly serviceName: pulumi.Output; /** * The ID of the Spring Cloud Service. Changing this forces a new resource to be created. */ readonly springCloudServiceId: pulumi.Output; /** * Create a SpringCloudElasticApplicationPerformanceMonitoring resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SpringCloudElasticApplicationPerformanceMonitoringArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SpringCloudElasticApplicationPerformanceMonitoring resources. */ export interface SpringCloudElasticApplicationPerformanceMonitoringState { /** * Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names. */ applicationPackages?: pulumi.Input[]>; /** * Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to `false`. */ globallyEnabled?: pulumi.Input; /** * The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port. */ serverUrl?: pulumi.Input; /** * Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface. */ serviceName?: pulumi.Input; /** * The ID of the Spring Cloud Service. Changing this forces a new resource to be created. */ springCloudServiceId?: pulumi.Input; } /** * The set of arguments for constructing a SpringCloudElasticApplicationPerformanceMonitoring resource. */ export interface SpringCloudElasticApplicationPerformanceMonitoringArgs { /** * Specifies a list of the packages which should be used to determine whether a stack trace frame is an in-app frame or a library frame. This is a comma separated list of package names. */ applicationPackages: pulumi.Input[]>; /** * Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to `false`. */ globallyEnabled?: pulumi.Input; /** * The name which should be used for this Spring Cloud Application Performance Monitoring resource for Elastic. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port. */ serverUrl: pulumi.Input; /** * Specifies the service name which is used to keep all the errors and transactions of your service together and is the primary filter in the Elastic APM user interface. */ serviceName: pulumi.Input; /** * The ID of the Spring Cloud Service. Changing this forces a new resource to be created. */ springCloudServiceId: pulumi.Input; }