oci.StackMonitoring.MonitoredResourceTask
Explore with Pulumi AI
This resource provides the Monitored Resource Task resource in Oracle Cloud Infrastructure Stack Monitoring service.
Create a new stack monitoring resource task.
Example Usage
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: {
namespace: monitoredResourceTaskTaskDetailsNamespace,
source: monitoredResourceTaskTaskDetailsSource,
type: monitoredResourceTaskTaskDetailsType,
availabilityProxyMetricCollectionInterval: monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
availabilityProxyMetrics: monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
consolePathPrefix: monitoredResourceTaskTaskDetailsConsolePathPrefix,
externalIdMapping: monitoredResourceTaskTaskDetailsExternalIdMapping,
lifecycleStatusMappingsForUpStatuses: monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
resourceGroup: monitoredResourceTaskTaskDetailsResourceGroup,
resourceNameFilter: monitoredResourceTaskTaskDetailsResourceNameFilter,
resourceNameMapping: monitoredResourceTaskTaskDetailsResourceNameMapping,
resourceTypeFilter: monitoredResourceTaskTaskDetailsResourceTypeFilter,
resourceTypeMapping: monitoredResourceTaskTaskDetailsResourceTypeMapping,
serviceBaseUrl: monitoredResourceTaskTaskDetailsServiceBaseUrl,
shouldUseMetricsFlowForStatus: monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
},
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
name: monitoredResourceTaskName,
});
import pulumi
import pulumi_oci as oci
test_monitored_resource_task = oci.stack_monitoring.MonitoredResourceTask("test_monitored_resource_task",
compartment_id=compartment_id,
task_details=oci.stack_monitoring.MonitoredResourceTaskTaskDetailsArgs(
namespace=monitored_resource_task_task_details_namespace,
source=monitored_resource_task_task_details_source,
type=monitored_resource_task_task_details_type,
availability_proxy_metric_collection_interval=monitored_resource_task_task_details_availability_proxy_metric_collection_interval,
availability_proxy_metrics=monitored_resource_task_task_details_availability_proxy_metrics,
console_path_prefix=monitored_resource_task_task_details_console_path_prefix,
external_id_mapping=monitored_resource_task_task_details_external_id_mapping,
lifecycle_status_mappings_for_up_statuses=monitored_resource_task_task_details_lifecycle_status_mappings_for_up_status,
resource_group=monitored_resource_task_task_details_resource_group,
resource_name_filter=monitored_resource_task_task_details_resource_name_filter,
resource_name_mapping=monitored_resource_task_task_details_resource_name_mapping,
resource_type_filter=monitored_resource_task_task_details_resource_type_filter,
resource_type_mapping=monitored_resource_task_task_details_resource_type_mapping,
service_base_url=monitored_resource_task_task_details_service_base_url,
should_use_metrics_flow_for_status=monitored_resource_task_task_details_should_use_metrics_flow_for_status,
),
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
},
name=monitored_resource_task_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/StackMonitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := StackMonitoring.NewMonitoredResourceTask(ctx, "test_monitored_resource_task", &StackMonitoring.MonitoredResourceTaskArgs{
CompartmentId: pulumi.Any(compartmentId),
TaskDetails: &stackmonitoring.MonitoredResourceTaskTaskDetailsArgs{
Namespace: pulumi.Any(monitoredResourceTaskTaskDetailsNamespace),
Source: pulumi.Any(monitoredResourceTaskTaskDetailsSource),
Type: pulumi.Any(monitoredResourceTaskTaskDetailsType),
AvailabilityProxyMetricCollectionInterval: pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval),
AvailabilityProxyMetrics: pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics),
ConsolePathPrefix: pulumi.Any(monitoredResourceTaskTaskDetailsConsolePathPrefix),
ExternalIdMapping: pulumi.Any(monitoredResourceTaskTaskDetailsExternalIdMapping),
LifecycleStatusMappingsForUpStatuses: pulumi.Any(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus),
ResourceGroup: pulumi.Any(monitoredResourceTaskTaskDetailsResourceGroup),
ResourceNameFilter: pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameFilter),
ResourceNameMapping: pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameMapping),
ResourceTypeFilter: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeFilter),
ResourceTypeMapping: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeMapping),
ServiceBaseUrl: pulumi.Any(monitoredResourceTaskTaskDetailsServiceBaseUrl),
ShouldUseMetricsFlowForStatus: pulumi.Any(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus),
},
DefinedTags: pulumi.Map{
"foo-namespace.bar-key": pulumi.Any("value"),
},
FreeformTags: pulumi.Map{
"bar-key": pulumi.Any("value"),
},
Name: pulumi.Any(monitoredResourceTaskName),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testMonitoredResourceTask = new Oci.StackMonitoring.MonitoredResourceTask("test_monitored_resource_task", new()
{
CompartmentId = compartmentId,
TaskDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsArgs
{
Namespace = monitoredResourceTaskTaskDetailsNamespace,
Source = monitoredResourceTaskTaskDetailsSource,
Type = monitoredResourceTaskTaskDetailsType,
AvailabilityProxyMetricCollectionInterval = monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
AvailabilityProxyMetrics = monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
ConsolePathPrefix = monitoredResourceTaskTaskDetailsConsolePathPrefix,
ExternalIdMapping = monitoredResourceTaskTaskDetailsExternalIdMapping,
LifecycleStatusMappingsForUpStatuses = monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
ResourceGroup = monitoredResourceTaskTaskDetailsResourceGroup,
ResourceNameFilter = monitoredResourceTaskTaskDetailsResourceNameFilter,
ResourceNameMapping = monitoredResourceTaskTaskDetailsResourceNameMapping,
ResourceTypeFilter = monitoredResourceTaskTaskDetailsResourceTypeFilter,
ResourceTypeMapping = monitoredResourceTaskTaskDetailsResourceTypeMapping,
ServiceBaseUrl = monitoredResourceTaskTaskDetailsServiceBaseUrl,
ShouldUseMetricsFlowForStatus = monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
},
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
Name = monitoredResourceTaskName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MonitoredResourceTask;
import com.pulumi.oci.StackMonitoring.MonitoredResourceTaskArgs;
import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceTaskTaskDetailsArgs;
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 testMonitoredResourceTask = new MonitoredResourceTask("testMonitoredResourceTask", MonitoredResourceTaskArgs.builder()
.compartmentId(compartmentId)
.taskDetails(MonitoredResourceTaskTaskDetailsArgs.builder()
.namespace(monitoredResourceTaskTaskDetailsNamespace)
.source(monitoredResourceTaskTaskDetailsSource)
.type(monitoredResourceTaskTaskDetailsType)
.availabilityProxyMetricCollectionInterval(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval)
.availabilityProxyMetrics(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics)
.consolePathPrefix(monitoredResourceTaskTaskDetailsConsolePathPrefix)
.externalIdMapping(monitoredResourceTaskTaskDetailsExternalIdMapping)
.lifecycleStatusMappingsForUpStatuses(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus)
.resourceGroup(monitoredResourceTaskTaskDetailsResourceGroup)
.resourceNameFilter(monitoredResourceTaskTaskDetailsResourceNameFilter)
.resourceNameMapping(monitoredResourceTaskTaskDetailsResourceNameMapping)
.resourceTypeFilter(monitoredResourceTaskTaskDetailsResourceTypeFilter)
.resourceTypeMapping(monitoredResourceTaskTaskDetailsResourceTypeMapping)
.serviceBaseUrl(monitoredResourceTaskTaskDetailsServiceBaseUrl)
.shouldUseMetricsFlowForStatus(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus)
.build())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.name(monitoredResourceTaskName)
.build());
}
}
resources:
testMonitoredResourceTask:
type: oci:StackMonitoring:MonitoredResourceTask
name: test_monitored_resource_task
properties:
compartmentId: ${compartmentId}
taskDetails:
namespace: ${monitoredResourceTaskTaskDetailsNamespace}
source: ${monitoredResourceTaskTaskDetailsSource}
type: ${monitoredResourceTaskTaskDetailsType}
availabilityProxyMetricCollectionInterval: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval}
availabilityProxyMetrics: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics}
consolePathPrefix: ${monitoredResourceTaskTaskDetailsConsolePathPrefix}
externalIdMapping: ${monitoredResourceTaskTaskDetailsExternalIdMapping}
lifecycleStatusMappingsForUpStatuses: ${monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus}
resourceGroup: ${monitoredResourceTaskTaskDetailsResourceGroup}
resourceNameFilter: ${monitoredResourceTaskTaskDetailsResourceNameFilter}
resourceNameMapping: ${monitoredResourceTaskTaskDetailsResourceNameMapping}
resourceTypeFilter: ${monitoredResourceTaskTaskDetailsResourceTypeFilter}
resourceTypeMapping: ${monitoredResourceTaskTaskDetailsResourceTypeMapping}
serviceBaseUrl: ${monitoredResourceTaskTaskDetailsServiceBaseUrl}
shouldUseMetricsFlowForStatus: ${monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
name: ${monitoredResourceTaskName}
Create MonitoredResourceTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoredResourceTask(name: string, args: MonitoredResourceTaskArgs, opts?: CustomResourceOptions);
@overload
def MonitoredResourceTask(resource_name: str,
args: MonitoredResourceTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitoredResourceTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
task_details: Optional[_stackmonitoring.MonitoredResourceTaskTaskDetailsArgs] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None)
func NewMonitoredResourceTask(ctx *Context, name string, args MonitoredResourceTaskArgs, opts ...ResourceOption) (*MonitoredResourceTask, error)
public MonitoredResourceTask(string name, MonitoredResourceTaskArgs args, CustomResourceOptions? opts = null)
public MonitoredResourceTask(String name, MonitoredResourceTaskArgs args)
public MonitoredResourceTask(String name, MonitoredResourceTaskArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MonitoredResourceTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitoredResourceTaskResource = new Oci.StackMonitoring.MonitoredResourceTask("monitoredResourceTaskResource", new()
{
CompartmentId = "string",
TaskDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsArgs
{
Namespace = "string",
Type = "string",
Source = "string",
ResourceGroup = "string",
LifecycleStatusMappingsForUpStatuses = new[]
{
"string",
},
ExternalIdMapping = "string",
AvailabilityProxyMetricCollectionInterval = 0,
ResourceNameFilter = "string",
ResourceNameMapping = "string",
ResourceTypeFilter = "string",
ResourceTypeMapping = "string",
ServiceBaseUrl = "string",
ShouldUseMetricsFlowForStatus = false,
ConsolePathPrefix = "string",
AvailabilityProxyMetrics = new[]
{
"string",
},
},
DefinedTags =
{
{ "string", "any" },
},
FreeformTags =
{
{ "string", "any" },
},
Name = "string",
});
example, err := StackMonitoring.NewMonitoredResourceTask(ctx, "monitoredResourceTaskResource", &StackMonitoring.MonitoredResourceTaskArgs{
CompartmentId: pulumi.String("string"),
TaskDetails: &stackmonitoring.MonitoredResourceTaskTaskDetailsArgs{
Namespace: pulumi.String("string"),
Type: pulumi.String("string"),
Source: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
LifecycleStatusMappingsForUpStatuses: pulumi.StringArray{
pulumi.String("string"),
},
ExternalIdMapping: pulumi.String("string"),
AvailabilityProxyMetricCollectionInterval: pulumi.Int(0),
ResourceNameFilter: pulumi.String("string"),
ResourceNameMapping: pulumi.String("string"),
ResourceTypeFilter: pulumi.String("string"),
ResourceTypeMapping: pulumi.String("string"),
ServiceBaseUrl: pulumi.String("string"),
ShouldUseMetricsFlowForStatus: pulumi.Bool(false),
ConsolePathPrefix: pulumi.String("string"),
AvailabilityProxyMetrics: pulumi.StringArray{
pulumi.String("string"),
},
},
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
Name: pulumi.String("string"),
})
var monitoredResourceTaskResource = new MonitoredResourceTask("monitoredResourceTaskResource", MonitoredResourceTaskArgs.builder()
.compartmentId("string")
.taskDetails(MonitoredResourceTaskTaskDetailsArgs.builder()
.namespace("string")
.type("string")
.source("string")
.resourceGroup("string")
.lifecycleStatusMappingsForUpStatuses("string")
.externalIdMapping("string")
.availabilityProxyMetricCollectionInterval(0)
.resourceNameFilter("string")
.resourceNameMapping("string")
.resourceTypeFilter("string")
.resourceTypeMapping("string")
.serviceBaseUrl("string")
.shouldUseMetricsFlowForStatus(false)
.consolePathPrefix("string")
.availabilityProxyMetrics("string")
.build())
.definedTags(Map.of("string", "any"))
.freeformTags(Map.of("string", "any"))
.name("string")
.build());
monitored_resource_task_resource = oci.stack_monitoring.MonitoredResourceTask("monitoredResourceTaskResource",
compartment_id="string",
task_details=oci.stack_monitoring.MonitoredResourceTaskTaskDetailsArgs(
namespace="string",
type="string",
source="string",
resource_group="string",
lifecycle_status_mappings_for_up_statuses=["string"],
external_id_mapping="string",
availability_proxy_metric_collection_interval=0,
resource_name_filter="string",
resource_name_mapping="string",
resource_type_filter="string",
resource_type_mapping="string",
service_base_url="string",
should_use_metrics_flow_for_status=False,
console_path_prefix="string",
availability_proxy_metrics=["string"],
),
defined_tags={
"string": "any",
},
freeform_tags={
"string": "any",
},
name="string")
const monitoredResourceTaskResource = new oci.stackmonitoring.MonitoredResourceTask("monitoredResourceTaskResource", {
compartmentId: "string",
taskDetails: {
namespace: "string",
type: "string",
source: "string",
resourceGroup: "string",
lifecycleStatusMappingsForUpStatuses: ["string"],
externalIdMapping: "string",
availabilityProxyMetricCollectionInterval: 0,
resourceNameFilter: "string",
resourceNameMapping: "string",
resourceTypeFilter: "string",
resourceTypeMapping: "string",
serviceBaseUrl: "string",
shouldUseMetricsFlowForStatus: false,
consolePathPrefix: "string",
availabilityProxyMetrics: ["string"],
},
definedTags: {
string: "any",
},
freeformTags: {
string: "any",
},
name: "string",
});
type: oci:StackMonitoring:MonitoredResourceTask
properties:
compartmentId: string
definedTags:
string: any
freeformTags:
string: any
name: string
taskDetails:
availabilityProxyMetricCollectionInterval: 0
availabilityProxyMetrics:
- string
consolePathPrefix: string
externalIdMapping: string
lifecycleStatusMappingsForUpStatuses:
- string
namespace: string
resourceGroup: string
resourceNameFilter: string
resourceNameMapping: string
resourceTypeFilter: string
resourceTypeMapping: string
serviceBaseUrl: string
shouldUseMetricsFlowForStatus: false
source: string
type: string
MonitoredResourceTask Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MonitoredResourceTask resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- Task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- Task
Details MonitoredResource Task Task Details Args - The request details for the performing the task.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]interface{}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,Object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment
Id string - (Updatable) The OCID of the compartment identifier.
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: any}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment_
id str - (Updatable) The OCID of the compartment identifier.
- task_
details stackmonitoring.Monitored Resource Task Task Details Args - The request details for the performing the task.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, Any]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name str
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- task
Details Property Map - The request details for the performing the task.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<Any>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoredResourceTask resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the stack monitoring resource task.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Work
Request List<string>Ids - Identifiers OCID for work requests submitted for this task.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the stack monitoring resource task.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Work
Request []stringIds - Identifiers OCID for work requests submitted for this task.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the stack monitoring resource task.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the stack monitoring resource task.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id string - The OCID of the tenancy.
- time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work
Request string[]Ids - Identifiers OCID for work requests submitted for this task.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the stack monitoring resource task.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant_
id str - The OCID of the tenancy.
- time_
created str - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work_
request_ Sequence[str]ids - Identifiers OCID for work requests submitted for this task.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the stack monitoring resource task.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
Look up Existing MonitoredResourceTask Resource
Get an existing MonitoredResourceTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MonitoredResourceTaskState, opts?: CustomResourceOptions): MonitoredResourceTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
task_details: Optional[_stackmonitoring.MonitoredResourceTaskTaskDetailsArgs] = None,
tenant_id: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
work_request_ids: Optional[Sequence[str]] = None) -> MonitoredResourceTask
func GetMonitoredResourceTask(ctx *Context, name string, id IDInput, state *MonitoredResourceTaskState, opts ...ResourceOption) (*MonitoredResourceTask, error)
public static MonitoredResourceTask Get(string name, Input<string> id, MonitoredResourceTaskState? state, CustomResourceOptions? opts = null)
public static MonitoredResourceTask get(String name, Output<String> id, MonitoredResourceTaskState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- State string
- The current state of the stack monitoring resource task.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Work
Request List<string>Ids - Identifiers OCID for work requests submitted for this task.
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]interface{}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- State string
- The current state of the stack monitoring resource task.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Task
Details MonitoredResource Task Task Details Args - The request details for the performing the task.
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Work
Request []stringIds - Identifiers OCID for work requests submitted for this task.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,Object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state String
- The current state of the stack monitoring resource task.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
- compartment
Id string - (Updatable) The OCID of the compartment identifier.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: any}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state string
- The current state of the stack monitoring resource task.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- tenant
Id string - The OCID of the tenancy.
- time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work
Request string[]Ids - Identifiers OCID for work requests submitted for this task.
- compartment_
id str - (Updatable) The OCID of the compartment identifier.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, Any]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name str
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state str
- The current state of the stack monitoring resource task.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task_
details stackmonitoring.Monitored Resource Task Task Details Args - The request details for the performing the task.
- tenant_
id str - The OCID of the tenancy.
- time_
created str - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work_
request_ Sequence[str]ids - Identifiers OCID for work requests submitted for this task.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<Any>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state String
- The current state of the stack monitoring resource task.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task
Details Property Map - The request details for the performing the task.
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
Supporting Types
MonitoredResourceTaskTaskDetails, MonitoredResourceTaskTaskDetailsArgs
- Namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- Source string
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- Type string
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Availability
Proxy intMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- Availability
Proxy List<string>Metrics - List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
- Console
Path stringPrefix - The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- External
Id stringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- Lifecycle
Status List<string>Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- Resource
Group string - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- Resource
Name stringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- Resource
Name stringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- Resource
Type stringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- Resource
Type stringMapping - The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- Service
Base stringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- Should
Use boolMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- Namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- Source string
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- Type string
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Availability
Proxy intMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- Availability
Proxy []stringMetrics - List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
- Console
Path stringPrefix - The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- External
Id stringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- Lifecycle
Status []stringMappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- Resource
Group string - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- Resource
Name stringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- Resource
Name stringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- Resource
Type stringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- Resource
Type stringMapping - The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- Service
Base stringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- Should
Use boolMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- namespace String
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- source String
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- type String
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Proxy IntegerMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability
Proxy List<String>Metrics - List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
- console
Path StringPrefix - The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- external
Id StringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- lifecycle
Status List<String>Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- resource
Group String - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource
Name StringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource
Name StringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource
Type StringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource
Type StringMapping - The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- service
Base StringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should
Use BooleanMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- source string
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- type string
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Proxy numberMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability
Proxy string[]Metrics - List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
- console
Path stringPrefix - The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- external
Id stringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- lifecycle
Status string[]Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- resource
Group string - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource
Name stringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource
Name stringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource
Type stringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource
Type stringMapping - The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- service
Base stringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should
Use booleanMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- namespace str
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- source str
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- type str
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability_
proxy_ intmetric_ collection_ interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability_
proxy_ Sequence[str]metrics - List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
- console_
path_ strprefix - The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- external_
id_ strmapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- lifecycle_
status_ Sequence[str]mappings_ for_ up_ statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- resource_
group str - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource_
name_ strfilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource_
name_ strmapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource_
type_ strfilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource_
type_ strmapping - The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- service_
base_ strurl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should_
use_ boolmetrics_ flow_ for_ status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- namespace String
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- source String
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- type String
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Proxy NumberMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability
Proxy List<String>Metrics - List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
- console
Path StringPrefix - The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- external
Id StringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- lifecycle
Status List<String>Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- resource
Group String - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource
Name StringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource
Name StringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource
Type StringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource
Type StringMapping - The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- service
Base StringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should
Use BooleanMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
Import
MonitoredResourceTasks can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/monitoredResourceTask:MonitoredResourceTask test_monitored_resource_task "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.