1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getMetricExtensions
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.StackMonitoring.getMetricExtensions

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Metric Extensions in Oracle Cloud Infrastructure Stack Monitoring service.

Returns a list of metric extensions

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMetricExtensions = oci.StackMonitoring.getMetricExtensions({
    compartmentId: compartmentId,
    enabledOnResourceId: testResource.id,
    metricExtensionId: testMetricExtension.id,
    name: metricExtensionName,
    resourceType: metricExtensionResourceType,
    state: metricExtensionState,
    status: metricExtensionStatus,
});
Copy
import pulumi
import pulumi_oci as oci

test_metric_extensions = oci.StackMonitoring.get_metric_extensions(compartment_id=compartment_id,
    enabled_on_resource_id=test_resource["id"],
    metric_extension_id=test_metric_extension["id"],
    name=metric_extension_name,
    resource_type=metric_extension_resource_type,
    state=metric_extension_state,
    status=metric_extension_status)
Copy
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.GetMetricExtensions(ctx, &stackmonitoring.GetMetricExtensionsArgs{
			CompartmentId:       pulumi.StringRef(compartmentId),
			EnabledOnResourceId: pulumi.StringRef(testResource.Id),
			MetricExtensionId:   pulumi.StringRef(testMetricExtension.Id),
			Name:                pulumi.StringRef(metricExtensionName),
			ResourceType:        pulumi.StringRef(metricExtensionResourceType),
			State:               pulumi.StringRef(metricExtensionState),
			Status:              pulumi.StringRef(metricExtensionStatus),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testMetricExtensions = Oci.StackMonitoring.GetMetricExtensions.Invoke(new()
    {
        CompartmentId = compartmentId,
        EnabledOnResourceId = testResource.Id,
        MetricExtensionId = testMetricExtension.Id,
        Name = metricExtensionName,
        ResourceType = metricExtensionResourceType,
        State = metricExtensionState,
        Status = metricExtensionStatus,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
import com.pulumi.oci.StackMonitoring.inputs.GetMetricExtensionsArgs;
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) {
        final var testMetricExtensions = StackMonitoringFunctions.getMetricExtensions(GetMetricExtensionsArgs.builder()
            .compartmentId(compartmentId)
            .enabledOnResourceId(testResource.id())
            .metricExtensionId(testMetricExtension.id())
            .name(metricExtensionName)
            .resourceType(metricExtensionResourceType)
            .state(metricExtensionState)
            .status(metricExtensionStatus)
            .build());

    }
}
Copy
variables:
  testMetricExtensions:
    fn::invoke:
      function: oci:StackMonitoring:getMetricExtensions
      arguments:
        compartmentId: ${compartmentId}
        enabledOnResourceId: ${testResource.id}
        metricExtensionId: ${testMetricExtension.id}
        name: ${metricExtensionName}
        resourceType: ${metricExtensionResourceType}
        state: ${metricExtensionState}
        status: ${metricExtensionStatus}
Copy

Using getMetricExtensions

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMetricExtensions(args: GetMetricExtensionsArgs, opts?: InvokeOptions): Promise<GetMetricExtensionsResult>
function getMetricExtensionsOutput(args: GetMetricExtensionsOutputArgs, opts?: InvokeOptions): Output<GetMetricExtensionsResult>
Copy
def get_metric_extensions(compartment_id: Optional[str] = None,
                          enabled_on_resource_id: Optional[str] = None,
                          filters: Optional[Sequence[_stackmonitoring.GetMetricExtensionsFilter]] = None,
                          metric_extension_id: Optional[str] = None,
                          name: Optional[str] = None,
                          resource_type: Optional[str] = None,
                          state: Optional[str] = None,
                          status: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetMetricExtensionsResult
def get_metric_extensions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          enabled_on_resource_id: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_stackmonitoring.GetMetricExtensionsFilterArgs]]]] = None,
                          metric_extension_id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          resource_type: Optional[pulumi.Input[str]] = None,
                          state: Optional[pulumi.Input[str]] = None,
                          status: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetMetricExtensionsResult]
Copy
func GetMetricExtensions(ctx *Context, args *GetMetricExtensionsArgs, opts ...InvokeOption) (*GetMetricExtensionsResult, error)
func GetMetricExtensionsOutput(ctx *Context, args *GetMetricExtensionsOutputArgs, opts ...InvokeOption) GetMetricExtensionsResultOutput
Copy

> Note: This function is named GetMetricExtensions in the Go SDK.

