oci.ApmTraces.ScheduledQuery
Explore with Pulumi AI
This resource provides the Scheduled Query resource in Oracle Cloud Infrastructure Apm Traces service.
Create a scheduled query in the APM Domain.
Create ScheduledQuery Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScheduledQuery(name: string, args: ScheduledQueryArgs, opts?: CustomResourceOptions);
@overload
def ScheduledQuery(resource_name: str,
args: ScheduledQueryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScheduledQuery(resource_name: str,
opts: Optional[ResourceOptions] = None,
apm_domain_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
opc_dry_run: Optional[str] = None,
scheduled_query_description: Optional[str] = None,
scheduled_query_maximum_runtime_in_seconds: Optional[str] = None,
scheduled_query_name: Optional[str] = None,
scheduled_query_processing_configuration: Optional[ScheduledQueryScheduledQueryProcessingConfigurationArgs] = None,
scheduled_query_processing_sub_type: Optional[str] = None,
scheduled_query_processing_type: Optional[str] = None,
scheduled_query_retention_criteria: Optional[str] = None,
scheduled_query_retention_period_in_ms: Optional[str] = None,
scheduled_query_schedule: Optional[str] = None,
scheduled_query_text: Optional[str] = None)
func NewScheduledQuery(ctx *Context, name string, args ScheduledQueryArgs, opts ...ResourceOption) (*ScheduledQuery, error)
public ScheduledQuery(string name, ScheduledQueryArgs args, CustomResourceOptions? opts = null)
public ScheduledQuery(String name, ScheduledQueryArgs args)
public ScheduledQuery(String name, ScheduledQueryArgs args, CustomResourceOptions options)
type: oci:ApmTraces:ScheduledQuery
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 ScheduledQueryArgs
- 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 ScheduledQueryArgs
- 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 ScheduledQueryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledQueryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduledQueryArgs
- 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 scheduledQueryResource = new Oci.ApmTraces.ScheduledQuery("scheduledQueryResource", new()
{
ApmDomainId = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
OpcDryRun = "string",
ScheduledQueryDescription = "string",
ScheduledQueryMaximumRuntimeInSeconds = "string",
ScheduledQueryName = "string",
ScheduledQueryProcessingConfiguration = new Oci.ApmTraces.Inputs.ScheduledQueryScheduledQueryProcessingConfigurationArgs
{
CustomMetric = new Oci.ApmTraces.Inputs.ScheduledQueryScheduledQueryProcessingConfigurationCustomMetricArgs
{
Name = "string",
Compartment = "string",
Description = "string",
IsAnomalyDetectionEnabled = false,
IsMetricPublished = false,
Namespace = "string",
ResourceGroup = "string",
Unit = "string",
},
ObjectStorage = new Oci.ApmTraces.Inputs.ScheduledQueryScheduledQueryProcessingConfigurationObjectStorageArgs
{
Bucket = "string",
NameSpace = "string",
ObjectNamePrefix = "string",
},
Streaming = new Oci.ApmTraces.Inputs.ScheduledQueryScheduledQueryProcessingConfigurationStreamingArgs
{
StreamId = "string",
},
},
ScheduledQueryProcessingSubType = "string",
ScheduledQueryProcessingType = "string",
ScheduledQueryRetentionCriteria = "string",
ScheduledQueryRetentionPeriodInMs = "string",
ScheduledQuerySchedule = "string",
ScheduledQueryText = "string",
});
example, err := apmtraces.NewScheduledQuery(ctx, "scheduledQueryResource", &apmtraces.ScheduledQueryArgs{
ApmDomainId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
OpcDryRun: pulumi.String("string"),
ScheduledQueryDescription: pulumi.String("string"),
ScheduledQueryMaximumRuntimeInSeconds: pulumi.String("string"),
ScheduledQueryName: pulumi.String("string"),
ScheduledQueryProcessingConfiguration: &apmtraces.ScheduledQueryScheduledQueryProcessingConfigurationArgs{
CustomMetric: &apmtraces.ScheduledQueryScheduledQueryProcessingConfigurationCustomMetricArgs{
Name: pulumi.String("string"),
Compartment: pulumi.String("string"),
Description: pulumi.String("string"),
IsAnomalyDetectionEnabled: pulumi.Bool(false),
IsMetricPublished: pulumi.Bool(false),
Namespace: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
Unit: pulumi.String("string"),
},
ObjectStorage: &apmtraces.ScheduledQueryScheduledQueryProcessingConfigurationObjectStorageArgs{
Bucket: pulumi.String("string"),
NameSpace: pulumi.String("string"),
ObjectNamePrefix: pulumi.String("string"),
},
Streaming: &apmtraces.ScheduledQueryScheduledQueryProcessingConfigurationStreamingArgs{
StreamId: pulumi.String("string"),
},
},
ScheduledQueryProcessingSubType: pulumi.String("string"),
ScheduledQueryProcessingType: pulumi.String("string"),
ScheduledQueryRetentionCriteria: pulumi.String("string"),
ScheduledQueryRetentionPeriodInMs: pulumi.String("string"),
ScheduledQuerySchedule: pulumi.String("string"),
ScheduledQueryText: pulumi.String("string"),
})
var scheduledQueryResource = new ScheduledQuery("scheduledQueryResource", ScheduledQueryArgs.builder()
.apmDomainId("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.opcDryRun("string")
.scheduledQueryDescription("string")
.scheduledQueryMaximumRuntimeInSeconds("string")
.scheduledQueryName("string")
.scheduledQueryProcessingConfiguration(ScheduledQueryScheduledQueryProcessingConfigurationArgs.builder()
.customMetric(ScheduledQueryScheduledQueryProcessingConfigurationCustomMetricArgs.builder()
.name("string")
.compartment("string")
.description("string")
.isAnomalyDetectionEnabled(false)
.isMetricPublished(false)
.namespace("string")
.resourceGroup("string")
.unit("string")
.build())
.objectStorage(ScheduledQueryScheduledQueryProcessingConfigurationObjectStorageArgs.builder()
.bucket("string")
.nameSpace("string")
.objectNamePrefix("string")
.build())
.streaming(ScheduledQueryScheduledQueryProcessingConfigurationStreamingArgs.builder()
.streamId("string")
.build())
.build())
.scheduledQueryProcessingSubType("string")
.scheduledQueryProcessingType("string")
.scheduledQueryRetentionCriteria("string")
.scheduledQueryRetentionPeriodInMs("string")
.scheduledQuerySchedule("string")
.scheduledQueryText("string")
.build());
scheduled_query_resource = oci.apmtraces.ScheduledQuery("scheduledQueryResource",
apm_domain_id="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
opc_dry_run="string",
scheduled_query_description="string",
scheduled_query_maximum_runtime_in_seconds="string",
scheduled_query_name="string",
scheduled_query_processing_configuration={
"custom_metric": {
"name": "string",
"compartment": "string",
"description": "string",
"is_anomaly_detection_enabled": False,
"is_metric_published": False,
"namespace": "string",
"resource_group": "string",
"unit": "string",
},
"object_storage": {
"bucket": "string",
"name_space": "string",
"object_name_prefix": "string",
},
"streaming": {
"stream_id": "string",
},
},
scheduled_query_processing_sub_type="string",
scheduled_query_processing_type="string",
scheduled_query_retention_criteria="string",
scheduled_query_retention_period_in_ms="string",
scheduled_query_schedule="string",
scheduled_query_text="string")
const scheduledQueryResource = new oci.apmtraces.ScheduledQuery("scheduledQueryResource", {
apmDomainId: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
opcDryRun: "string",
scheduledQueryDescription: "string",
scheduledQueryMaximumRuntimeInSeconds: "string",
scheduledQueryName: "string",
scheduledQueryProcessingConfiguration: {
customMetric: {
name: "string",
compartment: "string",
description: "string",
isAnomalyDetectionEnabled: false,
isMetricPublished: false,
namespace: "string",
resourceGroup: "string",
unit: "string",
},
objectStorage: {
bucket: "string",
nameSpace: "string",
objectNamePrefix: "string",
},
streaming: {
streamId: "string",
},
},
scheduledQueryProcessingSubType: "string",
scheduledQueryProcessingType: "string",
scheduledQueryRetentionCriteria: "string",
scheduledQueryRetentionPeriodInMs: "string",
scheduledQuerySchedule: "string",
scheduledQueryText: "string",
});
type: oci:ApmTraces:ScheduledQuery
properties:
apmDomainId: string
definedTags:
string: string
freeformTags:
string: string
opcDryRun: string
scheduledQueryDescription: string
scheduledQueryMaximumRuntimeInSeconds: string
scheduledQueryName: string
scheduledQueryProcessingConfiguration:
customMetric:
compartment: string
description: string
isAnomalyDetectionEnabled: false
isMetricPublished: false
name: string
namespace: string
resourceGroup: string
unit: string
objectStorage:
bucket: string
nameSpace: string
objectNamePrefix: string
streaming:
streamId: string
scheduledQueryProcessingSubType: string
scheduledQueryProcessingType: string
scheduledQueryRetentionCriteria: string
scheduledQueryRetentionPeriodInMs: string
scheduledQuerySchedule: string
scheduledQueryText: string
ScheduledQuery Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ScheduledQuery resource accepts the following input properties:
- Apm
Domain stringId - (Updatable) The APM Domain ID for the intended request.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<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"}
- Opc
Dry stringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- Scheduled
Query stringDescription - (Updatable) Description for the scheduled query.
- Scheduled
Query stringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- Scheduled
Query stringName - (Updatable) Name of the scheduled query.
- Scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- Scheduled
Query stringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- Scheduled
Query stringProcessing Type - (Updatable) Type of the scheduled query.
- Scheduled
Query stringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- Scheduled
Query stringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- Scheduled
Query stringSchedule - (Updatable) Schedule for the scheduled query.
- Scheduled
Query stringText (Updatable) Scheduled query to be run.
** 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
- Apm
Domain stringId - (Updatable) The APM Domain ID for the intended request.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[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"}
- Opc
Dry stringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- Scheduled
Query stringDescription - (Updatable) Description for the scheduled query.
- Scheduled
Query stringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- Scheduled
Query stringName - (Updatable) Name of the scheduled query.
- Scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration Args - (Updatable) Definition of the scheduled query processing configuration.
- Scheduled
Query stringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- Scheduled
Query stringProcessing Type - (Updatable) Type of the scheduled query.
- Scheduled
Query stringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- Scheduled
Query stringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- Scheduled
Query stringSchedule - (Updatable) Schedule for the scheduled query.
- Scheduled
Query stringText (Updatable) Scheduled query to be run.
** 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
- apm
Domain StringId - (Updatable) The APM Domain ID for the intended request.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<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"}
- opc
Dry StringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled
Query StringDescription - (Updatable) Description for the scheduled query.
- scheduled
Query StringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled
Query StringName - (Updatable) Name of the scheduled query.
- scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- scheduled
Query StringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- scheduled
Query StringProcessing Type - (Updatable) Type of the scheduled query.
- scheduled
Query StringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled
Query StringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled
Query StringSchedule - (Updatable) Schedule for the scheduled query.
- scheduled
Query StringText (Updatable) Scheduled query to be run.
** 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
- apm
Domain stringId - (Updatable) The APM Domain ID for the intended request.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[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"}
- opc
Dry stringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled
Query stringDescription - (Updatable) Description for the scheduled query.
- scheduled
Query stringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled
Query stringName - (Updatable) Name of the scheduled query.
- scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- scheduled
Query stringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- scheduled
Query stringProcessing Type - (Updatable) Type of the scheduled query.
- scheduled
Query stringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled
Query stringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled
Query stringSchedule - (Updatable) Schedule for the scheduled query.
- scheduled
Query stringText (Updatable) Scheduled query to be run.
** 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
- apm_
domain_ strid - (Updatable) The APM Domain ID for the intended request.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- opc_
dry_ strrun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled_
query_ strdescription - (Updatable) Description for the scheduled query.
- scheduled_
query_ strmaximum_ runtime_ in_ seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled_
query_ strname - (Updatable) Name of the scheduled query.
- scheduled_
query_ Scheduledprocessing_ configuration Query Scheduled Query Processing Configuration Args - (Updatable) Definition of the scheduled query processing configuration.
- scheduled_
query_ strprocessing_ sub_ type - (Updatable) Processing sub type of the scheduled query.
- scheduled_
query_ strprocessing_ type - (Updatable) Type of the scheduled query.
- scheduled_
query_ strretention_ criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled_
query_ strretention_ period_ in_ ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled_
query_ strschedule - (Updatable) Schedule for the scheduled query.
- scheduled_
query_ strtext (Updatable) Scheduled query to be run.
** 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
- apm
Domain StringId - (Updatable) The APM Domain ID for the intended request.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<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"}
- opc
Dry StringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled
Query StringDescription - (Updatable) Description for the scheduled query.
- scheduled
Query StringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled
Query StringName - (Updatable) Name of the scheduled query.
- scheduled
Query Property MapProcessing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- scheduled
Query StringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- scheduled
Query StringProcessing Type - (Updatable) Type of the scheduled query.
- scheduled
Query StringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled
Query StringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled
Query StringSchedule - (Updatable) Schedule for the scheduled query.
- scheduled
Query StringText (Updatable) Scheduled query to be run.
** 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
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledQuery resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduled
Query stringInstances - Scheduled query instances.
- Scheduled
Query stringNext Run In Ms - Next run for the scheduled query.
- State string
- The current lifecycle state of the Scheduled Query.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduled
Query stringInstances - Scheduled query instances.
- Scheduled
Query stringNext Run In Ms - Next run for the scheduled query.
- State string
- The current lifecycle state of the Scheduled Query.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- id String
- The provider-assigned unique ID for this managed resource.
- scheduled
Query StringInstances - Scheduled query instances.
- scheduled
Query StringNext Run In Ms - Next run for the scheduled query.
- state String
- The current lifecycle state of the Scheduled Query.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- id string
- The provider-assigned unique ID for this managed resource.
- scheduled
Query stringInstances - Scheduled query instances.
- scheduled
Query stringNext Run In Ms - Next run for the scheduled query.
- state string
- The current lifecycle state of the Scheduled Query.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- id str
- The provider-assigned unique ID for this managed resource.
- scheduled_
query_ strinstances - Scheduled query instances.
- scheduled_
query_ strnext_ run_ in_ ms - Next run for the scheduled query.
- state str
- The current lifecycle state of the Scheduled Query.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- id String
- The provider-assigned unique ID for this managed resource.
- scheduled
Query StringInstances - Scheduled query instances.
- scheduled
Query StringNext Run In Ms - Next run for the scheduled query.
- state String
- The current lifecycle state of the Scheduled Query.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
Look up Existing ScheduledQuery Resource
Get an existing ScheduledQuery 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?: ScheduledQueryState, opts?: CustomResourceOptions): ScheduledQuery
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apm_domain_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
opc_dry_run: Optional[str] = None,
scheduled_query_description: Optional[str] = None,
scheduled_query_instances: Optional[str] = None,
scheduled_query_maximum_runtime_in_seconds: Optional[str] = None,
scheduled_query_name: Optional[str] = None,
scheduled_query_next_run_in_ms: Optional[str] = None,
scheduled_query_processing_configuration: Optional[ScheduledQueryScheduledQueryProcessingConfigurationArgs] = None,
scheduled_query_processing_sub_type: Optional[str] = None,
scheduled_query_processing_type: Optional[str] = None,
scheduled_query_retention_criteria: Optional[str] = None,
scheduled_query_retention_period_in_ms: Optional[str] = None,
scheduled_query_schedule: Optional[str] = None,
scheduled_query_text: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None) -> ScheduledQuery
func GetScheduledQuery(ctx *Context, name string, id IDInput, state *ScheduledQueryState, opts ...ResourceOption) (*ScheduledQuery, error)
public static ScheduledQuery Get(string name, Input<string> id, ScheduledQueryState? state, CustomResourceOptions? opts = null)
public static ScheduledQuery get(String name, Output<String> id, ScheduledQueryState state, CustomResourceOptions options)
resources: _: type: oci:ApmTraces:ScheduledQuery get: id: ${id}
- 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.
- Apm
Domain stringId - (Updatable) The APM Domain ID for the intended request.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<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"}
- Opc
Dry stringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- Scheduled
Query stringDescription - (Updatable) Description for the scheduled query.
- Scheduled
Query stringInstances - Scheduled query instances.
- Scheduled
Query stringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- Scheduled
Query stringName - (Updatable) Name of the scheduled query.
- Scheduled
Query stringNext Run In Ms - Next run for the scheduled query.
- Scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- Scheduled
Query stringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- Scheduled
Query stringProcessing Type - (Updatable) Type of the scheduled query.
- Scheduled
Query stringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- Scheduled
Query stringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- Scheduled
Query stringSchedule - (Updatable) Schedule for the scheduled query.
- Scheduled
Query stringText (Updatable) Scheduled query to be run.
** 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
- State string
- The current lifecycle state of the Scheduled Query.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Apm
Domain stringId - (Updatable) The APM Domain ID for the intended request.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[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"}
- Opc
Dry stringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- Scheduled
Query stringDescription - (Updatable) Description for the scheduled query.
- Scheduled
Query stringInstances - Scheduled query instances.
- Scheduled
Query stringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- Scheduled
Query stringName - (Updatable) Name of the scheduled query.
- Scheduled
Query stringNext Run In Ms - Next run for the scheduled query.
- Scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration Args - (Updatable) Definition of the scheduled query processing configuration.
- Scheduled
Query stringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- Scheduled
Query stringProcessing Type - (Updatable) Type of the scheduled query.
- Scheduled
Query stringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- Scheduled
Query stringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- Scheduled
Query stringSchedule - (Updatable) Schedule for the scheduled query.
- Scheduled
Query stringText (Updatable) Scheduled query to be run.
** 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
- State string
- The current lifecycle state of the Scheduled Query.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- apm
Domain StringId - (Updatable) The APM Domain ID for the intended request.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<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"}
- opc
Dry StringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled
Query StringDescription - (Updatable) Description for the scheduled query.
- scheduled
Query StringInstances - Scheduled query instances.
- scheduled
Query StringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled
Query StringName - (Updatable) Name of the scheduled query.
- scheduled
Query StringNext Run In Ms - Next run for the scheduled query.
- scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- scheduled
Query StringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- scheduled
Query StringProcessing Type - (Updatable) Type of the scheduled query.
- scheduled
Query StringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled
Query StringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled
Query StringSchedule - (Updatable) Schedule for the scheduled query.
- scheduled
Query StringText (Updatable) Scheduled query to be run.
** 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
- state String
- The current lifecycle state of the Scheduled Query.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- apm
Domain stringId - (Updatable) The APM Domain ID for the intended request.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[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"}
- opc
Dry stringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled
Query stringDescription - (Updatable) Description for the scheduled query.
- scheduled
Query stringInstances - Scheduled query instances.
- scheduled
Query stringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled
Query stringName - (Updatable) Name of the scheduled query.
- scheduled
Query stringNext Run In Ms - Next run for the scheduled query.
- scheduled
Query ScheduledProcessing Configuration Query Scheduled Query Processing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- scheduled
Query stringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- scheduled
Query stringProcessing Type - (Updatable) Type of the scheduled query.
- scheduled
Query stringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled
Query stringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled
Query stringSchedule - (Updatable) Schedule for the scheduled query.
- scheduled
Query stringText (Updatable) Scheduled query to be run.
** 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
- state string
- The current lifecycle state of the Scheduled Query.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- apm_
domain_ strid - (Updatable) The APM Domain ID for the intended request.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- opc_
dry_ strrun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled_
query_ strdescription - (Updatable) Description for the scheduled query.
- scheduled_
query_ strinstances - Scheduled query instances.
- scheduled_
query_ strmaximum_ runtime_ in_ seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled_
query_ strname - (Updatable) Name of the scheduled query.
- scheduled_
query_ strnext_ run_ in_ ms - Next run for the scheduled query.
- scheduled_
query_ Scheduledprocessing_ configuration Query Scheduled Query Processing Configuration Args - (Updatable) Definition of the scheduled query processing configuration.
- scheduled_
query_ strprocessing_ sub_ type - (Updatable) Processing sub type of the scheduled query.
- scheduled_
query_ strprocessing_ type - (Updatable) Type of the scheduled query.
- scheduled_
query_ strretention_ criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled_
query_ strretention_ period_ in_ ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled_
query_ strschedule - (Updatable) Schedule for the scheduled query.
- scheduled_
query_ strtext (Updatable) Scheduled query to be run.
** 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
- state str
- The current lifecycle state of the Scheduled Query.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- apm
Domain StringId - (Updatable) The APM Domain ID for the intended request.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<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"}
- opc
Dry StringRun - (Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not create or modify the resource and is used only to perform validation on the submitted data.
- scheduled
Query StringDescription - (Updatable) Description for the scheduled query.
- scheduled
Query StringInstances - Scheduled query instances.
- scheduled
Query StringMaximum Runtime In Seconds - (Updatable) Maximum runtime for the scheduled query in seconds.
- scheduled
Query StringName - (Updatable) Name of the scheduled query.
- scheduled
Query StringNext Run In Ms - Next run for the scheduled query.
- scheduled
Query Property MapProcessing Configuration - (Updatable) Definition of the scheduled query processing configuration.
- scheduled
Query StringProcessing Sub Type - (Updatable) Processing sub type of the scheduled query.
- scheduled
Query StringProcessing Type - (Updatable) Type of the scheduled query.
- scheduled
Query StringRetention Criteria - (Updatable) Retention criteria for the scheduled query.
- scheduled
Query StringRetention Period In Ms - (Updatable) Retention period for the scheduled query in milliseconds.
- scheduled
Query StringSchedule - (Updatable) Schedule for the scheduled query.
- scheduled
Query StringText (Updatable) Scheduled query to be run.
** 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
- state String
- The current lifecycle state of the Scheduled Query.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
Supporting Types
ScheduledQueryScheduledQueryProcessingConfiguration, ScheduledQueryScheduledQueryProcessingConfigurationArgs
- Custom
Metric ScheduledQuery Scheduled Query Processing Configuration Custom Metric - (Updatable) Definition of the Custom Metric.
- Object
Storage ScheduledQuery Scheduled Query Processing Configuration Object Storage - (Updatable) Definition of the object storage.
- Streaming
Scheduled
Query Scheduled Query Processing Configuration Streaming - (Updatable) Definition of the Stream.
- Custom
Metric ScheduledQuery Scheduled Query Processing Configuration Custom Metric - (Updatable) Definition of the Custom Metric.
- Object
Storage ScheduledQuery Scheduled Query Processing Configuration Object Storage - (Updatable) Definition of the object storage.
- Streaming
Scheduled
Query Scheduled Query Processing Configuration Streaming - (Updatable) Definition of the Stream.
- custom
Metric ScheduledQuery Scheduled Query Processing Configuration Custom Metric - (Updatable) Definition of the Custom Metric.
- object
Storage ScheduledQuery Scheduled Query Processing Configuration Object Storage - (Updatable) Definition of the object storage.
- streaming
Scheduled
Query Scheduled Query Processing Configuration Streaming - (Updatable) Definition of the Stream.
- custom
Metric ScheduledQuery Scheduled Query Processing Configuration Custom Metric - (Updatable) Definition of the Custom Metric.
- object
Storage ScheduledQuery Scheduled Query Processing Configuration Object Storage - (Updatable) Definition of the object storage.
- streaming
Scheduled
Query Scheduled Query Processing Configuration Streaming - (Updatable) Definition of the Stream.
- custom_
metric ScheduledQuery Scheduled Query Processing Configuration Custom Metric - (Updatable) Definition of the Custom Metric.
- object_
storage ScheduledQuery Scheduled Query Processing Configuration Object Storage - (Updatable) Definition of the object storage.
- streaming
Scheduled
Query Scheduled Query Processing Configuration Streaming - (Updatable) Definition of the Stream.
- custom
Metric Property Map - (Updatable) Definition of the Custom Metric.
- object
Storage Property Map - (Updatable) Definition of the object storage.
- streaming Property Map
- (Updatable) Definition of the Stream.
ScheduledQueryScheduledQueryProcessingConfigurationCustomMetric, ScheduledQueryScheduledQueryProcessingConfigurationCustomMetricArgs
- Name string
- (Updatable) Name of the Custom Metric.
- Compartment string
- (Updatable) Compartment of the Monitoring Service. It defaults to the APM domain's compartment if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that compartment.
- Description string
- (Updatable) Description of the Custom Metric.
- Is
Anomaly boolDetection Enabled - (Updatable) Indicates whether anomaly Detection should be performed on the generated metric.
- Is
Metric boolPublished - (Updatable) Used in conjunction with the dry run header. When the dry run header is set and the isPublishMetric flag is set to true, the scheduled query is not created, but validations happen to check if the right Oracle Cloud Infrastructure policies have been set to write to the specified namespace/compartment.
- Namespace string
- (Updatable) Namespace in the Custom Metric. It defaults to
oracle_apm_custom
if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that namespace. - Resource
Group string - (Updatable) Resource Group of the Custom Metric.
- Unit string
- (Updatable) Unit in which the metric value is reported. For example 'ms'.
- Name string
- (Updatable) Name of the Custom Metric.
- Compartment string
- (Updatable) Compartment of the Monitoring Service. It defaults to the APM domain's compartment if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that compartment.
- Description string
- (Updatable) Description of the Custom Metric.
- Is
Anomaly boolDetection Enabled - (Updatable) Indicates whether anomaly Detection should be performed on the generated metric.
- Is
Metric boolPublished - (Updatable) Used in conjunction with the dry run header. When the dry run header is set and the isPublishMetric flag is set to true, the scheduled query is not created, but validations happen to check if the right Oracle Cloud Infrastructure policies have been set to write to the specified namespace/compartment.
- Namespace string
- (Updatable) Namespace in the Custom Metric. It defaults to
oracle_apm_custom
if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that namespace. - Resource
Group string - (Updatable) Resource Group of the Custom Metric.
- Unit string
- (Updatable) Unit in which the metric value is reported. For example 'ms'.
- name String
- (Updatable) Name of the Custom Metric.
- compartment String
- (Updatable) Compartment of the Monitoring Service. It defaults to the APM domain's compartment if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that compartment.
- description String
- (Updatable) Description of the Custom Metric.
- is
Anomaly BooleanDetection Enabled - (Updatable) Indicates whether anomaly Detection should be performed on the generated metric.
- is
Metric BooleanPublished - (Updatable) Used in conjunction with the dry run header. When the dry run header is set and the isPublishMetric flag is set to true, the scheduled query is not created, but validations happen to check if the right Oracle Cloud Infrastructure policies have been set to write to the specified namespace/compartment.
- namespace String
- (Updatable) Namespace in the Custom Metric. It defaults to
oracle_apm_custom
if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that namespace. - resource
Group String - (Updatable) Resource Group of the Custom Metric.
- unit String
- (Updatable) Unit in which the metric value is reported. For example 'ms'.
- name string
- (Updatable) Name of the Custom Metric.
- compartment string
- (Updatable) Compartment of the Monitoring Service. It defaults to the APM domain's compartment if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that compartment.
- description string
- (Updatable) Description of the Custom Metric.
- is
Anomaly booleanDetection Enabled - (Updatable) Indicates whether anomaly Detection should be performed on the generated metric.
- is
Metric booleanPublished - (Updatable) Used in conjunction with the dry run header. When the dry run header is set and the isPublishMetric flag is set to true, the scheduled query is not created, but validations happen to check if the right Oracle Cloud Infrastructure policies have been set to write to the specified namespace/compartment.
- namespace string
- (Updatable) Namespace in the Custom Metric. It defaults to
oracle_apm_custom
if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that namespace. - resource
Group string - (Updatable) Resource Group of the Custom Metric.
- unit string
- (Updatable) Unit in which the metric value is reported. For example 'ms'.
- name str
- (Updatable) Name of the Custom Metric.
- compartment str
- (Updatable) Compartment of the Monitoring Service. It defaults to the APM domain's compartment if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that compartment.
- description str
- (Updatable) Description of the Custom Metric.
- is_
anomaly_ booldetection_ enabled - (Updatable) Indicates whether anomaly Detection should be performed on the generated metric.
- is_
metric_ boolpublished - (Updatable) Used in conjunction with the dry run header. When the dry run header is set and the isPublishMetric flag is set to true, the scheduled query is not created, but validations happen to check if the right Oracle Cloud Infrastructure policies have been set to write to the specified namespace/compartment.
- namespace str
- (Updatable) Namespace in the Custom Metric. It defaults to
oracle_apm_custom
if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that namespace. - resource_
group str - (Updatable) Resource Group of the Custom Metric.
- unit str
- (Updatable) Unit in which the metric value is reported. For example 'ms'.
- name String
- (Updatable) Name of the Custom Metric.
- compartment String
- (Updatable) Compartment of the Monitoring Service. It defaults to the APM domain's compartment if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that compartment.
- description String
- (Updatable) Description of the Custom Metric.
- is
Anomaly BooleanDetection Enabled - (Updatable) Indicates whether anomaly Detection should be performed on the generated metric.
- is
Metric BooleanPublished - (Updatable) Used in conjunction with the dry run header. When the dry run header is set and the isPublishMetric flag is set to true, the scheduled query is not created, but validations happen to check if the right Oracle Cloud Infrastructure policies have been set to write to the specified namespace/compartment.
- namespace String
- (Updatable) Namespace in the Custom Metric. It defaults to
oracle_apm_custom
if not specified. If specified, the necessary Oracle Cloud Infrastructure policies should be set to allow APM to write to that namespace. - resource
Group String - (Updatable) Resource Group of the Custom Metric.
- unit String
- (Updatable) Unit in which the metric value is reported. For example 'ms'.
ScheduledQueryScheduledQueryProcessingConfigurationObjectStorage, ScheduledQueryScheduledQueryProcessingConfigurationObjectStorageArgs
- Bucket string
- (Updatable) Bucket name in the object store.
- Name
Space string - (Updatable) Namespace in the object store.
- Object
Name stringPrefix - (Updatable) Object name prefix in the object store.
- Bucket string
- (Updatable) Bucket name in the object store.
- Name
Space string - (Updatable) Namespace in the object store.
- Object
Name stringPrefix - (Updatable) Object name prefix in the object store.
- bucket String
- (Updatable) Bucket name in the object store.
- name
Space String - (Updatable) Namespace in the object store.
- object
Name StringPrefix - (Updatable) Object name prefix in the object store.
- bucket string
- (Updatable) Bucket name in the object store.
- name
Space string - (Updatable) Namespace in the object store.
- object
Name stringPrefix - (Updatable) Object name prefix in the object store.
- bucket str
- (Updatable) Bucket name in the object store.
- name_
space str - (Updatable) Namespace in the object store.
- object_
name_ strprefix - (Updatable) Object name prefix in the object store.
- bucket String
- (Updatable) Bucket name in the object store.
- name
Space String - (Updatable) Namespace in the object store.
- object
Name StringPrefix - (Updatable) Object name prefix in the object store.
ScheduledQueryScheduledQueryProcessingConfigurationStreaming, ScheduledQueryScheduledQueryProcessingConfigurationStreamingArgs
- Stream
Id string - (Updatable) Stream Id.
- Stream
Id string - (Updatable) Stream Id.
- stream
Id String - (Updatable) Stream Id.
- stream
Id string - (Updatable) Stream Id.
- stream_
id str - (Updatable) Stream Id.
- stream
Id String - (Updatable) Stream Id.
Import
ScheduledQueries can be imported using the id
, e.g.
$ pulumi import oci:ApmTraces/scheduledQuery:ScheduledQuery test_scheduled_query "scheduledQueries/{scheduledQueryId}/apmDomainId/{apmDomainId}"
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.