SpringCloudElasticApplicationPerformanceMonitoringArgs

data class SpringCloudElasticApplicationPerformanceMonitoringArgs(val applicationPackages: Output<List<String>>? = null, val globallyEnabled: Output<Boolean>? = null, val name: Output<String>? = null, val serverUrl: Output<String>? = null, val serviceName: Output<String>? = null, val springCloudServiceId: Output<String>? = null) : ConvertibleToJava<SpringCloudElasticApplicationPerformanceMonitoringArgs>

NOTE: This resource is only applicable for Spring Cloud Service enterprise tier Manages a Spring Cloud Application Performance Monitoring resource for Elastic.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoring;
import com.pulumi.azure.appplatform.SpringCloudElasticApplicationPerformanceMonitoringArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.skuName("E0")
.build());
var exampleSpringCloudElasticApplicationPerformanceMonitoring = new SpringCloudElasticApplicationPerformanceMonitoring("exampleSpringCloudElasticApplicationPerformanceMonitoring", SpringCloudElasticApplicationPerformanceMonitoringArgs.builder()
.name("example")
.springCloudServiceId(exampleSpringCloudService.id())
.globallyEnabled(true)
.applicationPackages(
"org.example",
"org.another.example")
.serviceName("example-service-name")
.serverUrl("http://127.0.0.1:8200")
.build());
}
}

Import

Spring Cloud Application Performance Monitoring resource for Elastic can be imported using the resource id, e.g.

$ pulumi import azure:appplatform/springCloudElasticApplicationPerformanceMonitoring:SpringCloudElasticApplicationPerformanceMonitoring example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AppPlatform/spring/service1/apms/apm1

Constructors

fun SpringCloudElasticApplicationPerformanceMonitoringArgs(applicationPackages: Output<List<String>>? = null, globallyEnabled: Output<Boolean>? = null, name: Output<String>? = null, serverUrl: Output<String>? = null, serviceName: Output<String>? = null, springCloudServiceId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SpringCloudElasticApplicationPerformanceMonitoringArgs

Properties

Link copied to clipboard
val applicationPackages: Output<List<String>>? = null

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.

Link copied to clipboard
val globallyEnabled: Output<Boolean>? = null

Specifies whether the Spring Cloud Application Performance Monitoring resource for Application Insights is enabled globally. Defaults to false.

Link copied to clipboard
val name: Output<String>? = null

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.

Link copied to clipboard
val serverUrl: Output<String>? = null

Specifies the server URL. The URL must be fully qualified, including protocol (http or https) and port.

Link copied to clipboard
val serviceName: Output<String>? = null

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.

Link copied to clipboard
val springCloudServiceId: Output<String>? = null

The ID of the Spring Cloud Service. Changing this forces a new resource to be created.