DiagnosticServiceArgs

data class DiagnosticServiceArgs(val dataExportFrequencySeconds: Output<Int>? = null, val diagnosticServiceName: Output<String>? = null, val extendedLocation: Output<ExtendedLocationPropertyArgs>? = null, val image: Output<ContainerImageArgs>? = null, val location: Output<String>? = null, val logFormat: Output<String>? = null, val logLevel: Output<String>? = null, val maxDataStorageSize: Output<Double>? = null, val metricsPort: Output<Int>? = null, val mqName: Output<String>? = null, val openTelemetryTracesCollectorAddr: Output<String>? = null, val resourceGroupName: Output<String>? = null, val staleDataTimeoutSeconds: Output<Int>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DiagnosticServiceArgs>

MQ diagnostic services resource Uses Azure REST API version 2023-10-04-preview. In version 2.x of the Azure Native provider, it used API version 2023-10-04-preview.

Example Usage

DiagnosticService_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var diagnosticService = new AzureNative.IoTOperationsMQ.DiagnosticService("diagnosticService", new()
{
DataExportFrequencySeconds = 26084,
DiagnosticServiceName = "73-1El3-1",
ExtendedLocation = new AzureNative.IoTOperationsMQ.Inputs.ExtendedLocationPropertyArgs
{
Name = "an",
Type = AzureNative.IoTOperationsMQ.ExtendedLocationType.CustomLocation,
},
Image = new AzureNative.IoTOperationsMQ.Inputs.ContainerImageArgs
{
PullPolicy = "imfuzvqxgbdwliqnn",
PullSecrets = "klnqimxqsrdwhcqldjvdtsrs",
Repository = "m",
Tag = "jygfdiamhhm",
},
Location = "sbhavoiabxjpuq",
LogFormat = "i",
LogLevel = "aomqhmpa",
MaxDataStorageSize = 3757017229,
MetricsPort = 37109,
MqName = "6RCAgs-XQ-Y2HsUF2",
OpenTelemetryTracesCollectorAddr = "ggqmprmjlmmkfdpb",
ResourceGroupName = "rgiotoperationsmq",
StaleDataTimeoutSeconds = 51616,
Tags = null,
});
});
package main
import (
iotoperationsmq "github.com/pulumi/pulumi-azure-native-sdk/iotoperationsmq/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iotoperationsmq.NewDiagnosticService(ctx, "diagnosticService", &iotoperationsmq.DiagnosticServiceArgs{
DataExportFrequencySeconds: pulumi.Int(26084),
DiagnosticServiceName: pulumi.String("73-1El3-1"),
ExtendedLocation: &iotoperationsmq.ExtendedLocationPropertyArgs{
Name: pulumi.String("an"),
Type: pulumi.String(iotoperationsmq.ExtendedLocationTypeCustomLocation),
},
Image: &iotoperationsmq.ContainerImageArgs{
PullPolicy: pulumi.String("imfuzvqxgbdwliqnn"),
PullSecrets: pulumi.String("klnqimxqsrdwhcqldjvdtsrs"),
Repository: pulumi.String("m"),
Tag: pulumi.String("jygfdiamhhm"),
},
Location: pulumi.String("sbhavoiabxjpuq"),
LogFormat: pulumi.String("i"),
LogLevel: pulumi.String("aomqhmpa"),
MaxDataStorageSize: pulumi.Float64(3757017229),
MetricsPort: pulumi.Int(37109),
MqName: pulumi.String("6RCAgs-XQ-Y2HsUF2"),
OpenTelemetryTracesCollectorAddr: pulumi.String("ggqmprmjlmmkfdpb"),
ResourceGroupName: pulumi.String("rgiotoperationsmq"),
StaleDataTimeoutSeconds: pulumi.Int(51616),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.iotoperationsmq.DiagnosticService;
import com.pulumi.azurenative.iotoperationsmq.DiagnosticServiceArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
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 diagnosticService = new DiagnosticService("diagnosticService", DiagnosticServiceArgs.builder()
.dataExportFrequencySeconds(26084)
.diagnosticServiceName("73-1El3-1")
.extendedLocation(ExtendedLocationPropertyArgs.builder()
.name("an")
.type("CustomLocation")
.build())
.image(ContainerImageArgs.builder()
.pullPolicy("imfuzvqxgbdwliqnn")
.pullSecrets("klnqimxqsrdwhcqldjvdtsrs")
.repository("m")
.tag("jygfdiamhhm")
.build())
.location("sbhavoiabxjpuq")
.logFormat("i")
.logLevel("aomqhmpa")
.maxDataStorageSize(3757017229)
.metricsPort(37109)
.mqName("6RCAgs-XQ-Y2HsUF2")
.openTelemetryTracesCollectorAddr("ggqmprmjlmmkfdpb")
.resourceGroupName("rgiotoperationsmq")
.staleDataTimeoutSeconds(51616)
.tags()
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:iotoperationsmq:DiagnosticService kdpnnlr /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService/{diagnosticServiceName}

Constructors

Link copied to clipboard
constructor(dataExportFrequencySeconds: Output<Int>? = null, diagnosticServiceName: Output<String>? = null, extendedLocation: Output<ExtendedLocationPropertyArgs>? = null, image: Output<ContainerImageArgs>? = null, location: Output<String>? = null, logFormat: Output<String>? = null, logLevel: Output<String>? = null, maxDataStorageSize: Output<Double>? = null, metricsPort: Output<Int>? = null, mqName: Output<String>? = null, openTelemetryTracesCollectorAddr: Output<String>? = null, resourceGroupName: Output<String>? = null, staleDataTimeoutSeconds: Output<Int>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val dataExportFrequencySeconds: Output<Int>? = null

The frequency at which the data will be exported.

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

Name of MQ diagnostic resource

Link copied to clipboard

Extended Location

Link copied to clipboard
val image: Output<ContainerImageArgs>? = null

The details of Diagnostic Service Docker Image.

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

The geo-location where the resource lives

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

The format for the logs generated.

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

The format for the logs generated.

Link copied to clipboard
val maxDataStorageSize: Output<Double>? = null

The maximum data stored in MiB.

Link copied to clipboard
val metricsPort: Output<Int>? = null

The port at which metrics is exposed.

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

Name of MQ resource

Link copied to clipboard

The destination to collect traces. Diagnostic service will push traces to this endpoint

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val staleDataTimeoutSeconds: Output<Int>? = null

Metric inactivity timeout.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

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