public static class GetMetricExtensions 
{
    public static Task<GetMetricExtensionsResult> InvokeAsync(GetMetricExtensionsArgs args, InvokeOptions? opts = null)
    public static Output<GetMetricExtensionsResult> Invoke(GetMetricExtensionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMetricExtensionsResult> getMetricExtensions(GetMetricExtensionsArgs args, InvokeOptions options)
public static Output<GetMetricExtensionsResult> getMetricExtensions(GetMetricExtensionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:StackMonitoring/getMetricExtensions:getMetricExtensions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId string
The ID of the compartment in which data is listed.
EnabledOnResourceId string
A filter to return metric extensions based on input resource Id on which metric extension is enabled
Filters Changes to this property will trigger replacement. List<GetMetricExtensionsFilter>
MetricExtensionId string
Identifier for the metric extension
Name string
A filter to return resources based on name.
ResourceType string
A filter to return resources based on resource type.
State string
A filter to return metric extensions based on Lifecycle State
Status string
A filter to return resources based on status e.g. Draft or Published
CompartmentId string
The ID of the compartment in which data is listed.
EnabledOnResourceId string
A filter to return metric extensions based on input resource Id on which metric extension is enabled
Filters Changes to this property will trigger replacement. []GetMetricExtensionsFilter
MetricExtensionId string
Identifier for the metric extension
Name string
A filter to return resources based on name.
ResourceType string
A filter to return resources based on resource type.
State string
A filter to return metric extensions based on Lifecycle State
Status string
A filter to return resources based on status e.g. Draft or Published
compartmentId String
The ID of the compartment in which data is listed.
enabledOnResourceId String
A filter to return metric extensions based on input resource Id on which metric extension is enabled
filters Changes to this property will trigger replacement. List<GetMetricExtensionsFilter>
metricExtensionId String
Identifier for the metric extension
name String
A filter to return resources based on name.
resourceType String
A filter to return resources based on resource type.
state String
A filter to return metric extensions based on Lifecycle State
status String
A filter to return resources based on status e.g. Draft or Published
compartmentId string
The ID of the compartment in which data is listed.
enabledOnResourceId string
A filter to return metric extensions based on input resource Id on which metric extension is enabled
filters Changes to this property will trigger replacement. GetMetricExtensionsFilter[]
metricExtensionId string
Identifier for the metric extension
name string
A filter to return resources based on name.
resourceType string
A filter to return resources based on resource type.
state string
A filter to return metric extensions based on Lifecycle State
status string
A filter to return resources based on status e.g. Draft or Published
compartment_id str
The ID of the compartment in which data is listed.
enabled_on_resource_id str
A filter to return metric extensions based on input resource Id on which metric extension is enabled
filters Changes to this property will trigger replacement. Sequence[stackmonitoring.GetMetricExtensionsFilter]
metric_extension_id str
Identifier for the metric extension
name str
A filter to return resources based on name.
resource_type str
A filter to return resources based on resource type.
state str
A filter to return metric extensions based on Lifecycle State
status str
A filter to return resources based on status e.g. Draft or Published
compartmentId String
The ID of the compartment in which data is listed.
enabledOnResourceId String
A filter to return metric extensions based on input resource Id on which metric extension is enabled
filters Changes to this property will trigger replacement. List<Property Map>
metricExtensionId String
Identifier for the metric extension
name String
A filter to return resources based on name.
resourceType String
A filter to return resources based on resource type.
state String
A filter to return metric extensions based on Lifecycle State
status String
A filter to return resources based on status e.g. Draft or Published

getMetricExtensions Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
MetricExtensionCollections List<GetMetricExtensionsMetricExtensionCollection>
The list of metric_extension_collection.
CompartmentId string
Compartment Identifier OCID
EnabledOnResourceId string
Filters List<GetMetricExtensionsFilter>
MetricExtensionId string
Name string
Name of the script file
ResourceType string
Resource type to which Metric Extension applies
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
Id string
The provider-assigned unique ID for this managed resource.
MetricExtensionCollections []GetMetricExtensionsMetricExtensionCollection
The list of metric_extension_collection.
CompartmentId string
Compartment Identifier OCID
EnabledOnResourceId string
Filters []GetMetricExtensionsFilter
MetricExtensionId string
Name string
Name of the script file
ResourceType string
Resource type to which Metric Extension applies
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
id String
The provider-assigned unique ID for this managed resource.
metricExtensionCollections List<GetMetricExtensionsMetricExtensionCollection>
The list of metric_extension_collection.
compartmentId String
Compartment Identifier OCID
enabledOnResourceId String
filters List<GetMetricExtensionsFilter>
metricExtensionId String
name String
Name of the script file
resourceType String
Resource type to which Metric Extension applies
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
id string
The provider-assigned unique ID for this managed resource.
metricExtensionCollections GetMetricExtensionsMetricExtensionCollection[]
The list of metric_extension_collection.
compartmentId string
Compartment Identifier OCID
enabledOnResourceId string
filters GetMetricExtensionsFilter[]
metricExtensionId string
name string
Name of the script file
resourceType string
Resource type to which Metric Extension applies
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
id str
The provider-assigned unique ID for this managed resource.
metric_extension_collections Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollection]
The list of metric_extension_collection.
compartment_id str
Compartment Identifier OCID
enabled_on_resource_id str
filters Sequence[stackmonitoring.GetMetricExtensionsFilter]
metric_extension_id str
name str
Name of the script file
resource_type str
Resource type to which Metric Extension applies
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
id String
The provider-assigned unique ID for this managed resource.
metricExtensionCollections List<Property Map>
The list of metric_extension_collection.
compartmentId String
Compartment Identifier OCID
enabledOnResourceId String
filters List<Property Map>
metricExtensionId String
name String
Name of the script file
resourceType String
Resource type to which Metric Extension applies
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

Supporting Types

GetMetricExtensionsFilter

Name This property is required. string
A filter to return resources based on name.
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter to return resources based on name.
Values This property is required. []string
Regex bool
name This property is required. String
A filter to return resources based on name.
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter to return resources based on name.
values This property is required. string[]
regex boolean
name This property is required. str
A filter to return resources based on name.
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter to return resources based on name.
values This property is required. List<String>
regex Boolean

GetMetricExtensionsMetricExtensionCollection

items This property is required. List<Property Map>

GetMetricExtensionsMetricExtensionCollectionItem

CollectionMethod This property is required. string
Type of possible collection methods.
CollectionRecurrences This property is required. string
Schedule of metric extension should use RFC 5545 format > 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
CompartmentId This property is required. string
The ID of the compartment in which data is listed.
CreatedBy This property is required. string
Created by user
Description This property is required. string
Description of the metric extension.
DisplayName This property is required. string
Display name of the metric.
EnabledOnResources This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemEnabledOnResource>
List of resource details objects having resourceIds on which this metric extension is enabled.
EnabledOnResourcesCount This property is required. int
Count of resources on which this metric extension is enabled.
Id This property is required. string
The OCID of Metric Extension resource
LastUpdatedBy This property is required. string
Last updated by user
MetricLists This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemMetricList>
List of metrics which are part of this metric extension
Name This property is required. string
A filter to return resources based on name.
PublishTrigger This property is required. bool
QueryProperties This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryProperty>
Collection method and query properties details of metric extension
ResourceType This property is required. string
A filter to return resources based on resource type.
ResourceUri This property is required. string
The URI path that the user can do a GET on to access the metric extension metadata
State This property is required. string
A filter to return metric extensions based on Lifecycle State
Status This property is required. string
A filter to return resources based on status e.g. Draft or Published
TenantId This property is required. string
Tenant Identifier OCID
TimeCreated This property is required. string
Metric Extension creation time. An RFC3339 formatted datetime string.
TimeUpdated This property is required. string
Metric Extension update time. An RFC3339 formatted datetime string.
CollectionMethod This property is required. string
Type of possible collection methods.
CollectionRecurrences This property is required. string
Schedule of metric extension should use RFC 5545 format > 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
CompartmentId This property is required. string
The ID of the compartment in which data is listed.
CreatedBy This property is required. string
Created by user
Description This property is required. string
Description of the metric extension.
DisplayName This property is required. string
Display name of the metric.
EnabledOnResources This property is required. []GetMetricExtensionsMetricExtensionCollectionItemEnabledOnResource
List of resource details objects having resourceIds on which this metric extension is enabled.
EnabledOnResourcesCount This property is required. int
Count of resources on which this metric extension is enabled.
Id This property is required. string
The OCID of Metric Extension resource
LastUpdatedBy This property is required. string
Last updated by user
MetricLists This property is required. []GetMetricExtensionsMetricExtensionCollectionItemMetricList
List of metrics which are part of this metric extension
Name This property is required. string
A filter to return resources based on name.
PublishTrigger This property is required. bool
QueryProperties This property is required. []GetMetricExtensionsMetricExtensionCollectionItemQueryProperty
Collection method and query properties details of metric extension
ResourceType This property is required. string
A filter to return resources based on resource type.
ResourceUri This property is required. string
The URI path that the user can do a GET on to access the metric extension metadata
State This property is required. string
A filter to return metric extensions based on Lifecycle State
Status This property is required. string
A filter to return resources based on status e.g. Draft or Published
TenantId This property is required. string
Tenant Identifier OCID
TimeCreated This property is required. string
Metric Extension creation time. An RFC3339 formatted datetime string.
TimeUpdated This property is required. string
Metric Extension update time. An RFC3339 formatted datetime string.
collectionMethod This property is required. String
Type of possible collection methods.
collectionRecurrences This property is required. String
Schedule of metric extension should use RFC 5545 format > 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
compartmentId This property is required. String
The ID of the compartment in which data is listed.
createdBy This property is required. String
Created by user
description This property is required. String
Description of the metric extension.
displayName This property is required. String
Display name of the metric.
enabledOnResources This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemEnabledOnResource>
List of resource details objects having resourceIds on which this metric extension is enabled.
enabledOnResourcesCount This property is required. Integer
Count of resources on which this metric extension is enabled.
id This property is required. String
The OCID of Metric Extension resource
lastUpdatedBy This property is required. String
Last updated by user
metricLists This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemMetricList>
List of metrics which are part of this metric extension
name This property is required. String
A filter to return resources based on name.
publishTrigger This property is required. Boolean
queryProperties This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryProperty>
Collection method and query properties details of metric extension
resourceType This property is required. String
A filter to return resources based on resource type.
resourceUri This property is required. String
The URI path that the user can do a GET on to access the metric extension metadata
state This property is required. String
A filter to return metric extensions based on Lifecycle State
status This property is required. String
A filter to return resources based on status e.g. Draft or Published
tenantId This property is required. String
Tenant Identifier OCID
timeCreated This property is required. String
Metric Extension creation time. An RFC3339 formatted datetime string.
timeUpdated This property is required. String
Metric Extension update time. An RFC3339 formatted datetime string.
collectionMethod This property is required. string
Type of possible collection methods.
collectionRecurrences This property is required. string
Schedule of metric extension should use RFC 5545 format > 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
compartmentId This property is required. string
The ID of the compartment in which data is listed.
createdBy This property is required. string
Created by user
description This property is required. string
Description of the metric extension.
displayName This property is required. string
Display name of the metric.
enabledOnResources This property is required. GetMetricExtensionsMetricExtensionCollectionItemEnabledOnResource[]
List of resource details objects having resourceIds on which this metric extension is enabled.
enabledOnResourcesCount This property is required. number
Count of resources on which this metric extension is enabled.
id This property is required. string
The OCID of Metric Extension resource
lastUpdatedBy This property is required. string
Last updated by user
metricLists This property is required. GetMetricExtensionsMetricExtensionCollectionItemMetricList[]
List of metrics which are part of this metric extension
name This property is required. string
A filter to return resources based on name.
publishTrigger This property is required. boolean
queryProperties This property is required. GetMetricExtensionsMetricExtensionCollectionItemQueryProperty[]
Collection method and query properties details of metric extension
resourceType This property is required. string
A filter to return resources based on resource type.
resourceUri This property is required. string
The URI path that the user can do a GET on to access the metric extension metadata
state This property is required. string
A filter to return metric extensions based on Lifecycle State
status This property is required. string
A filter to return resources based on status e.g. Draft or Published
tenantId This property is required. string
Tenant Identifier OCID
timeCreated This property is required. string
Metric Extension creation time. An RFC3339 formatted datetime string.
timeUpdated This property is required. string
Metric Extension update time. An RFC3339 formatted datetime string.
collection_method This property is required. str
Type of possible collection methods.
collection_recurrences This property is required. str
Schedule of metric extension should use RFC 5545 format > 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 This property is required. str
The ID of the compartment in which data is listed.
created_by This property is required. str
Created by user
description This property is required. str
Description of the metric extension.
display_name This property is required. str
Display name of the metric.
enabled_on_resources This property is required. Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollectionItemEnabledOnResource]
List of resource details objects having resourceIds on which this metric extension is enabled.
enabled_on_resources_count This property is required. int
Count of resources on which this metric extension is enabled.
id This property is required. str
The OCID of Metric Extension resource
last_updated_by This property is required. str
Last updated by user
metric_lists This property is required. Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollectionItemMetricList]
List of metrics which are part of this metric extension
name This property is required. str
A filter to return resources based on name.
publish_trigger This property is required. bool
query_properties This property is required. Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollectionItemQueryProperty]
Collection method and query properties details of metric extension
resource_type This property is required. str
A filter to return resources based on resource type.
resource_uri This property is required. str
The URI path that the user can do a GET on to access the metric extension metadata
state This property is required. str
A filter to return metric extensions based on Lifecycle State
status This property is required. str
A filter to return resources based on status e.g. Draft or Published
tenant_id This property is required. str
Tenant Identifier OCID
time_created This property is required. str
Metric Extension creation time. An RFC3339 formatted datetime string.
time_updated This property is required. str
Metric Extension update time. An RFC3339 formatted datetime string.
collectionMethod This property is required. String
Type of possible collection methods.
collectionRecurrences This property is required. String
Schedule of metric extension should use RFC 5545 format > 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
compartmentId This property is required. String
The ID of the compartment in which data is listed.
createdBy This property is required. String
Created by user
description This property is required. String
Description of the metric extension.
displayName This property is required. String
Display name of the metric.
enabledOnResources This property is required. List<Property Map>
List of resource details objects having resourceIds on which this metric extension is enabled.
enabledOnResourcesCount This property is required. Number
Count of resources on which this metric extension is enabled.
id This property is required. String
The OCID of Metric Extension resource
lastUpdatedBy This property is required. String
Last updated by user
metricLists This property is required. List<Property Map>
List of metrics which are part of this metric extension
name This property is required. String
A filter to return resources based on name.
publishTrigger This property is required. Boolean
queryProperties This property is required. List<Property Map>
Collection method and query properties details of metric extension
resourceType This property is required. String
A filter to return resources based on resource type.
resourceUri This property is required. String
The URI path that the user can do a GET on to access the metric extension metadata
state This property is required. String
A filter to return metric extensions based on Lifecycle State
status This property is required. String
A filter to return resources based on status e.g. Draft or Published
tenantId This property is required. String
Tenant Identifier OCID
timeCreated This property is required. String
Metric Extension creation time. An RFC3339 formatted datetime string.
timeUpdated This property is required. String
Metric Extension update time. An RFC3339 formatted datetime string.

