oci.StackMonitoring.MetricExtension
Explore with Pulumi AI
This resource provides the Metric Extension resource in Oracle Cloud Infrastructure Stack Monitoring service.
Creates a new metric extension resource for a given compartment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMetricExtension = new oci.stackmonitoring.MetricExtension("test_metric_extension", {
collectionRecurrences: metricExtensionCollectionRecurrences,
compartmentId: compartmentId,
displayName: metricExtensionDisplayName,
metricLists: [{
dataType: metricExtensionMetricListDataType,
name: metricExtensionMetricListName,
computeExpression: metricExtensionMetricListComputeExpression,
displayName: metricExtensionMetricListDisplayName,
isDimension: metricExtensionMetricListIsDimension,
isHidden: metricExtensionMetricListIsHidden,
metricCategory: metricExtensionMetricListMetricCategory,
unit: metricExtensionMetricListUnit,
}],
name: metricExtensionName,
queryProperties: {
collectionMethod: metricExtensionQueryPropertiesCollectionMethod,
arguments: metricExtensionQueryPropertiesArguments,
autoRowPrefix: metricExtensionQueryPropertiesAutoRowPrefix,
command: metricExtensionQueryPropertiesCommand,
delimiter: metricExtensionQueryPropertiesDelimiter,
identityMetric: metricExtensionQueryPropertiesIdentityMetric,
inParamDetails: [{
inParamPosition: metricExtensionQueryPropertiesInParamDetailsInParamPosition,
inParamValue: metricExtensionQueryPropertiesInParamDetailsInParamValue,
}],
isMetricServiceEnabled: metricExtensionQueryPropertiesIsMetricServiceEnabled,
jmxAttributes: metricExtensionQueryPropertiesJmxAttributes,
managedBeanQuery: metricExtensionQueryPropertiesManagedBeanQuery,
outParamDetails: {
outParamPosition: metricExtensionQueryPropertiesOutParamDetailsOutParamPosition,
outParamType: metricExtensionQueryPropertiesOutParamDetailsOutParamType,
},
scriptDetails: {
content: metricExtensionQueryPropertiesScriptDetailsContent,
name: metricExtensionQueryPropertiesScriptDetailsName,
},
sqlDetails: {
content: metricExtensionQueryPropertiesSqlDetailsContent,
scriptFileName: metricExtensionQueryPropertiesSqlDetailsScriptFileName,
},
sqlType: metricExtensionQueryPropertiesSqlType,
startsWith: metricExtensionQueryPropertiesStartsWith,
},
resourceType: metricExtensionResourceType,
description: metricExtensionDescription,
});
import pulumi
import pulumi_oci as oci
test_metric_extension = oci.stack_monitoring.MetricExtension("test_metric_extension",
collection_recurrences=metric_extension_collection_recurrences,
compartment_id=compartment_id,
display_name=metric_extension_display_name,
metric_lists=[{
"data_type": metric_extension_metric_list_data_type,
"name": metric_extension_metric_list_name,
"compute_expression": metric_extension_metric_list_compute_expression,
"display_name": metric_extension_metric_list_display_name,
"is_dimension": metric_extension_metric_list_is_dimension,
"is_hidden": metric_extension_metric_list_is_hidden,
"metric_category": metric_extension_metric_list_metric_category,
"unit": metric_extension_metric_list_unit,
}],
name=metric_extension_name,
query_properties={
"collection_method": metric_extension_query_properties_collection_method,
"arguments": metric_extension_query_properties_arguments,
"auto_row_prefix": metric_extension_query_properties_auto_row_prefix,
"command": metric_extension_query_properties_command,
"delimiter": metric_extension_query_properties_delimiter,
"identity_metric": metric_extension_query_properties_identity_metric,
"in_param_details": [{
"in_param_position": metric_extension_query_properties_in_param_details_in_param_position,
"in_param_value": metric_extension_query_properties_in_param_details_in_param_value,
}],
"is_metric_service_enabled": metric_extension_query_properties_is_metric_service_enabled,
"jmx_attributes": metric_extension_query_properties_jmx_attributes,
"managed_bean_query": metric_extension_query_properties_managed_bean_query,
"out_param_details": {
"out_param_position": metric_extension_query_properties_out_param_details_out_param_position,
"out_param_type": metric_extension_query_properties_out_param_details_out_param_type,
},
"script_details": {
"content": metric_extension_query_properties_script_details_content,
"name": metric_extension_query_properties_script_details_name,
},
"sql_details": {
"content": metric_extension_query_properties_sql_details_content,
"script_file_name": metric_extension_query_properties_sql_details_script_file_name,
},
"sql_type": metric_extension_query_properties_sql_type,
"starts_with": metric_extension_query_properties_starts_with,
},
resource_type=metric_extension_resource_type,
description=metric_extension_description)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/StackMonitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := StackMonitoring.NewMetricExtension(ctx, "test_metric_extension", &StackMonitoring.MetricExtensionArgs{
CollectionRecurrences: pulumi.Any(metricExtensionCollectionRecurrences),
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(metricExtensionDisplayName),
MetricLists: stackmonitoring.MetricExtensionMetricListArray{
&stackmonitoring.MetricExtensionMetricListArgs{
DataType: pulumi.Any(metricExtensionMetricListDataType),
Name: pulumi.Any(metricExtensionMetricListName),
ComputeExpression: pulumi.Any(metricExtensionMetricListComputeExpression),
DisplayName: pulumi.Any(metricExtensionMetricListDisplayName),
IsDimension: pulumi.Any(metricExtensionMetricListIsDimension),
IsHidden: pulumi.Any(metricExtensionMetricListIsHidden),
MetricCategory: pulumi.Any(metricExtensionMetricListMetricCategory),
Unit: pulumi.Any(metricExtensionMetricListUnit),
},
},
Name: pulumi.Any(metricExtensionName),
QueryProperties: &stackmonitoring.MetricExtensionQueryPropertiesArgs{
CollectionMethod: pulumi.Any(metricExtensionQueryPropertiesCollectionMethod),
Arguments: pulumi.Any(metricExtensionQueryPropertiesArguments),
AutoRowPrefix: pulumi.Any(metricExtensionQueryPropertiesAutoRowPrefix),
Command: pulumi.Any(metricExtensionQueryPropertiesCommand),
Delimiter: pulumi.Any(metricExtensionQueryPropertiesDelimiter),
IdentityMetric: pulumi.Any(metricExtensionQueryPropertiesIdentityMetric),
InParamDetails: stackmonitoring.MetricExtensionQueryPropertiesInParamDetailArray{
&stackmonitoring.MetricExtensionQueryPropertiesInParamDetailArgs{
InParamPosition: pulumi.Any(metricExtensionQueryPropertiesInParamDetailsInParamPosition),
InParamValue: pulumi.Any(metricExtensionQueryPropertiesInParamDetailsInParamValue),
},
},
IsMetricServiceEnabled: pulumi.Any(metricExtensionQueryPropertiesIsMetricServiceEnabled),
JmxAttributes: pulumi.Any(metricExtensionQueryPropertiesJmxAttributes),
ManagedBeanQuery: pulumi.Any(metricExtensionQueryPropertiesManagedBeanQuery),
OutParamDetails: &stackmonitoring.MetricExtensionQueryPropertiesOutParamDetailsArgs{
OutParamPosition: pulumi.Any(metricExtensionQueryPropertiesOutParamDetailsOutParamPosition),
OutParamType: pulumi.Any(metricExtensionQueryPropertiesOutParamDetailsOutParamType),
},
ScriptDetails: &stackmonitoring.MetricExtensionQueryPropertiesScriptDetailsArgs{
Content: pulumi.Any(metricExtensionQueryPropertiesScriptDetailsContent),
Name: pulumi.Any(metricExtensionQueryPropertiesScriptDetailsName),
},
SqlDetails: &stackmonitoring.MetricExtensionQueryPropertiesSqlDetailsArgs{
Content: pulumi.Any(metricExtensionQueryPropertiesSqlDetailsContent),
ScriptFileName: pulumi.Any(metricExtensionQueryPropertiesSqlDetailsScriptFileName),
},
SqlType: pulumi.Any(metricExtensionQueryPropertiesSqlType),
StartsWith: pulumi.Any(metricExtensionQueryPropertiesStartsWith),
},
ResourceType: pulumi.Any(metricExtensionResourceType),
Description: pulumi.Any(metricExtensionDescription),
})
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 testMetricExtension = new Oci.StackMonitoring.MetricExtension("test_metric_extension", new()
{
CollectionRecurrences = metricExtensionCollectionRecurrences,
CompartmentId = compartmentId,
DisplayName = metricExtensionDisplayName,
MetricLists = new[]
{
new Oci.StackMonitoring.Inputs.MetricExtensionMetricListArgs
{
DataType = metricExtensionMetricListDataType,
Name = metricExtensionMetricListName,
ComputeExpression = metricExtensionMetricListComputeExpression,
DisplayName = metricExtensionMetricListDisplayName,
IsDimension = metricExtensionMetricListIsDimension,
IsHidden = metricExtensionMetricListIsHidden,
MetricCategory = metricExtensionMetricListMetricCategory,
Unit = metricExtensionMetricListUnit,
},
},
Name = metricExtensionName,
QueryProperties = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesArgs
{
CollectionMethod = metricExtensionQueryPropertiesCollectionMethod,
Arguments = metricExtensionQueryPropertiesArguments,
AutoRowPrefix = metricExtensionQueryPropertiesAutoRowPrefix,
Command = metricExtensionQueryPropertiesCommand,
Delimiter = metricExtensionQueryPropertiesDelimiter,
IdentityMetric = metricExtensionQueryPropertiesIdentityMetric,
InParamDetails = new[]
{
new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesInParamDetailArgs
{
InParamPosition = metricExtensionQueryPropertiesInParamDetailsInParamPosition,
InParamValue = metricExtensionQueryPropertiesInParamDetailsInParamValue,
},
},
IsMetricServiceEnabled = metricExtensionQueryPropertiesIsMetricServiceEnabled,
JmxAttributes = metricExtensionQueryPropertiesJmxAttributes,
ManagedBeanQuery = metricExtensionQueryPropertiesManagedBeanQuery,
OutParamDetails = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesOutParamDetailsArgs
{
OutParamPosition = metricExtensionQueryPropertiesOutParamDetailsOutParamPosition,
OutParamType = metricExtensionQueryPropertiesOutParamDetailsOutParamType,
},
ScriptDetails = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesScriptDetailsArgs
{
Content = metricExtensionQueryPropertiesScriptDetailsContent,
Name = metricExtensionQueryPropertiesScriptDetailsName,
},
SqlDetails = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesSqlDetailsArgs
{
Content = metricExtensionQueryPropertiesSqlDetailsContent,
ScriptFileName = metricExtensionQueryPropertiesSqlDetailsScriptFileName,
},
SqlType = metricExtensionQueryPropertiesSqlType,
StartsWith = metricExtensionQueryPropertiesStartsWith,
},
ResourceType = metricExtensionResourceType,
Description = metricExtensionDescription,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MetricExtension;
import com.pulumi.oci.StackMonitoring.MetricExtensionArgs;
import com.pulumi.oci.StackMonitoring.inputs.MetricExtensionMetricListArgs;
import com.pulumi.oci.StackMonitoring.inputs.MetricExtensionQueryPropertiesArgs;
import com.pulumi.oci.StackMonitoring.inputs.MetricExtensionQueryPropertiesOutParamDetailsArgs;
import com.pulumi.oci.StackMonitoring.inputs.MetricExtensionQueryPropertiesScriptDetailsArgs;
import com.pulumi.oci.StackMonitoring.inputs.MetricExtensionQueryPropertiesSqlDetailsArgs;
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 testMetricExtension = new MetricExtension("testMetricExtension", MetricExtensionArgs.builder()
.collectionRecurrences(metricExtensionCollectionRecurrences)
.compartmentId(compartmentId)
.displayName(metricExtensionDisplayName)
.metricLists(MetricExtensionMetricListArgs.builder()
.dataType(metricExtensionMetricListDataType)
.name(metricExtensionMetricListName)
.computeExpression(metricExtensionMetricListComputeExpression)
.displayName(metricExtensionMetricListDisplayName)
.isDimension(metricExtensionMetricListIsDimension)
.isHidden(metricExtensionMetricListIsHidden)
.metricCategory(metricExtensionMetricListMetricCategory)
.unit(metricExtensionMetricListUnit)
.build())
.name(metricExtensionName)
.queryProperties(MetricExtensionQueryPropertiesArgs.builder()
.collectionMethod(metricExtensionQueryPropertiesCollectionMethod)
.arguments(metricExtensionQueryPropertiesArguments)
.autoRowPrefix(metricExtensionQueryPropertiesAutoRowPrefix)
.command(metricExtensionQueryPropertiesCommand)
.delimiter(metricExtensionQueryPropertiesDelimiter)
.identityMetric(metricExtensionQueryPropertiesIdentityMetric)
.inParamDetails(MetricExtensionQueryPropertiesInParamDetailArgs.builder()
.inParamPosition(metricExtensionQueryPropertiesInParamDetailsInParamPosition)
.inParamValue(metricExtensionQueryPropertiesInParamDetailsInParamValue)
.build())
.isMetricServiceEnabled(metricExtensionQueryPropertiesIsMetricServiceEnabled)
.jmxAttributes(metricExtensionQueryPropertiesJmxAttributes)
.managedBeanQuery(metricExtensionQueryPropertiesManagedBeanQuery)
.outParamDetails(MetricExtensionQueryPropertiesOutParamDetailsArgs.builder()
.outParamPosition(metricExtensionQueryPropertiesOutParamDetailsOutParamPosition)
.outParamType(metricExtensionQueryPropertiesOutParamDetailsOutParamType)
.build())
.scriptDetails(MetricExtensionQueryPropertiesScriptDetailsArgs.builder()
.content(metricExtensionQueryPropertiesScriptDetailsContent)
.name(metricExtensionQueryPropertiesScriptDetailsName)
.build())
.sqlDetails(MetricExtensionQueryPropertiesSqlDetailsArgs.builder()
.content(metricExtensionQueryPropertiesSqlDetailsContent)
.scriptFileName(metricExtensionQueryPropertiesSqlDetailsScriptFileName)
.build())
.sqlType(metricExtensionQueryPropertiesSqlType)
.startsWith(metricExtensionQueryPropertiesStartsWith)
.build())
.resourceType(metricExtensionResourceType)
.description(metricExtensionDescription)
.build());
}
}
resources:
testMetricExtension:
type: oci:StackMonitoring:MetricExtension
name: test_metric_extension
properties:
collectionRecurrences: ${metricExtensionCollectionRecurrences}
compartmentId: ${compartmentId}
displayName: ${metricExtensionDisplayName}
metricLists:
- dataType: ${metricExtensionMetricListDataType}
name: ${metricExtensionMetricListName}
computeExpression: ${metricExtensionMetricListComputeExpression}
displayName: ${metricExtensionMetricListDisplayName}
isDimension: ${metricExtensionMetricListIsDimension}
isHidden: ${metricExtensionMetricListIsHidden}
metricCategory: ${metricExtensionMetricListMetricCategory}
unit: ${metricExtensionMetricListUnit}
name: ${metricExtensionName}
queryProperties:
collectionMethod: ${metricExtensionQueryPropertiesCollectionMethod}
arguments: ${metricExtensionQueryPropertiesArguments}
autoRowPrefix: ${metricExtensionQueryPropertiesAutoRowPrefix}
command: ${metricExtensionQueryPropertiesCommand}
delimiter: ${metricExtensionQueryPropertiesDelimiter}
identityMetric: ${metricExtensionQueryPropertiesIdentityMetric}
inParamDetails:
- inParamPosition: ${metricExtensionQueryPropertiesInParamDetailsInParamPosition}
inParamValue: ${metricExtensionQueryPropertiesInParamDetailsInParamValue}
isMetricServiceEnabled: ${metricExtensionQueryPropertiesIsMetricServiceEnabled}
jmxAttributes: ${metricExtensionQueryPropertiesJmxAttributes}
managedBeanQuery: ${metricExtensionQueryPropertiesManagedBeanQuery}
outParamDetails:
outParamPosition: ${metricExtensionQueryPropertiesOutParamDetailsOutParamPosition}
outParamType: ${metricExtensionQueryPropertiesOutParamDetailsOutParamType}
scriptDetails:
content: ${metricExtensionQueryPropertiesScriptDetailsContent}
name: ${metricExtensionQueryPropertiesScriptDetailsName}
sqlDetails:
content: ${metricExtensionQueryPropertiesSqlDetailsContent}
scriptFileName: ${metricExtensionQueryPropertiesSqlDetailsScriptFileName}
sqlType: ${metricExtensionQueryPropertiesSqlType}
startsWith: ${metricExtensionQueryPropertiesStartsWith}
resourceType: ${metricExtensionResourceType}
description: ${metricExtensionDescription}
Create MetricExtension Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetricExtension(name: string, args: MetricExtensionArgs, opts?: CustomResourceOptions);
@overload
def MetricExtension(resource_name: str,
args: MetricExtensionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MetricExtension(resource_name: str,
opts: Optional[ResourceOptions] = None,
collection_recurrences: Optional[str] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
metric_lists: Optional[Sequence[_stackmonitoring.MetricExtensionMetricListArgs]] = None,
query_properties: Optional[_stackmonitoring.MetricExtensionQueryPropertiesArgs] = None,
resource_type: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
publish_trigger: Optional[bool] = None)
func NewMetricExtension(ctx *Context, name string, args MetricExtensionArgs, opts ...ResourceOption) (*MetricExtension, error)
public MetricExtension(string name, MetricExtensionArgs args, CustomResourceOptions? opts = null)
public MetricExtension(String name, MetricExtensionArgs args)
public MetricExtension(String name, MetricExtensionArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MetricExtension
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 MetricExtensionArgs
- 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 MetricExtensionArgs
- 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 MetricExtensionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetricExtensionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetricExtensionArgs
- 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 metricExtensionResource = new Oci.StackMonitoring.MetricExtension("metricExtensionResource", new()
{
CollectionRecurrences = "string",
CompartmentId = "string",
DisplayName = "string",
MetricLists = new[]
{
new Oci.StackMonitoring.Inputs.MetricExtensionMetricListArgs
{
DataType = "string",
Name = "string",
ComputeExpression = "string",
DisplayName = "string",
IsDimension = false,
IsHidden = false,
MetricCategory = "string",
Unit = "string",
},
},
QueryProperties = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesArgs
{
CollectionMethod = "string",
InParamDetails = new[]
{
new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesInParamDetailArgs
{
InParamPosition = 0,
InParamValue = "string",
},
},
JmxAttributes = "string",
Command = "string",
Delimiter = "string",
IdentityMetric = "string",
Arguments = "string",
IsMetricServiceEnabled = false,
AutoRowPrefix = "string",
ManagedBeanQuery = "string",
OutParamDetails = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesOutParamDetailsArgs
{
OutParamPosition = 0,
OutParamType = "string",
},
ScriptDetails = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesScriptDetailsArgs
{
Content = "string",
Name = "string",
},
SqlDetails = new Oci.StackMonitoring.Inputs.MetricExtensionQueryPropertiesSqlDetailsArgs
{
Content = "string",
ScriptFileName = "string",
},
SqlType = "string",
StartsWith = "string",
},
ResourceType = "string",
Description = "string",
Name = "string",
PublishTrigger = false,
});
example, err := StackMonitoring.NewMetricExtension(ctx, "metricExtensionResource", &StackMonitoring.MetricExtensionArgs{
CollectionRecurrences: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
MetricLists: stackmonitoring.MetricExtensionMetricListArray{
&stackmonitoring.MetricExtensionMetricListArgs{
DataType: pulumi.String("string"),
Name: pulumi.String("string"),
ComputeExpression: pulumi.String("string"),
DisplayName: pulumi.String("string"),
IsDimension: pulumi.Bool(false),
IsHidden: pulumi.Bool(false),
MetricCategory: pulumi.String("string"),
Unit: pulumi.String("string"),
},
},
QueryProperties: &stackmonitoring.MetricExtensionQueryPropertiesArgs{
CollectionMethod: pulumi.String("string"),
InParamDetails: stackmonitoring.MetricExtensionQueryPropertiesInParamDetailArray{
&stackmonitoring.MetricExtensionQueryPropertiesInParamDetailArgs{
InParamPosition: pulumi.Int(0),
InParamValue: pulumi.String("string"),
},
},
JmxAttributes: pulumi.String("string"),
Command: pulumi.String("string"),
Delimiter: pulumi.String("string"),
IdentityMetric: pulumi.String("string"),
Arguments: pulumi.String("string"),
IsMetricServiceEnabled: pulumi.Bool(false),
AutoRowPrefix: pulumi.String("string"),
ManagedBeanQuery: pulumi.String("string"),
OutParamDetails: &stackmonitoring.MetricExtensionQueryPropertiesOutParamDetailsArgs{
OutParamPosition: pulumi.Int(0),
OutParamType: pulumi.String("string"),
},
ScriptDetails: &stackmonitoring.MetricExtensionQueryPropertiesScriptDetailsArgs{
Content: pulumi.String("string"),
Name: pulumi.String("string"),
},
SqlDetails: &stackmonitoring.MetricExtensionQueryPropertiesSqlDetailsArgs{
Content: pulumi.String("string"),
ScriptFileName: pulumi.String("string"),
},
SqlType: pulumi.String("string"),
StartsWith: pulumi.String("string"),
},
ResourceType: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
PublishTrigger: pulumi.Bool(false),
})
var metricExtensionResource = new MetricExtension("metricExtensionResource", MetricExtensionArgs.builder()
.collectionRecurrences("string")
.compartmentId("string")
.displayName("string")
.metricLists(MetricExtensionMetricListArgs.builder()
.dataType("string")
.name("string")
.computeExpression("string")
.displayName("string")
.isDimension(false)
.isHidden(false)
.metricCategory("string")
.unit("string")
.build())
.queryProperties(MetricExtensionQueryPropertiesArgs.builder()
.collectionMethod("string")
.inParamDetails(MetricExtensionQueryPropertiesInParamDetailArgs.builder()
.inParamPosition(0)
.inParamValue("string")
.build())
.jmxAttributes("string")
.command("string")
.delimiter("string")
.identityMetric("string")
.arguments("string")
.isMetricServiceEnabled(false)
.autoRowPrefix("string")
.managedBeanQuery("string")
.outParamDetails(MetricExtensionQueryPropertiesOutParamDetailsArgs.builder()
.outParamPosition(0)
.outParamType("string")
.build())
.scriptDetails(MetricExtensionQueryPropertiesScriptDetailsArgs.builder()
.content("string")
.name("string")
.build())
.sqlDetails(MetricExtensionQueryPropertiesSqlDetailsArgs.builder()
.content("string")
.scriptFileName("string")
.build())
.sqlType("string")
.startsWith("string")
.build())
.resourceType("string")
.description("string")
.name("string")
.publishTrigger(false)
.build());
metric_extension_resource = oci.stack_monitoring.MetricExtension("metricExtensionResource",
collection_recurrences="string",
compartment_id="string",
display_name="string",
metric_lists=[{
"data_type": "string",
"name": "string",
"compute_expression": "string",
"display_name": "string",
"is_dimension": False,
"is_hidden": False,
"metric_category": "string",
"unit": "string",
}],
query_properties={
"collection_method": "string",
"in_param_details": [{
"in_param_position": 0,
"in_param_value": "string",
}],
"jmx_attributes": "string",
"command": "string",
"delimiter": "string",
"identity_metric": "string",
"arguments": "string",
"is_metric_service_enabled": False,
"auto_row_prefix": "string",
"managed_bean_query": "string",
"out_param_details": {
"out_param_position": 0,
"out_param_type": "string",
},
"script_details": {
"content": "string",
"name": "string",
},
"sql_details": {
"content": "string",
"script_file_name": "string",
},
"sql_type": "string",
"starts_with": "string",
},
resource_type="string",
description="string",
name="string",
publish_trigger=False)
const metricExtensionResource = new oci.stackmonitoring.MetricExtension("metricExtensionResource", {
collectionRecurrences: "string",
compartmentId: "string",
displayName: "string",
metricLists: [{
dataType: "string",
name: "string",
computeExpression: "string",
displayName: "string",
isDimension: false,
isHidden: false,
metricCategory: "string",
unit: "string",
}],
queryProperties: {
collectionMethod: "string",
inParamDetails: [{
inParamPosition: 0,
inParamValue: "string",
}],
jmxAttributes: "string",
command: "string",
delimiter: "string",
identityMetric: "string",
arguments: "string",
isMetricServiceEnabled: false,
autoRowPrefix: "string",
managedBeanQuery: "string",
outParamDetails: {
outParamPosition: 0,
outParamType: "string",
},
scriptDetails: {
content: "string",
name: "string",
},
sqlDetails: {
content: "string",
scriptFileName: "string",
},
sqlType: "string",
startsWith: "string",
},
resourceType: "string",
description: "string",
name: "string",
publishTrigger: false,
});
type: oci:StackMonitoring:MetricExtension
properties:
collectionRecurrences: string
compartmentId: string
description: string
displayName: string
metricLists:
- computeExpression: string
dataType: string
displayName: string
isDimension: false
isHidden: false
metricCategory: string
name: string
unit: string
name: string
publishTrigger: false
queryProperties:
arguments: string
autoRowPrefix: string
collectionMethod: string
command: string
delimiter: string
identityMetric: string
inParamDetails:
- inParamPosition: 0
inParamValue: string
isMetricServiceEnabled: false
jmxAttributes: string
managedBeanQuery: string
outParamDetails:
outParamPosition: 0
outParamType: string
scriptDetails:
content: string
name: string
sqlDetails:
content: string
scriptFileName: string
sqlType: string
startsWith: string
resourceType: string
MetricExtension 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 MetricExtension resource accepts the following input properties:
- Collection
Recurrences string - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- Compartment
Id string - (Updatable) Compartment Identifier OCID
- Display
Name string - (Updatable) Metric Extension display name.
- Metric
Lists List<MetricExtension Metric List> - (Updatable) List of metrics which are part of this metric extension
- Query
Properties MetricExtension Query Properties - (Updatable) Collection method and query properties details of metric extension
- Resource
Type string - Resource type to which Metric Extension applies
- Description string
- (Updatable) Description of the metric extension.
- Name string
- Metric Extension Resource name.
- Publish
Trigger bool (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- Collection
Recurrences string - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- Compartment
Id string - (Updatable) Compartment Identifier OCID
- Display
Name string - (Updatable) Metric Extension display name.
- Metric
Lists []MetricExtension Metric List Args - (Updatable) List of metrics which are part of this metric extension
- Query
Properties MetricExtension Query Properties Args - (Updatable) Collection method and query properties details of metric extension
- Resource
Type string - Resource type to which Metric Extension applies
- Description string
- (Updatable) Description of the metric extension.
- Name string
- Metric Extension Resource name.
- Publish
Trigger bool (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- collection
Recurrences String - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment
Id String - (Updatable) Compartment Identifier OCID
- display
Name String - (Updatable) Metric Extension display name.
- metric
Lists List<MetricExtension Metric List> - (Updatable) List of metrics which are part of this metric extension
- query
Properties MetricExtension Query Properties - (Updatable) Collection method and query properties details of metric extension
- resource
Type String - Resource type to which Metric Extension applies
- description String
- (Updatable) Description of the metric extension.
- name String
- Metric Extension Resource name.
- publish
Trigger Boolean (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- collection
Recurrences string - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment
Id string - (Updatable) Compartment Identifier OCID
- display
Name string - (Updatable) Metric Extension display name.
- metric
Lists MetricExtension Metric List[] - (Updatable) List of metrics which are part of this metric extension
- query
Properties MetricExtension Query Properties - (Updatable) Collection method and query properties details of metric extension
- resource
Type string - Resource type to which Metric Extension applies
- description string
- (Updatable) Description of the metric extension.
- name string
- Metric Extension Resource name.
- publish
Trigger boolean (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- collection_
recurrences str - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment_
id str - (Updatable) Compartment Identifier OCID
- display_
name str - (Updatable) Metric Extension display name.
- metric_
lists Sequence[stackmonitoring.Metric Extension Metric List Args] - (Updatable) List of metrics which are part of this metric extension
- query_
properties stackmonitoring.Metric Extension Query Properties Args - (Updatable) Collection method and query properties details of metric extension
- resource_
type str - Resource type to which Metric Extension applies
- description str
- (Updatable) Description of the metric extension.
- name str
- Metric Extension Resource name.
- publish_
trigger bool (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- collection
Recurrences String - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment
Id String - (Updatable) Compartment Identifier OCID
- display
Name String - (Updatable) Metric Extension display name.
- metric
Lists List<Property Map> - (Updatable) List of metrics which are part of this metric extension
- query
Properties Property Map - (Updatable) Collection method and query properties details of metric extension
- resource
Type String - Resource type to which Metric Extension applies
- description String
- (Updatable) Description of the metric extension.
- name String
- Metric Extension Resource name.
- publish
Trigger Boolean (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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 MetricExtension resource produces the following output properties:
- Collection
Method string - Type of possible collection methods.
- Created
By string - Created by user
- Enabled
On List<MetricResources Extension Enabled On Resource> - List of resource objects on which this metric extension is enabled.
- Enabled
On intResources Count - Count of resources on which this metric extension is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringBy - Last updated by user
- Resource
Uri string - The URI path that the user can do a GET on to access the metric extension metadata
- State string
- The current lifecycle state of the metric extension
- Status string
- The current status of the metric extension i.e. whether it is Draft or Published
- Tenant
Id string - Tenant Identifier OCID
- Time
Created string - Metric Extension creation time. An RFC3339 formatted datetime string.
- Time
Updated string - Metric Extension update time. An RFC3339 formatted datetime string.
- Collection
Method string - Type of possible collection methods.
- Created
By string - Created by user
- Enabled
On []MetricResources Extension Enabled On Resource - List of resource objects on which this metric extension is enabled.
- Enabled
On intResources Count - Count of resources on which this metric extension is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringBy - Last updated by user
- Resource
Uri string - The URI path that the user can do a GET on to access the metric extension metadata
- State string
- The current lifecycle state of the metric extension
- Status string
- The current status of the metric extension i.e. whether it is Draft or Published
- Tenant
Id string - Tenant Identifier OCID
- Time
Created string - Metric Extension creation time. An RFC3339 formatted datetime string.
- Time
Updated string - Metric Extension update time. An RFC3339 formatted datetime string.
- collection
Method String - Type of possible collection methods.
- created
By String - Created by user
- enabled
On List<MetricResources Extension Enabled On Resource> - List of resource objects on which this metric extension is enabled.
- enabled
On IntegerResources Count - Count of resources on which this metric extension is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringBy - Last updated by user
- resource
Uri String - The URI path that the user can do a GET on to access the metric extension metadata
- state String
- The current lifecycle state of the metric extension
- status String
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant
Id String - Tenant Identifier OCID
- time
Created String - Metric Extension creation time. An RFC3339 formatted datetime string.
- time
Updated String - Metric Extension update time. An RFC3339 formatted datetime string.
- collection
Method string - Type of possible collection methods.
- created
By string - Created by user
- enabled
On MetricResources Extension Enabled On Resource[] - List of resource objects on which this metric extension is enabled.
- enabled
On numberResources Count - Count of resources on which this metric extension is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringBy - Last updated by user
- resource
Uri string - The URI path that the user can do a GET on to access the metric extension metadata
- state string
- The current lifecycle state of the metric extension
- status string
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant
Id string - Tenant Identifier OCID
- time
Created string - Metric Extension creation time. An RFC3339 formatted datetime string.
- time
Updated string - Metric Extension update time. An RFC3339 formatted datetime string.
- collection_
method str - Type of possible collection methods.
- created_
by str - Created by user
- enabled_
on_ Sequence[stackmonitoring.resources Metric Extension Enabled On Resource] - List of resource objects on which this metric extension is enabled.
- enabled_
on_ intresources_ count - Count of resources on which this metric extension is enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strby - Last updated by user
- resource_
uri str - The URI path that the user can do a GET on to access the metric extension metadata
- state str
- The current lifecycle state of the metric extension
- status str
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant_
id str - Tenant Identifier OCID
- time_
created str - Metric Extension creation time. An RFC3339 formatted datetime string.
- time_
updated str - Metric Extension update time. An RFC3339 formatted datetime string.
- collection
Method String - Type of possible collection methods.
- created
By String - Created by user
- enabled
On List<Property Map>Resources - List of resource objects on which this metric extension is enabled.
- enabled
On NumberResources Count - Count of resources on which this metric extension is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringBy - Last updated by user
- resource
Uri String - The URI path that the user can do a GET on to access the metric extension metadata
- state String
- The current lifecycle state of the metric extension
- status String
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant
Id String - Tenant Identifier OCID
- time
Created String - Metric Extension creation time. An RFC3339 formatted datetime string.
- time
Updated String - Metric Extension update time. An RFC3339 formatted datetime string.
Look up Existing MetricExtension Resource
Get an existing MetricExtension 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?: MetricExtensionState, opts?: CustomResourceOptions): MetricExtension
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
collection_method: Optional[str] = None,
collection_recurrences: Optional[str] = None,
compartment_id: Optional[str] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
enabled_on_resources: Optional[Sequence[_stackmonitoring.MetricExtensionEnabledOnResourceArgs]] = None,
enabled_on_resources_count: Optional[int] = None,
last_updated_by: Optional[str] = None,
metric_lists: Optional[Sequence[_stackmonitoring.MetricExtensionMetricListArgs]] = None,
name: Optional[str] = None,
publish_trigger: Optional[bool] = None,
query_properties: Optional[_stackmonitoring.MetricExtensionQueryPropertiesArgs] = None,
resource_type: Optional[str] = None,
resource_uri: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
tenant_id: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> MetricExtension
func GetMetricExtension(ctx *Context, name string, id IDInput, state *MetricExtensionState, opts ...ResourceOption) (*MetricExtension, error)
public static MetricExtension Get(string name, Input<string> id, MetricExtensionState? state, CustomResourceOptions? opts = null)
public static MetricExtension get(String name, Output<String> id, MetricExtensionState 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.
- Collection
Method string - Type of possible collection methods.
- Collection
Recurrences string - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- Compartment
Id string - (Updatable) Compartment Identifier OCID
- Created
By string - Created by user
- Description string
- (Updatable) Description of the metric extension.
- Display
Name string - (Updatable) Metric Extension display name.
- Enabled
On List<MetricResources Extension Enabled On Resource> - List of resource objects on which this metric extension is enabled.
- Enabled
On intResources Count - Count of resources on which this metric extension is enabled.
- Last
Updated stringBy - Last updated by user
- Metric
Lists List<MetricExtension Metric List> - (Updatable) List of metrics which are part of this metric extension
- Name string
- Metric Extension Resource name.
- Publish
Trigger bool (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- Query
Properties MetricExtension Query Properties - (Updatable) Collection method and query properties details of metric extension
- Resource
Type string - Resource type to which Metric Extension applies
- Resource
Uri string - The URI path that the user can do a GET on to access the metric extension metadata
- State string
- The current lifecycle state of the metric extension
- Status string
- The current status of the metric extension i.e. whether it is Draft or Published
- Tenant
Id string - Tenant Identifier OCID
- Time
Created string - Metric Extension creation time. An RFC3339 formatted datetime string.
- Time
Updated string - Metric Extension update time. An RFC3339 formatted datetime string.
- Collection
Method string - Type of possible collection methods.
- Collection
Recurrences string - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- Compartment
Id string - (Updatable) Compartment Identifier OCID
- Created
By string - Created by user
- Description string
- (Updatable) Description of the metric extension.
- Display
Name string - (Updatable) Metric Extension display name.
- Enabled
On []MetricResources Extension Enabled On Resource Args - List of resource objects on which this metric extension is enabled.
- Enabled
On intResources Count - Count of resources on which this metric extension is enabled.
- Last
Updated stringBy - Last updated by user
- Metric
Lists []MetricExtension Metric List Args - (Updatable) List of metrics which are part of this metric extension
- Name string
- Metric Extension Resource name.
- Publish
Trigger bool (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- Query
Properties MetricExtension Query Properties Args - (Updatable) Collection method and query properties details of metric extension
- Resource
Type string - Resource type to which Metric Extension applies
- Resource
Uri string - The URI path that the user can do a GET on to access the metric extension metadata
- State string
- The current lifecycle state of the metric extension
- Status string
- The current status of the metric extension i.e. whether it is Draft or Published
- Tenant
Id string - Tenant Identifier OCID
- Time
Created string - Metric Extension creation time. An RFC3339 formatted datetime string.
- Time
Updated string - Metric Extension update time. An RFC3339 formatted datetime string.
- collection
Method String - Type of possible collection methods.
- collection
Recurrences String - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment
Id String - (Updatable) Compartment Identifier OCID
- created
By String - Created by user
- description String
- (Updatable) Description of the metric extension.
- display
Name String - (Updatable) Metric Extension display name.
- enabled
On List<MetricResources Extension Enabled On Resource> - List of resource objects on which this metric extension is enabled.
- enabled
On IntegerResources Count - Count of resources on which this metric extension is enabled.
- last
Updated StringBy - Last updated by user
- metric
Lists List<MetricExtension Metric List> - (Updatable) List of metrics which are part of this metric extension
- name String
- Metric Extension Resource name.
- publish
Trigger Boolean (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- query
Properties MetricExtension Query Properties - (Updatable) Collection method and query properties details of metric extension
- resource
Type String - Resource type to which Metric Extension applies
- resource
Uri String - The URI path that the user can do a GET on to access the metric extension metadata
- state String
- The current lifecycle state of the metric extension
- status String
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant
Id String - Tenant Identifier OCID
- time
Created String - Metric Extension creation time. An RFC3339 formatted datetime string.
- time
Updated String - Metric Extension update time. An RFC3339 formatted datetime string.
- collection
Method string - Type of possible collection methods.
- collection
Recurrences string - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment
Id string - (Updatable) Compartment Identifier OCID
- created
By string - Created by user
- description string
- (Updatable) Description of the metric extension.
- display
Name string - (Updatable) Metric Extension display name.
- enabled
On MetricResources Extension Enabled On Resource[] - List of resource objects on which this metric extension is enabled.
- enabled
On numberResources Count - Count of resources on which this metric extension is enabled.
- last
Updated stringBy - Last updated by user
- metric
Lists MetricExtension Metric List[] - (Updatable) List of metrics which are part of this metric extension
- name string
- Metric Extension Resource name.
- publish
Trigger boolean (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- query
Properties MetricExtension Query Properties - (Updatable) Collection method and query properties details of metric extension
- resource
Type string - Resource type to which Metric Extension applies
- resource
Uri string - The URI path that the user can do a GET on to access the metric extension metadata
- state string
- The current lifecycle state of the metric extension
- status string
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant
Id string - Tenant Identifier OCID
- time
Created string - Metric Extension creation time. An RFC3339 formatted datetime string.
- time
Updated string - Metric Extension update time. An RFC3339 formatted datetime string.
- collection_
method str - Type of possible collection methods.
- collection_
recurrences str - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment_
id str - (Updatable) Compartment Identifier OCID
- created_
by str - Created by user
- description str
- (Updatable) Description of the metric extension.
- display_
name str - (Updatable) Metric Extension display name.
- enabled_
on_ Sequence[stackmonitoring.resources Metric Extension Enabled On Resource Args] - List of resource objects on which this metric extension is enabled.
- enabled_
on_ intresources_ count - Count of resources on which this metric extension is enabled.
- last_
updated_ strby - Last updated by user
- metric_
lists Sequence[stackmonitoring.Metric Extension Metric List Args] - (Updatable) List of metrics which are part of this metric extension
- name str
- Metric Extension Resource name.
- publish_
trigger bool (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- query_
properties stackmonitoring.Metric Extension Query Properties Args - (Updatable) Collection method and query properties details of metric extension
- resource_
type str - Resource type to which Metric Extension applies
- resource_
uri str - The URI path that the user can do a GET on to access the metric extension metadata
- state str
- The current lifecycle state of the metric extension
- status str
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant_
id str - Tenant Identifier OCID
- time_
created str - Metric Extension creation time. An RFC3339 formatted datetime string.
- time_
updated str - Metric Extension update time. An RFC3339 formatted datetime string.
- collection
Method String - Type of possible collection methods.
- collection
Recurrences String - (Updatable) Schedule of metric extension should use RFC 5545 format i.e. recur-rule-part = "FREQ";INTERVAL where FREQ rule part identifies the type of recurrence rule. Valid values are "MINUTELY","HOURLY","DAILY" to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
- compartment
Id String - (Updatable) Compartment Identifier OCID
- created
By String - Created by user
- description String
- (Updatable) Description of the metric extension.
- display
Name String - (Updatable) Metric Extension display name.
- enabled
On List<Property Map>Resources - List of resource objects on which this metric extension is enabled.
- enabled
On NumberResources Count - Count of resources on which this metric extension is enabled.
- last
Updated StringBy - Last updated by user
- metric
Lists List<Property Map> - (Updatable) List of metrics which are part of this metric extension
- name String
- Metric Extension Resource name.
- publish
Trigger Boolean (Updatable) An optional property when set to
true
triggers Publish of a metric extension. Once set totrue
, it cannot be changed back tofalse
. Update of publish_trigger cannot be combined with other updates in the same request. A metric extension cannot be tested and its definition cannot be updated once it is marked published or publish_trigger is updated totrue
.** 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
- query
Properties Property Map - (Updatable) Collection method and query properties details of metric extension
- resource
Type String - Resource type to which Metric Extension applies
- resource
Uri String - The URI path that the user can do a GET on to access the metric extension metadata
- state String
- The current lifecycle state of the metric extension
- status String
- The current status of the metric extension i.e. whether it is Draft or Published
- tenant
Id String - Tenant Identifier OCID
- time
Created String - Metric Extension creation time. An RFC3339 formatted datetime string.
- time
Updated String - Metric Extension update time. An RFC3339 formatted datetime string.
Supporting Types
MetricExtensionEnabledOnResource, MetricExtensionEnabledOnResourceArgs
- Resource
Id string - The OCID of the resource on which Metric Extension is enabled
- Resource
Id string - The OCID of the resource on which Metric Extension is enabled
- resource
Id String - The OCID of the resource on which Metric Extension is enabled
- resource
Id string - The OCID of the resource on which Metric Extension is enabled
- resource_
id str - The OCID of the resource on which Metric Extension is enabled
- resource
Id String - The OCID of the resource on which Metric Extension is enabled
MetricExtensionMetricList, MetricExtensionMetricListArgs
- Data
Type string - (Updatable) Data type of value of this metric
- Name string
- (Updatable) Name of the metric.
- Compute
Expression string - (Updatable) Compute Expression to calculate the value of this metric
- Display
Name string - (Updatable) Display name of the metric.
- Is
Dimension bool - (Updatable) Current metric need to be included as dimension or not
- bool
- (Updatable) Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
- Metric
Category string - (Updatable) Metric category
- Unit string
- (Updatable) Unit of metric value
- Data
Type string - (Updatable) Data type of value of this metric
- Name string
- (Updatable) Name of the metric.
- Compute
Expression string - (Updatable) Compute Expression to calculate the value of this metric
- Display
Name string - (Updatable) Display name of the metric.
- Is
Dimension bool - (Updatable) Current metric need to be included as dimension or not
- bool
- (Updatable) Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
- Metric
Category string - (Updatable) Metric category
- Unit string
- (Updatable) Unit of metric value
- data
Type String - (Updatable) Data type of value of this metric
- name String
- (Updatable) Name of the metric.
- compute
Expression String - (Updatable) Compute Expression to calculate the value of this metric
- display
Name String - (Updatable) Display name of the metric.
- is
Dimension Boolean - (Updatable) Current metric need to be included as dimension or not
- Boolean
- (Updatable) Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
- metric
Category String - (Updatable) Metric category
- unit String
- (Updatable) Unit of metric value
- data
Type string - (Updatable) Data type of value of this metric
- name string
- (Updatable) Name of the metric.
- compute
Expression string - (Updatable) Compute Expression to calculate the value of this metric
- display
Name string - (Updatable) Display name of the metric.
- is
Dimension boolean - (Updatable) Current metric need to be included as dimension or not
- boolean
- (Updatable) Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
- metric
Category string - (Updatable) Metric category
- unit string
- (Updatable) Unit of metric value
- data_
type str - (Updatable) Data type of value of this metric
- name str
- (Updatable) Name of the metric.
- compute_
expression str - (Updatable) Compute Expression to calculate the value of this metric
- display_
name str - (Updatable) Display name of the metric.
- is_
dimension bool - (Updatable) Current metric need to be included as dimension or not
- bool
- (Updatable) Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
- metric_
category str - (Updatable) Metric category
- unit str
- (Updatable) Unit of metric value
- data
Type String - (Updatable) Data type of value of this metric
- name String
- (Updatable) Name of the metric.
- compute
Expression String - (Updatable) Compute Expression to calculate the value of this metric
- display
Name String - (Updatable) Display name of the metric.
- is
Dimension Boolean - (Updatable) Current metric need to be included as dimension or not
- Boolean
- (Updatable) Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
- metric
Category String - (Updatable) Metric category
- unit String
- (Updatable) Unit of metric value
MetricExtensionQueryProperties, MetricExtensionQueryPropertiesArgs
- Collection
Method string - (Updatable) Type of possible collection methods.
- Arguments string
- (Updatable) Arguments required by either command or script
- Auto
Row stringPrefix - (Updatable) Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
- Command string
- (Updatable) OS command to execute without arguments
- Delimiter string
- (Updatable) Character used to delimit multiple metric values in single line of output
- Identity
Metric string - (Updatable) Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
- In
Param List<MetricDetails Extension Query Properties In Param Detail> - (Updatable) List of values and position of PL/SQL procedure IN parameters
- Is
Metric boolService Enabled - (Updatable) Indicates if Metric Service is enabled on server domain
- Jmx
Attributes string - (Updatable) List of JMX attributes or Metric Service Table columns separated by semi-colon
- Managed
Bean stringQuery - (Updatable) JMX Managed Bean Query or Metric Service Table name
- Out
Param MetricDetails Extension Query Properties Out Param Details - (Updatable) Position and SQL Type of PL/SQL OUT parameter
- Script
Details MetricExtension Query Properties Script Details - (Updatable) Script details applicable to any OS Command based Metric Extension which needs to run a script to collect data
- Sql
Details MetricExtension Query Properties Sql Details - (Updatable) Details of Sql content which needs to execute to collect Metric Extension data
- Sql
Type string - (Updatable) Type of SQL data collection method i.e. either a Statement or SQL Script File
- Starts
With string - (Updatable) String prefix used to identify metric output of the OS Command
- Collection
Method string - (Updatable) Type of possible collection methods.
- Arguments string
- (Updatable) Arguments required by either command or script
- Auto
Row stringPrefix - (Updatable) Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
- Command string
- (Updatable) OS command to execute without arguments
- Delimiter string
- (Updatable) Character used to delimit multiple metric values in single line of output
- Identity
Metric string - (Updatable) Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
- In
Param []MetricDetails Extension Query Properties In Param Detail - (Updatable) List of values and position of PL/SQL procedure IN parameters
- Is
Metric boolService Enabled - (Updatable) Indicates if Metric Service is enabled on server domain
- Jmx
Attributes string - (Updatable) List of JMX attributes or Metric Service Table columns separated by semi-colon
- Managed
Bean stringQuery - (Updatable) JMX Managed Bean Query or Metric Service Table name
- Out
Param MetricDetails Extension Query Properties Out Param Details - (Updatable) Position and SQL Type of PL/SQL OUT parameter
- Script
Details MetricExtension Query Properties Script Details - (Updatable) Script details applicable to any OS Command based Metric Extension which needs to run a script to collect data
- Sql
Details MetricExtension Query Properties Sql Details - (Updatable) Details of Sql content which needs to execute to collect Metric Extension data
- Sql
Type string - (Updatable) Type of SQL data collection method i.e. either a Statement or SQL Script File
- Starts
With string - (Updatable) String prefix used to identify metric output of the OS Command
- collection
Method String - (Updatable) Type of possible collection methods.
- arguments String
- (Updatable) Arguments required by either command or script
- auto
Row StringPrefix - (Updatable) Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
- command String
- (Updatable) OS command to execute without arguments
- delimiter String
- (Updatable) Character used to delimit multiple metric values in single line of output
- identity
Metric String - (Updatable) Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
- in
Param List<MetricDetails Extension Query Properties In Param Detail> - (Updatable) List of values and position of PL/SQL procedure IN parameters
- is
Metric BooleanService Enabled - (Updatable) Indicates if Metric Service is enabled on server domain
- jmx
Attributes String - (Updatable) List of JMX attributes or Metric Service Table columns separated by semi-colon
- managed
Bean StringQuery - (Updatable) JMX Managed Bean Query or Metric Service Table name
- out
Param MetricDetails Extension Query Properties Out Param Details - (Updatable) Position and SQL Type of PL/SQL OUT parameter
- script
Details MetricExtension Query Properties Script Details - (Updatable) Script details applicable to any OS Command based Metric Extension which needs to run a script to collect data
- sql
Details MetricExtension Query Properties Sql Details - (Updatable) Details of Sql content which needs to execute to collect Metric Extension data
- sql
Type String - (Updatable) Type of SQL data collection method i.e. either a Statement or SQL Script File
- starts
With String - (Updatable) String prefix used to identify metric output of the OS Command
- collection
Method string - (Updatable) Type of possible collection methods.
- arguments string
- (Updatable) Arguments required by either command or script
- auto
Row stringPrefix - (Updatable) Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
- command string
- (Updatable) OS command to execute without arguments
- delimiter string
- (Updatable) Character used to delimit multiple metric values in single line of output
- identity
Metric string - (Updatable) Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
- in
Param MetricDetails Extension Query Properties In Param Detail[] - (Updatable) List of values and position of PL/SQL procedure IN parameters
- is
Metric booleanService Enabled - (Updatable) Indicates if Metric Service is enabled on server domain
- jmx
Attributes string - (Updatable) List of JMX attributes or Metric Service Table columns separated by semi-colon
- managed
Bean stringQuery - (Updatable) JMX Managed Bean Query or Metric Service Table name
- out
Param MetricDetails Extension Query Properties Out Param Details - (Updatable) Position and SQL Type of PL/SQL OUT parameter
- script
Details MetricExtension Query Properties Script Details - (Updatable) Script details applicable to any OS Command based Metric Extension which needs to run a script to collect data
- sql
Details MetricExtension Query Properties Sql Details - (Updatable) Details of Sql content which needs to execute to collect Metric Extension data
- sql
Type string - (Updatable) Type of SQL data collection method i.e. either a Statement or SQL Script File
- starts
With string - (Updatable) String prefix used to identify metric output of the OS Command
- collection_
method str - (Updatable) Type of possible collection methods.
- arguments str
- (Updatable) Arguments required by either command or script
- auto_
row_ strprefix - (Updatable) Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
- command str
- (Updatable) OS command to execute without arguments
- delimiter str
- (Updatable) Character used to delimit multiple metric values in single line of output
- identity_
metric str - (Updatable) Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
- in_
param_ Sequence[stackmonitoring.details Metric Extension Query Properties In Param Detail] - (Updatable) List of values and position of PL/SQL procedure IN parameters
- is_
metric_ boolservice_ enabled - (Updatable) Indicates if Metric Service is enabled on server domain
- jmx_
attributes str - (Updatable) List of JMX attributes or Metric Service Table columns separated by semi-colon
- managed_
bean_ strquery - (Updatable) JMX Managed Bean Query or Metric Service Table name
- out_
param_ stackmonitoring.details Metric Extension Query Properties Out Param Details - (Updatable) Position and SQL Type of PL/SQL OUT parameter
- script_
details stackmonitoring.Metric Extension Query Properties Script Details - (Updatable) Script details applicable to any OS Command based Metric Extension which needs to run a script to collect data
- sql_
details stackmonitoring.Metric Extension Query Properties Sql Details - (Updatable) Details of Sql content which needs to execute to collect Metric Extension data
- sql_
type str - (Updatable) Type of SQL data collection method i.e. either a Statement or SQL Script File
- starts_
with str - (Updatable) String prefix used to identify metric output of the OS Command
- collection
Method String - (Updatable) Type of possible collection methods.
- arguments String
- (Updatable) Arguments required by either command or script
- auto
Row StringPrefix - (Updatable) Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
- command String
- (Updatable) OS command to execute without arguments
- delimiter String
- (Updatable) Character used to delimit multiple metric values in single line of output
- identity
Metric String - (Updatable) Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
- in
Param List<Property Map>Details - (Updatable) List of values and position of PL/SQL procedure IN parameters
- is
Metric BooleanService Enabled - (Updatable) Indicates if Metric Service is enabled on server domain
- jmx
Attributes String - (Updatable) List of JMX attributes or Metric Service Table columns separated by semi-colon
- managed
Bean StringQuery - (Updatable) JMX Managed Bean Query or Metric Service Table name
- out
Param Property MapDetails - (Updatable) Position and SQL Type of PL/SQL OUT parameter
- script
Details Property Map - (Updatable) Script details applicable to any OS Command based Metric Extension which needs to run a script to collect data
- sql
Details Property Map - (Updatable) Details of Sql content which needs to execute to collect Metric Extension data
- sql
Type String - (Updatable) Type of SQL data collection method i.e. either a Statement or SQL Script File
- starts
With String - (Updatable) String prefix used to identify metric output of the OS Command
MetricExtensionQueryPropertiesInParamDetail, MetricExtensionQueryPropertiesInParamDetailArgs
- In
Param intPosition - (Updatable) Position of IN parameter
- In
Param stringValue - (Updatable) Value of IN parameter
- In
Param intPosition - (Updatable) Position of IN parameter
- In
Param stringValue - (Updatable) Value of IN parameter
- in
Param IntegerPosition - (Updatable) Position of IN parameter
- in
Param StringValue - (Updatable) Value of IN parameter
- in
Param numberPosition - (Updatable) Position of IN parameter
- in
Param stringValue - (Updatable) Value of IN parameter
- in_
param_ intposition - (Updatable) Position of IN parameter
- in_
param_ strvalue - (Updatable) Value of IN parameter
- in
Param NumberPosition - (Updatable) Position of IN parameter
- in
Param StringValue - (Updatable) Value of IN parameter
MetricExtensionQueryPropertiesOutParamDetails, MetricExtensionQueryPropertiesOutParamDetailsArgs
- Out
Param intPosition - (Updatable) Position of PL/SQL procedure OUT parameter
- Out
Param stringType - (Updatable) SQL Type of PL/SQL procedure OUT parameter
- Out
Param intPosition - (Updatable) Position of PL/SQL procedure OUT parameter
- Out
Param stringType - (Updatable) SQL Type of PL/SQL procedure OUT parameter
- out
Param IntegerPosition - (Updatable) Position of PL/SQL procedure OUT parameter
- out
Param StringType - (Updatable) SQL Type of PL/SQL procedure OUT parameter
- out
Param numberPosition - (Updatable) Position of PL/SQL procedure OUT parameter
- out
Param stringType - (Updatable) SQL Type of PL/SQL procedure OUT parameter
- out_
param_ intposition - (Updatable) Position of PL/SQL procedure OUT parameter
- out_
param_ strtype - (Updatable) SQL Type of PL/SQL procedure OUT parameter
- out
Param NumberPosition - (Updatable) Position of PL/SQL procedure OUT parameter
- out
Param StringType - (Updatable) SQL Type of PL/SQL procedure OUT parameter
MetricExtensionQueryPropertiesScriptDetails, MetricExtensionQueryPropertiesScriptDetailsArgs
MetricExtensionQueryPropertiesSqlDetails, MetricExtensionQueryPropertiesSqlDetailsArgs
- Content string
- (Updatable) Sql statement or script file content as base64 encoded string
- Script
File stringName - (Updatable) If a script needs to be executed, then provide file name of the script
- Content string
- (Updatable) Sql statement or script file content as base64 encoded string
- Script
File stringName - (Updatable) If a script needs to be executed, then provide file name of the script
- content String
- (Updatable) Sql statement or script file content as base64 encoded string
- script
File StringName - (Updatable) If a script needs to be executed, then provide file name of the script
- content string
- (Updatable) Sql statement or script file content as base64 encoded string
- script
File stringName - (Updatable) If a script needs to be executed, then provide file name of the script
- content str
- (Updatable) Sql statement or script file content as base64 encoded string
- script_
file_ strname - (Updatable) If a script needs to be executed, then provide file name of the script
- content String
- (Updatable) Sql statement or script file content as base64 encoded string
- script
File StringName - (Updatable) If a script needs to be executed, then provide file name of the script
Import
MetricExtensions can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/metricExtension:MetricExtension test_metric_extension "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.