import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Monitored Resource Task resource in Oracle Cloud Infrastructure Stack Monitoring service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/stack-monitoring/latest/MonitoredResourceTask * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/stack_monitoring * * Create a new stack monitoring resource task. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMonitoredResourceTask = new oci.stackmonitoring.MonitoredResourceTask("test_monitored_resource_task", { * compartmentId: compartmentId, * taskDetails: { * type: monitoredResourceTaskTaskDetailsType, * agentId: testAgent.id, * availabilityProxyMetricCollectionInterval: Number(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval), * availabilityProxyMetrics: monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics, * consolePathPrefix: monitoredResourceTaskTaskDetailsConsolePathPrefix, * externalIdMapping: monitoredResourceTaskTaskDetailsExternalIdMapping, * handlerType: monitoredResourceTaskTaskDetailsHandlerType, * isEnable: monitoredResourceTaskTaskDetailsIsEnable === "true", * lifecycleStatusMappingsForUpStatuses: monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus, * namespace: monitoredResourceTaskTaskDetailsNamespace, * receiverProperties: { * listenerPort: Number(monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort), * }, * resourceGroup: monitoredResourceTaskTaskDetailsResourceGroup, * resourceNameFilter: monitoredResourceTaskTaskDetailsResourceNameFilter, * resourceNameMapping: monitoredResourceTaskTaskDetailsResourceNameMapping, * resourceTypeFilter: monitoredResourceTaskTaskDetailsResourceTypeFilter, * resourceTypeMapping: monitoredResourceTaskTaskDetailsResourceTypeMapping, * resourceTypesConfigurations: [{ * availabilityMetricsConfig: { * collectionIntervalInSeconds: Number(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds), * metrics: monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics, * }, * handlerConfig: { * collectdResourceNameConfig: { * excludeProperties: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties, * includeProperties: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties, * suffix: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix, * }, * collectorTypes: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes, * handlerProperties: [{ * name: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName, * value: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue, * }], * metricMappings: [{ * collectorMetricName: testMetric.name, * isSkipUpload: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload === "true", * metricUploadIntervalInSeconds: Number(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds), * telemetryMetricName: testMetric.name, * }], * metricNameConfig: { * excludePatternOnPrefix: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix, * isPrefixWithCollectorType: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType === "true", * }, * metricUploadIntervalInSeconds: Number(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds), * telegrafResourceNameConfig: { * excludeTags: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags, * includeTags: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags, * isUseTagsOnly: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly === "true", * }, * telemetryResourceGroup: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup, * }, * resourceType: monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType, * }], * serviceBaseUrl: monitoredResourceTaskTaskDetailsServiceBaseUrl, * shouldUseMetricsFlowForStatus: monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus === "true", * source: monitoredResourceTaskTaskDetailsSource, * }, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * name: monitoredResourceTaskName, * }); * ``` * * ## Import * * MonitoredResourceTasks can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:StackMonitoring/monitoredResourceTask:MonitoredResourceTask test_monitored_resource_task "id" * ``` */ export declare class MonitoredResourceTask extends pulumi.CustomResource { /** * Get an existing MonitoredResourceTask 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?: MonitoredResourceTaskState, opts?: pulumi.CustomResourceOptions): MonitoredResourceTask; /** * Returns true if the given object is an instance of MonitoredResourceTask. 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 MonitoredResourceTask; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment identifier. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp. */ readonly name: pulumi.Output; /** * The current state of the stack monitoring resource task. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The request details for the performing the task. */ readonly taskDetails: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy. */ readonly tenantId: pulumi.Output; /** * The date and time when the stack monitoring resource task was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ readonly timeCreated: pulumi.Output; /** * The date and time when the stack monitoring resource task was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ readonly timeUpdated: pulumi.Output; /** * Type of the task. */ readonly type: pulumi.Output; /** * Identifiers [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for work requests submitted for this task. */ readonly workRequestIds: pulumi.Output; /** * Create a MonitoredResourceTask 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: MonitoredResourceTaskArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MonitoredResourceTask resources. */ export interface MonitoredResourceTaskState { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment identifier. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp. */ name?: pulumi.Input; /** * The current state of the stack monitoring resource task. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The request details for the performing the task. */ taskDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy. */ tenantId?: pulumi.Input; /** * The date and time when the stack monitoring resource task was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ timeCreated?: pulumi.Input; /** * The date and time when the stack monitoring resource task was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ timeUpdated?: pulumi.Input; /** * Type of the task. */ type?: pulumi.Input; /** * Identifiers [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for work requests submitted for this task. */ workRequestIds?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a MonitoredResourceTask resource. */ export interface MonitoredResourceTaskArgs { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment identifier. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp. */ name?: pulumi.Input; /** * The request details for the performing the task. */ taskDetails: pulumi.Input; } //# sourceMappingURL=monitoredResourceTask.d.ts.map