GetMetricExtensionsMetricExtensionCollectionItemEnabledOnResource

ResourceId This property is required. string
The OCID of the resource on which Metric Extension is enabled
ResourceId This property is required. string
The OCID of the resource on which Metric Extension is enabled
resourceId This property is required. String
The OCID of the resource on which Metric Extension is enabled
resourceId This property is required. string
The OCID of the resource on which Metric Extension is enabled
resource_id This property is required. str
The OCID of the resource on which Metric Extension is enabled
resourceId This property is required. String
The OCID of the resource on which Metric Extension is enabled

GetMetricExtensionsMetricExtensionCollectionItemMetricList

ComputeExpression This property is required. string
Compute Expression to calculate the value of this metric
DataType This property is required. string
Data type of value of this metric
DisplayName This property is required. string
Display name of the metric.
IsDimension This property is required. bool
Current metric need to be included as dimension or not
IsHidden This property is required. bool
Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
MetricCategory This property is required. string
Metric category
Name This property is required. string
A filter to return resources based on name.
Unit This property is required. string
Unit of metric value
ComputeExpression This property is required. string
Compute Expression to calculate the value of this metric
DataType This property is required. string
Data type of value of this metric
DisplayName This property is required. string
Display name of the metric.
IsDimension This property is required. bool
Current metric need to be included as dimension or not
IsHidden This property is required. bool
Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
MetricCategory This property is required. string
Metric category
Name This property is required. string
A filter to return resources based on name.
Unit This property is required. string
Unit of metric value
computeExpression This property is required. String
Compute Expression to calculate the value of this metric
dataType This property is required. String
Data type of value of this metric
displayName This property is required. String
Display name of the metric.
isDimension This property is required. Boolean
Current metric need to be included as dimension or not
isHidden This property is required. Boolean
Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
metricCategory This property is required. String
Metric category
name This property is required. String
A filter to return resources based on name.
unit This property is required. String
Unit of metric value
computeExpression This property is required. string
Compute Expression to calculate the value of this metric
dataType This property is required. string
Data type of value of this metric
displayName This property is required. string
Display name of the metric.
isDimension This property is required. boolean
Current metric need to be included as dimension or not
isHidden This property is required. boolean
Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
metricCategory This property is required. string
Metric category
name This property is required. string
A filter to return resources based on name.
unit This property is required. string
Unit of metric value
compute_expression This property is required. str
Compute Expression to calculate the value of this metric
data_type This property is required. str
Data type of value of this metric
display_name This property is required. str
Display name of the metric.
is_dimension This property is required. bool
Current metric need to be included as dimension or not
is_hidden This property is required. bool
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 This property is required. str
Metric category
name This property is required. str
A filter to return resources based on name.
unit This property is required. str
Unit of metric value
computeExpression This property is required. String
Compute Expression to calculate the value of this metric
dataType This property is required. String
Data type of value of this metric
displayName This property is required. String
Display name of the metric.
isDimension This property is required. Boolean
Current metric need to be included as dimension or not
isHidden This property is required. Boolean
Flag to marks whether a metric has to be uploaded or not. When isHidden = false > Metric is uploaded, isHidden = true > Metric is NOT uploaded
metricCategory This property is required. String
Metric category
name This property is required. String
A filter to return resources based on name.
unit This property is required. String
Unit of metric value

