All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.databoxedge.MonitoringConfig Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.databoxedge;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.databoxedge.MonitoringConfigArgs;
import com.pulumi.azurenative.databoxedge.outputs.MetricConfigurationResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * The metric setting details for the role
 * Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2023-01-01-preview, 2023-07-01, 2023-12-01.
 * 
 * ## Example Usage
 * ### PutMonitoringConfig
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.databoxedge.MonitoringConfig;
 * import com.pulumi.azurenative.databoxedge.MonitoringConfigArgs;
 * import com.pulumi.azurenative.databoxedge.inputs.MetricConfigurationArgs;
 * 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 monitoringConfig = new MonitoringConfig("monitoringConfig", MonitoringConfigArgs.builder()
 *             .deviceName("testedgedevice")
 *             .metricConfigurations(MetricConfigurationArgs.builder()
 *                 .counterSets(MetricCounterSetArgs.builder()
 *                     .counters(MetricCounterArgs.builder()
 *                         .name("test")
 *                         .build())
 *                     .build())
 *                 .mdmAccount("test")
 *                 .metricNameSpace("test")
 *                 .resourceId("test")
 *                 .build())
 *             .resourceGroupName("GroupForEdgeAutomation")
 *             .roleName("testrole")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:databoxedge:MonitoringConfig myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/monitoringConfig/default * ``` * */ @ResourceType(type="azure-native:databoxedge:MonitoringConfig") public class MonitoringConfig extends com.pulumi.resources.CustomResource { /** * The metrics configuration details * */ @Export(name="metricConfigurations", refs={List.class,MetricConfigurationResponse.class}, tree="[0,1]") private Output> metricConfigurations; /** * @return The metrics configuration details * */ public Output> metricConfigurations() { return this.metricConfigurations; } /** * The object name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The object name. * */ public Output name() { return this.name; } /** * Metadata pertaining to creation and last modification of MonitoringConfiguration * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of MonitoringConfiguration * */ public Output systemData() { return this.systemData; } /** * The hierarchical type of the object. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The hierarchical type of the object. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public MonitoringConfig(java.lang.String name) { this(name, MonitoringConfigArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public MonitoringConfig(java.lang.String name, MonitoringConfigArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public MonitoringConfig(java.lang.String name, MonitoringConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:MonitoringConfig", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private MonitoringConfig(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:MonitoringConfig", name, null, makeResourceOptions(options, id), false); } private static MonitoringConfigArgs makeArgs(MonitoringConfigArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? MonitoringConfigArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:databoxedge/v20200901:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901preview:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20201201:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201preview:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601preview:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220301:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220401preview:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20221201preview:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230101preview:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230701:MonitoringConfig").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20231201:MonitoringConfig").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 options Optional settings to control the behavior of the CustomResource. */ public static MonitoringConfig get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MonitoringConfig(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy