Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi
oci.StackMonitoring.getBaselineableMetrics
Explore with Pulumi AI
This data source provides the list of Baselineable Metrics in Oracle Cloud Infrastructure Stack Monitoring service.
List of summary of baseline-able metrics for a given resource group if specified.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBaselineableMetrics = oci.StackMonitoring.getBaselineableMetrics({
baselineableMetricId: testBaselineableMetric.id,
compartmentId: compartmentId,
isOutOfBox: baselineableMetricIsOutOfBox,
metricNamespace: baselineableMetricMetricNamespace,
name: baselineableMetricName,
resourceGroup: baselineableMetricResourceGroup,
resourceType: baselineableMetricResourceType,
});
import pulumi
import pulumi_oci as oci
test_baselineable_metrics = oci.StackMonitoring.get_baselineable_metrics(baselineable_metric_id=test_baselineable_metric["id"],
compartment_id=compartment_id,
is_out_of_box=baselineable_metric_is_out_of_box,
metric_namespace=baselineable_metric_metric_namespace,
name=baselineable_metric_name,
resource_group=baselineable_metric_resource_group,
resource_type=baselineable_metric_resource_type)
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.GetBaselineableMetrics(ctx, &stackmonitoring.GetBaselineableMetricsArgs{
BaselineableMetricId: pulumi.StringRef(testBaselineableMetric.Id),
CompartmentId: pulumi.StringRef(compartmentId),
IsOutOfBox: pulumi.BoolRef(baselineableMetricIsOutOfBox),
MetricNamespace: pulumi.StringRef(baselineableMetricMetricNamespace),
Name: pulumi.StringRef(baselineableMetricName),
ResourceGroup: pulumi.StringRef(baselineableMetricResourceGroup),
ResourceType: pulumi.StringRef(baselineableMetricResourceType),
}, nil)
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 testBaselineableMetrics = Oci.StackMonitoring.GetBaselineableMetrics.Invoke(new()
{
BaselineableMetricId = testBaselineableMetric.Id,
CompartmentId = compartmentId,
IsOutOfBox = baselineableMetricIsOutOfBox,
MetricNamespace = baselineableMetricMetricNamespace,
Name = baselineableMetricName,
ResourceGroup = baselineableMetricResourceGroup,
ResourceType = baselineableMetricResourceType,
});
});
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.GetBaselineableMetricsArgs;
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 testBaselineableMetrics = StackMonitoringFunctions.getBaselineableMetrics(GetBaselineableMetricsArgs.builder()
.baselineableMetricId(testBaselineableMetric.id())
.compartmentId(compartmentId)
.isOutOfBox(baselineableMetricIsOutOfBox)
.metricNamespace(baselineableMetricMetricNamespace)
.name(baselineableMetricName)
.resourceGroup(baselineableMetricResourceGroup)
.resourceType(baselineableMetricResourceType)
.build());
}
}
variables:
testBaselineableMetrics:
fn::invoke:
function: oci:StackMonitoring:getBaselineableMetrics
arguments:
baselineableMetricId: ${testBaselineableMetric.id}
compartmentId: ${compartmentId}
isOutOfBox: ${baselineableMetricIsOutOfBox}
metricNamespace: ${baselineableMetricMetricNamespace}
name: ${baselineableMetricName}
resourceGroup: ${baselineableMetricResourceGroup}
resourceType: ${baselineableMetricResourceType}
Using getBaselineableMetrics
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 getBaselineableMetrics(args: GetBaselineableMetricsArgs, opts?: InvokeOptions): Promise<GetBaselineableMetricsResult>
function getBaselineableMetricsOutput(args: GetBaselineableMetricsOutputArgs, opts?: InvokeOptions): Output<GetBaselineableMetricsResult>
def get_baselineable_metrics(baselineable_metric_id: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[_stackmonitoring.GetBaselineableMetricsFilter]] = None,
is_out_of_box: Optional[bool] = None,
metric_namespace: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
resource_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBaselineableMetricsResult
def get_baselineable_metrics_output(baselineable_metric_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_stackmonitoring.GetBaselineableMetricsFilterArgs]]]] = None,
is_out_of_box: Optional[pulumi.Input[bool]] = None,
metric_namespace: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group: Optional[pulumi.Input[str]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBaselineableMetricsResult]
func GetBaselineableMetrics(ctx *Context, args *GetBaselineableMetricsArgs, opts ...InvokeOption) (*GetBaselineableMetricsResult, error)
func GetBaselineableMetricsOutput(ctx *Context, args *GetBaselineableMetricsOutputArgs, opts ...InvokeOption) GetBaselineableMetricsResultOutput
> Note: This function is named GetBaselineableMetrics
in the Go SDK.
public static class GetBaselineableMetrics
{
public static Task<GetBaselineableMetricsResult> InvokeAsync(GetBaselineableMetricsArgs args, InvokeOptions? opts = null)
public static Output<GetBaselineableMetricsResult> Invoke(GetBaselineableMetricsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBaselineableMetricsResult> getBaselineableMetrics(GetBaselineableMetricsArgs args, InvokeOptions options)
public static Output<GetBaselineableMetricsResult> getBaselineableMetrics(GetBaselineableMetricsArgs args, InvokeOptions options)
fn::invoke:
function: oci:StackMonitoring/getBaselineableMetrics:getBaselineableMetrics
arguments:
# arguments dictionary
The following arguments are supported:
- Baselineable
Metric stringId - Identifier for the metric
- Compartment
Id string - The ID of the compartment in which data is listed.
- Filters
Changes to this property will trigger replacement.
Baselineable Metrics Filter> - Is
Out boolOf Box - Is the baseline enabled metric defined out of box by Oracle or by end-user
- Metric
Namespace string - A filter to return monitored resource types that has the matching namespace.
- Name string
- Metric Name
- Resource
Group string - Resource Group
- Resource
Type string - Resource Type
- Baselineable
Metric stringId - Identifier for the metric
- Compartment
Id string - The ID of the compartment in which data is listed.
- Filters
Changes to this property will trigger replacement.
Baselineable Metrics Filter - Is
Out boolOf Box - Is the baseline enabled metric defined out of box by Oracle or by end-user
- Metric
Namespace string - A filter to return monitored resource types that has the matching namespace.
- Name string
- Metric Name
- Resource
Group string - Resource Group
- Resource
Type string - Resource Type
- baselineable
Metric StringId - Identifier for the metric
- compartment
Id String - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
Baselineable Metrics Filter> - is
Out BooleanOf Box - Is the baseline enabled metric defined out of box by Oracle or by end-user
- metric
Namespace String - A filter to return monitored resource types that has the matching namespace.
- name String
- Metric Name
- resource
Group String - Resource Group
- resource
Type String - Resource Type
- baselineable
Metric stringId - Identifier for the metric
- compartment
Id string - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
Baselineable Metrics Filter[] - is
Out booleanOf Box - Is the baseline enabled metric defined out of box by Oracle or by end-user
- metric
Namespace string - A filter to return monitored resource types that has the matching namespace.
- name string
- Metric Name
- resource
Group string - Resource Group
- resource
Type string - Resource Type
- baselineable_
metric_ strid - Identifier for the metric
- compartment_
id str - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
Get Baselineable Metrics Filter] - is_
out_ boolof_ box - Is the baseline enabled metric defined out of box by Oracle or by end-user
- metric_
namespace str - A filter to return monitored resource types that has the matching namespace.
- name str
- Metric Name
- resource_
group str - Resource Group
- resource_
type str - Resource Type
- baselineable
Metric StringId - Identifier for the metric
- compartment
Id String - The ID of the compartment in which data is listed.
- filters
Changes to this property will trigger replacement.
- is
Out BooleanOf Box - Is the baseline enabled metric defined out of box by Oracle or by end-user
- metric
Namespace String - A filter to return monitored resource types that has the matching namespace.
- name String
- Metric Name
- resource
Group String - Resource Group
- resource
Type String - Resource Type
getBaselineableMetrics Result
The following output properties are available:
- Baselineable
Metric List<GetSummary Collections Baselineable Metrics Baselineable Metric Summary Collection> - The list of baselineable_metric_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Baselineable
Metric stringId - Compartment
Id string - OCID of the compartment
- Filters
List<Get
Baselineable Metrics Filter> - Is
Out boolOf Box - Is the metric created out of box, default false
- Metric
Namespace string - Name string
- name of the metric
- Resource
Group string - Resource group of the metric
- Resource
Type string - Resource type of the metric
- Baselineable
Metric []GetSummary Collections Baselineable Metrics Baselineable Metric Summary Collection - The list of baselineable_metric_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Baselineable
Metric stringId - Compartment
Id string - OCID of the compartment
- Filters
[]Get
Baselineable Metrics Filter - Is
Out boolOf Box - Is the metric created out of box, default false
- Metric
Namespace string - Name string
- name of the metric
- Resource
Group string - Resource group of the metric
- Resource
Type string - Resource type of the metric
- baselineable
Metric List<GetSummary Collections Baselineable Metrics Baselineable Metric Summary Collection> - The list of baselineable_metric_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- baselineable
Metric StringId - compartment
Id String - OCID of the compartment
- filters
List<Get
Baselineable Metrics Filter> - is
Out BooleanOf Box - Is the metric created out of box, default false
- metric
Namespace String - name String
- name of the metric
- resource
Group String - Resource group of the metric
- resource
Type String - Resource type of the metric
- baselineable
Metric GetSummary Collections Baselineable Metrics Baselineable Metric Summary Collection[] - The list of baselineable_metric_summary_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- baselineable
Metric stringId - compartment
Id string - OCID of the compartment
- filters
Get
Baselineable Metrics Filter[] - is
Out booleanOf Box - Is the metric created out of box, default false
- metric
Namespace string - name string
- name of the metric
- resource
Group string - Resource group of the metric
- resource
Type string - Resource type of the metric
- baselineable_
metric_ Sequence[stackmonitoring.summary_ collections Get Baselineable Metrics Baselineable Metric Summary Collection] - The list of baselineable_metric_summary_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- baselineable_
metric_ strid - compartment_
id str - OCID of the compartment
- filters
Sequence[stackmonitoring.
Get Baselineable Metrics Filter] - is_
out_ boolof_ box - Is the metric created out of box, default false
- metric_
namespace str - name str
- name of the metric
- resource_
group str - Resource group of the metric
- resource_
type str - Resource type of the metric
- baselineable
Metric List<Property Map>Summary Collections - The list of baselineable_metric_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- baselineable
Metric StringId - compartment
Id String - OCID of the compartment
- filters List<Property Map>
- is
Out BooleanOf Box - Is the metric created out of box, default false
- metric
Namespace String - name String
- name of the metric
- resource
Group String - Resource group of the metric
- resource
Type String - Resource type of the metric
Supporting Types
GetBaselineableMetricsBaselineableMetricSummaryCollection
- Items
This property is required. List<GetBaselineable Metrics Baselineable Metric Summary Collection Item>
- Items
This property is required. []GetBaselineable Metrics Baselineable Metric Summary Collection Item
- items
This property is required. List<GetBaselineable Metrics Baselineable Metric Summary Collection Item>
- items
This property is required. GetBaselineable Metrics Baselineable Metric Summary Collection Item[]
- items
This property is required. Sequence[stackmonitoring.Get Baselineable Metrics Baselineable Metric Summary Collection Item]
- items
This property is required. List<Property Map>
GetBaselineableMetricsBaselineableMetricSummaryCollectionItem
- Column
This property is required. string - metric column name
- Compartment
Id This property is required. string - The ID of the compartment in which data is listed.
- Created
By This property is required. string - Created user id
This property is required. Dictionary<string, string>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
This property is required. Dictionary<string, string>- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id
This property is required. string - OCID of the metric
- Is
Out Of Box This property is required. bool - Is the baseline enabled metric defined out of box by Oracle or by end-user
- Last
Updated By This property is required. string - last Updated user id
- Name
This property is required. string - Metric Name
- Namespace
This property is required. string - namespace of the metric
- Resource
Group This property is required. string - Resource Group
- Resource
Type This property is required. string - Resource Type
- State
This property is required. string - The current lifecycle state of the metric extension
This property is required. Dictionary<string, string>- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenancy
Id This property is required. string - OCID of the tenancy
- Time
Created This property is required. string - creation date
- Time
Last Updated This property is required. string - last updated time
- Column
This property is required. string - metric column name
- Compartment
Id This property is required. string - The ID of the compartment in which data is listed.
- Created
By This property is required. string - Created user id
This property is required. map[string]string- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
This property is required. map[string]string- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id
This property is required. string - OCID of the metric
- Is
Out Of Box This property is required. bool - Is the baseline enabled metric defined out of box by Oracle or by end-user
- Last
Updated By This property is required. string - last Updated user id
- Name
This property is required. string - Metric Name
- Namespace
This property is required. string - namespace of the metric
- Resource
Group This property is required. string - Resource Group
- Resource
Type This property is required. string - Resource Type
- State
This property is required. string - The current lifecycle state of the metric extension
This property is required. map[string]string- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenancy
Id This property is required. string - OCID of the tenancy
- Time
Created This property is required. string - creation date
- Time
Last Updated This property is required. string - last updated time
- column
This property is required. String - metric column name
- compartment
Id This property is required. String - The ID of the compartment in which data is listed.
- created
By This property is required. String - Created user id
This property is required. Map<String,String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
This property is required. Map<String,String>- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. String - OCID of the metric
- is
Out Of Box This property is required. Boolean - Is the baseline enabled metric defined out of box by Oracle or by end-user
- last
Updated By This property is required. String - last Updated user id
- name
This property is required. String - Metric Name
- namespace
This property is required. String - namespace of the metric
- resource
Group This property is required. String - Resource Group
- resource
Type This property is required. String - Resource Type
- state
This property is required. String - The current lifecycle state of the metric extension
This property is required. Map<String,String>- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenancy
Id This property is required. String - OCID of the tenancy
- time
Created This property is required. String - creation date
- time
Last Updated This property is required. String - last updated time
- column
This property is required. string - metric column name
- compartment
Id This property is required. string - The ID of the compartment in which data is listed.
- created
By This property is required. string - Created user id
This property is required. {[key: string]: string}- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
This property is required. {[key: string]: string}- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. string - OCID of the metric
- is
Out Of Box This property is required. boolean - Is the baseline enabled metric defined out of box by Oracle or by end-user
- last
Updated By This property is required. string - last Updated user id
- name
This property is required. string - Metric Name
- namespace
This property is required. string - namespace of the metric
- resource
Group This property is required. string - Resource Group
- resource
Type This property is required. string - Resource Type
- state
This property is required. string - The current lifecycle state of the metric extension
This property is required. {[key: string]: string}- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenancy
Id This property is required. string - OCID of the tenancy
- time
Created This property is required. string - creation date
- time
Last Updated This property is required. string - last updated time
- column
This property is required. str - metric column name
- 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 user id
This property is required. Mapping[str, str]- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
This property is required. Mapping[str, str]- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. str - OCID of the metric
- is_
out_ of_ box This property is required. bool - Is the baseline enabled metric defined out of box by Oracle or by end-user
- last_
updated_ by This property is required. str - last Updated user id
- name
This property is required. str - Metric Name
- namespace
This property is required. str - namespace of the metric
- resource_
group This property is required. str - Resource Group
- resource_
type This property is required. str - Resource Type
- state
This property is required. str - The current lifecycle state of the metric extension
This property is required. Mapping[str, str]- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenancy_
id This property is required. str - OCID of the tenancy
- time_
created This property is required. str - creation date
- time_
last_ updated This property is required. str - last updated time
- column
This property is required. String - metric column name
- compartment
Id This property is required. String - The ID of the compartment in which data is listed.
- created
By This property is required. String - Created user id
This property is required. Map<String>- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
This property is required. Map<String>- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id
This property is required. String - OCID of the metric
- is
Out Of Box This property is required. Boolean - Is the baseline enabled metric defined out of box by Oracle or by end-user
- last
Updated By This property is required. String - last Updated user id
- name
This property is required. String - Metric Name
- namespace
This property is required. String - namespace of the metric
- resource
Group This property is required. String - Resource Group
- resource
Type This property is required. String - Resource Type
- state
This property is required. String - The current lifecycle state of the metric extension
This property is required. Map<String>- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenancy
Id This property is required. String - OCID of the tenancy
- time
Created This property is required. String - creation date
- time
Last Updated This property is required. String - last updated time
GetBaselineableMetricsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.