GetMetricExtensionsMetricExtensionCollectionItemQueryProperty

Arguments This property is required. string
Arguments required by either command or script
AutoRowPrefix This property is required. string
Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
CollectionMethod This property is required. string
Type of possible collection methods.
Command This property is required. string
OS command to execute without arguments
Delimiter This property is required. string
Character used to delimit multiple metric values in single line of output
IdentityMetric This property is required. string
Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
InParamDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyInParamDetail>
List of values and position of PL/SQL procedure IN parameters
IsMetricServiceEnabled This property is required. bool
Indicates if Metric Service is enabled on server domain
JmxAttributes This property is required. string
List of JMX attributes or Metric Service Table columns separated by semi-colon
ManagedBeanQuery This property is required. string
JMX Managed Bean Query or Metric Service Table name
OutParamDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyOutParamDetail>
Position and SQL Type of PL/SQL OUT parameter
ProtocolType This property is required. string
Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
ResponseContentType This property is required. string
Type of content response given by the http(s) URL
ScriptDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyScriptDetail>
Script details applicable to any OS Command/HTTP based Metric Extension which needs to run a script to collect data. For removing it during OS Command based Metric Extension update, set its "content" property to an empty string. In that case, "name" property value is ignored.
SqlDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertySqlDetail>
Details of Sql content which needs to execute to collect Metric Extension data
SqlType This property is required. string
Type of SQL data collection method i.e. either a Statement or SQL Script File
StartsWith This property is required. string
String prefix used to identify metric output of the OS Command
Url This property is required. string
Http(s) end point URL
Arguments This property is required. string
Arguments required by either command or script
AutoRowPrefix This property is required. string
Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
CollectionMethod This property is required. string
Type of possible collection methods.
Command This property is required. string
OS command to execute without arguments
Delimiter This property is required. string
Character used to delimit multiple metric values in single line of output
IdentityMetric This property is required. string
Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
InParamDetails This property is required. []GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyInParamDetail
List of values and position of PL/SQL procedure IN parameters
IsMetricServiceEnabled This property is required. bool
Indicates if Metric Service is enabled on server domain
JmxAttributes This property is required. string
List of JMX attributes or Metric Service Table columns separated by semi-colon
ManagedBeanQuery This property is required. string
JMX Managed Bean Query or Metric Service Table name
OutParamDetails This property is required. []GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyOutParamDetail
Position and SQL Type of PL/SQL OUT parameter
ProtocolType This property is required. string
Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
ResponseContentType This property is required. string
Type of content response given by the http(s) URL
ScriptDetails This property is required. []GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyScriptDetail
Script details applicable to any OS Command/HTTP based Metric Extension which needs to run a script to collect data. For removing it during OS Command based Metric Extension update, set its "content" property to an empty string. In that case, "name" property value is ignored.
SqlDetails This property is required. []GetMetricExtensionsMetricExtensionCollectionItemQueryPropertySqlDetail
Details of Sql content which needs to execute to collect Metric Extension data
SqlType This property is required. string
Type of SQL data collection method i.e. either a Statement or SQL Script File
StartsWith This property is required. string
String prefix used to identify metric output of the OS Command
Url This property is required. string
Http(s) end point URL
arguments This property is required. String
Arguments required by either command or script
autoRowPrefix This property is required. String
Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
collectionMethod This property is required. String
Type of possible collection methods.
command This property is required. String
OS command to execute without arguments
delimiter This property is required. String
Character used to delimit multiple metric values in single line of output
identityMetric This property is required. String
Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
inParamDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyInParamDetail>
List of values and position of PL/SQL procedure IN parameters
isMetricServiceEnabled This property is required. Boolean
Indicates if Metric Service is enabled on server domain
jmxAttributes This property is required. String
List of JMX attributes or Metric Service Table columns separated by semi-colon
managedBeanQuery This property is required. String
JMX Managed Bean Query or Metric Service Table name
outParamDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyOutParamDetail>
Position and SQL Type of PL/SQL OUT parameter
protocolType This property is required. String
Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
responseContentType This property is required. String
Type of content response given by the http(s) URL
scriptDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyScriptDetail>
Script details applicable to any OS Command/HTTP based Metric Extension which needs to run a script to collect data. For removing it during OS Command based Metric Extension update, set its "content" property to an empty string. In that case, "name" property value is ignored.
sqlDetails This property is required. List<GetMetricExtensionsMetricExtensionCollectionItemQueryPropertySqlDetail>
Details of Sql content which needs to execute to collect Metric Extension data
sqlType This property is required. String
Type of SQL data collection method i.e. either a Statement or SQL Script File
startsWith This property is required. String
String prefix used to identify metric output of the OS Command
url This property is required. String
Http(s) end point URL
arguments This property is required. string
Arguments required by either command or script
autoRowPrefix This property is required. string
Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
collectionMethod This property is required. string
Type of possible collection methods.
command This property is required. string
OS command to execute without arguments
delimiter This property is required. string
Character used to delimit multiple metric values in single line of output
identityMetric This property is required. string
Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
inParamDetails This property is required. GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyInParamDetail[]
List of values and position of PL/SQL procedure IN parameters
isMetricServiceEnabled This property is required. boolean
Indicates if Metric Service is enabled on server domain
jmxAttributes This property is required. string
List of JMX attributes or Metric Service Table columns separated by semi-colon
managedBeanQuery This property is required. string
JMX Managed Bean Query or Metric Service Table name
outParamDetails This property is required. GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyOutParamDetail[]
Position and SQL Type of PL/SQL OUT parameter
protocolType This property is required. string
Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
responseContentType This property is required. string
Type of content response given by the http(s) URL
scriptDetails This property is required. GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyScriptDetail[]
Script details applicable to any OS Command/HTTP based Metric Extension which needs to run a script to collect data. For removing it during OS Command based Metric Extension update, set its "content" property to an empty string. In that case, "name" property value is ignored.
sqlDetails This property is required. GetMetricExtensionsMetricExtensionCollectionItemQueryPropertySqlDetail[]
Details of Sql content which needs to execute to collect Metric Extension data
sqlType This property is required. string
Type of SQL data collection method i.e. either a Statement or SQL Script File
startsWith This property is required. string
String prefix used to identify metric output of the OS Command
url This property is required. string
Http(s) end point URL
arguments This property is required. str
Arguments required by either command or script
auto_row_prefix This property is required. str
Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
collection_method This property is required. str
Type of possible collection methods.
command This property is required. str
OS command to execute without arguments
delimiter This property is required. str
Character used to delimit multiple metric values in single line of output
identity_metric This property is required. str
Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
in_param_details This property is required. Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyInParamDetail]
List of values and position of PL/SQL procedure IN parameters
is_metric_service_enabled This property is required. bool
Indicates if Metric Service is enabled on server domain
jmx_attributes This property is required. str
List of JMX attributes or Metric Service Table columns separated by semi-colon
managed_bean_query This property is required. str
JMX Managed Bean Query or Metric Service Table name
out_param_details This property is required. Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyOutParamDetail]
Position and SQL Type of PL/SQL OUT parameter
protocol_type This property is required. str
Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
response_content_type This property is required. str
Type of content response given by the http(s) URL
script_details This property is required. Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyScriptDetail]
Script details applicable to any OS Command/HTTP based Metric Extension which needs to run a script to collect data. For removing it during OS Command based Metric Extension update, set its "content" property to an empty string. In that case, "name" property value is ignored.
sql_details This property is required. Sequence[stackmonitoring.GetMetricExtensionsMetricExtensionCollectionItemQueryPropertySqlDetail]
Details of Sql content which needs to execute to collect Metric Extension data
sql_type This property is required. str
Type of SQL data collection method i.e. either a Statement or SQL Script File
starts_with This property is required. str
String prefix used to identify metric output of the OS Command
url This property is required. str
Http(s) end point URL
arguments This property is required. String
Arguments required by either command or script
autoRowPrefix This property is required. String
Prefix for an auto generated metric, in case multiple rows with non unique key values are returned
collectionMethod This property is required. String
Type of possible collection methods.
command This property is required. String
OS command to execute without arguments
delimiter This property is required. String
Character used to delimit multiple metric values in single line of output
identityMetric This property is required. String
Semi-colon separated list of key properties from Managed Bean ObjectName to be used as key metrics
inParamDetails This property is required. List<Property Map>
List of values and position of PL/SQL procedure IN parameters
isMetricServiceEnabled This property is required. Boolean
Indicates if Metric Service is enabled on server domain
jmxAttributes This property is required. String
List of JMX attributes or Metric Service Table columns separated by semi-colon
managedBeanQuery This property is required. String
JMX Managed Bean Query or Metric Service Table name
outParamDetails This property is required. List<Property Map>
Position and SQL Type of PL/SQL OUT parameter
protocolType This property is required. String
Supported protocol of resources to be associated with this metric extension. This is optional and defaults to HTTPS, which uses secure connection to the URL
responseContentType This property is required. String
Type of content response given by the http(s) URL
scriptDetails This property is required. List<Property Map>
Script details applicable to any OS Command/HTTP based Metric Extension which needs to run a script to collect data. For removing it during OS Command based Metric Extension update, set its "content" property to an empty string. In that case, "name" property value is ignored.
sqlDetails This property is required. List<Property Map>
Details of Sql content which needs to execute to collect Metric Extension data
sqlType This property is required. String
Type of SQL data collection method i.e. either a Statement or SQL Script File
startsWith This property is required. String
String prefix used to identify metric output of the OS Command
url This property is required. String
Http(s) end point URL

GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyInParamDetail

InParamPosition This property is required. int
Position of IN parameter
InParamValue This property is required. string
Value of IN parameter
InParamPosition This property is required. int
Position of IN parameter
InParamValue This property is required. string
Value of IN parameter
inParamPosition This property is required. Integer
Position of IN parameter
inParamValue This property is required. String
Value of IN parameter
inParamPosition This property is required. number
Position of IN parameter
inParamValue This property is required. string
Value of IN parameter
in_param_position This property is required. int
Position of IN parameter
in_param_value This property is required. str
Value of IN parameter
inParamPosition This property is required. Number
Position of IN parameter
inParamValue This property is required. String
Value of IN parameter

GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyOutParamDetail

OutParamName This property is required. string
Name of the Out Parameter
OutParamPosition This property is required. int
Position of PL/SQL procedure OUT parameter. The value of this property is ignored during update, if "outParamType" is set to NO_OUT_PARAM value.
OutParamType This property is required. string
SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be ignored.
OutParamName This property is required. string
Name of the Out Parameter
OutParamPosition This property is required. int
Position of PL/SQL procedure OUT parameter. The value of this property is ignored during update, if "outParamType" is set to NO_OUT_PARAM value.
OutParamType This property is required. string
SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be ignored.
outParamName This property is required. String
Name of the Out Parameter
outParamPosition This property is required. Integer
Position of PL/SQL procedure OUT parameter. The value of this property is ignored during update, if "outParamType" is set to NO_OUT_PARAM value.
outParamType This property is required. String
SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be ignored.
outParamName This property is required. string
Name of the Out Parameter
outParamPosition This property is required. number
Position of PL/SQL procedure OUT parameter. The value of this property is ignored during update, if "outParamType" is set to NO_OUT_PARAM value.
outParamType This property is required. string
SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be ignored.
out_param_name This property is required. str
Name of the Out Parameter
out_param_position This property is required. int
Position of PL/SQL procedure OUT parameter. The value of this property is ignored during update, if "outParamType" is set to NO_OUT_PARAM value.
out_param_type This property is required. str
SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be ignored.
outParamName This property is required. String
Name of the Out Parameter
outParamPosition This property is required. Number
Position of PL/SQL procedure OUT parameter. The value of this property is ignored during update, if "outParamType" is set to NO_OUT_PARAM value.
outParamType This property is required. String
SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be ignored.

GetMetricExtensionsMetricExtensionCollectionItemQueryPropertyScriptDetail

Content This property is required. string
Sql statement or script file content as base64 encoded string
Name This property is required. string
A filter to return resources based on name.
Content This property is required. string
Sql statement or script file content as base64 encoded string
Name This property is required. string
A filter to return resources based on name.
content This property is required. String
Sql statement or script file content as base64 encoded string
name This property is required. String
A filter to return resources based on name.
content This property is required. string
Sql statement or script file content as base64 encoded string
name This property is required. string
A filter to return resources based on name.
content This property is required. str
Sql statement or script file content as base64 encoded string
name This property is required. str
A filter to return resources based on name.
content This property is required. String
Sql statement or script file content as base64 encoded string
name This property is required. String
A filter to return resources based on name.

GetMetricExtensionsMetricExtensionCollectionItemQueryPropertySqlDetail

Content This property is required. string
Sql statement or script file content as base64 encoded string
ScriptFileName This property is required. string
If a script needs to be executed, then provide file name of the script
Content This property is required. string
Sql statement or script file content as base64 encoded string
ScriptFileName This property is required. string
If a script needs to be executed, then provide file name of the script
content This property is required. String
Sql statement or script file content as base64 encoded string
scriptFileName This property is required. String
If a script needs to be executed, then provide file name of the script
content This property is required. string
Sql statement or script file content as base64 encoded string
scriptFileName This property is required. string
If a script needs to be executed, then provide file name of the script
content This property is required. str
Sql statement or script file content as base64 encoded string
script_file_name This property is required. str
If a script needs to be executed, then provide file name of the script
content This property is required. String
Sql statement or script file content as base64 encoded string
scriptFileName This property is required. String
If a script needs to be executed, then provide file name of the script

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi