Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.StackMonitoring.getBaselineableMetric
Explore with Pulumi AI
This data source provides details about a specific Baselineable Metric resource in Oracle Cloud Infrastructure Stack Monitoring service.
Get the Baseline-able metric for the given id
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBaselineableMetric = oci.StackMonitoring.getBaselineableMetric({
    baselineableMetricId: testBaselineableMetricOciStackMonitoringBaselineableMetric.id,
});
import pulumi
import pulumi_oci as oci
test_baselineable_metric = oci.StackMonitoring.get_baselineable_metric(baselineable_metric_id=test_baselineable_metric_oci_stack_monitoring_baselineable_metric["id"])
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.GetBaselineableMetric(ctx, &stackmonitoring.GetBaselineableMetricArgs{
			BaselineableMetricId: testBaselineableMetricOciStackMonitoringBaselineableMetric.Id,
		}, 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 testBaselineableMetric = Oci.StackMonitoring.GetBaselineableMetric.Invoke(new()
    {
        BaselineableMetricId = testBaselineableMetricOciStackMonitoringBaselineableMetric.Id,
    });
});
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.GetBaselineableMetricArgs;
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 testBaselineableMetric = StackMonitoringFunctions.getBaselineableMetric(GetBaselineableMetricArgs.builder()
            .baselineableMetricId(testBaselineableMetricOciStackMonitoringBaselineableMetric.id())
            .build());
    }
}
variables:
  testBaselineableMetric:
    fn::invoke:
      function: oci:StackMonitoring:getBaselineableMetric
      arguments:
        baselineableMetricId: ${testBaselineableMetricOciStackMonitoringBaselineableMetric.id}
Using getBaselineableMetric
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 getBaselineableMetric(args: GetBaselineableMetricArgs, opts?: InvokeOptions): Promise<GetBaselineableMetricResult>
function getBaselineableMetricOutput(args: GetBaselineableMetricOutputArgs, opts?: InvokeOptions): Output<GetBaselineableMetricResult>def get_baselineable_metric(baselineable_metric_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetBaselineableMetricResult
def get_baselineable_metric_output(baselineable_metric_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetBaselineableMetricResult]func GetBaselineableMetric(ctx *Context, args *GetBaselineableMetricArgs, opts ...InvokeOption) (*GetBaselineableMetricResult, error)
func GetBaselineableMetricOutput(ctx *Context, args *GetBaselineableMetricOutputArgs, opts ...InvokeOption) GetBaselineableMetricResultOutput> Note: This function is named GetBaselineableMetric in the Go SDK.
public static class GetBaselineableMetric 
{
    public static Task<GetBaselineableMetricResult> InvokeAsync(GetBaselineableMetricArgs args, InvokeOptions? opts = null)
    public static Output<GetBaselineableMetricResult> Invoke(GetBaselineableMetricInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBaselineableMetricResult> getBaselineableMetric(GetBaselineableMetricArgs args, InvokeOptions options)
public static Output<GetBaselineableMetricResult> getBaselineableMetric(GetBaselineableMetricArgs args, InvokeOptions options)
fn::invoke:
  function: oci:StackMonitoring/getBaselineableMetric:getBaselineableMetric
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Baselineable
Metric stringId  - Identifier for the metric
 
- Baselineable
Metric stringId  - Identifier for the metric
 
- baselineable
Metric StringId  - Identifier for the metric
 
- baselineable
Metric stringId  - Identifier for the metric
 
- baselineable_
metric_ strid  - Identifier for the metric
 
- baselineable
Metric StringId  - Identifier for the metric
 
getBaselineableMetric Result
The following output properties are available:
- Baselineable
Metric stringId  - Column string
 - metric column name
 - Compartment
Id string - OCID of the compartment
 - Created
By string - Created user id
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - 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 string
 - OCID of the metric
 - Is
Out boolOf Box  - Is the metric created out of box, default false
 - Last
Updated stringBy  - last Updated user id
 - Name string
 - name of the metric
 - Namespace string
 - namespace of the metric
 - Resource
Group string - Resource group of the metric
 - Resource
Type string - Resource type of the metric
 - State string
 - The current lifecycle state of the metric extension
 - Dictionary<string, string>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Tenancy
Id string - OCID of the tenancy
 - Time
Created string - creation date
 - Time
Last stringUpdated  - last updated time
 
- Baselineable
Metric stringId  - Column string
 - metric column name
 - Compartment
Id string - OCID of the compartment
 - Created
By string - Created user id
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - 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 string
 - OCID of the metric
 - Is
Out boolOf Box  - Is the metric created out of box, default false
 - Last
Updated stringBy  - last Updated user id
 - Name string
 - name of the metric
 - Namespace string
 - namespace of the metric
 - Resource
Group string - Resource group of the metric
 - Resource
Type string - Resource type of the metric
 - State string
 - The current lifecycle state of the metric extension
 - map[string]string
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Tenancy
Id string - OCID of the tenancy
 - Time
Created string - creation date
 - Time
Last stringUpdated  - last updated time
 
- baselineable
Metric StringId  - column String
 - metric column name
 - compartment
Id String - OCID of the compartment
 - created
By String - Created user id
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - 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 String
 - OCID of the metric
 - is
Out BooleanOf Box  - Is the metric created out of box, default false
 - last
Updated StringBy  - last Updated user id
 - name String
 - name of the metric
 - namespace String
 - namespace of the metric
 - resource
Group String - Resource group of the metric
 - resource
Type String - Resource type of the metric
 - state String
 - The current lifecycle state of the metric extension
 - Map<String,String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Id String - OCID of the tenancy
 - time
Created String - creation date
 - time
Last StringUpdated  - last updated time
 
- baselineable
Metric stringId  - column string
 - metric column name
 - compartment
Id string - OCID of the compartment
 - created
By string - Created user id
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - {[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 string
 - OCID of the metric
 - is
Out booleanOf Box  - Is the metric created out of box, default false
 - last
Updated stringBy  - last Updated user id
 - name string
 - name of the metric
 - namespace string
 - namespace of the metric
 - resource
Group string - Resource group of the metric
 - resource
Type string - Resource type of the metric
 - state string
 - The current lifecycle state of the metric extension
 - {[key: string]: string}
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Id string - OCID of the tenancy
 - time
Created string - creation date
 - time
Last stringUpdated  - last updated time
 
- baselineable_
metric_ strid  - column str
 - metric column name
 - compartment_
id str - OCID of the compartment
 - created_
by str - Created user id
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - 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 str
 - OCID of the metric
 - is_
out_ boolof_ box  - Is the metric created out of box, default false
 - last_
updated_ strby  - last Updated user id
 - name str
 - name of the metric
 - namespace str
 - namespace of the metric
 - resource_
group str - Resource group of the metric
 - resource_
type str - Resource type of the metric
 - state str
 - The current lifecycle state of the metric extension
 - Mapping[str, str]
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - tenancy_
id str - OCID of the tenancy
 - time_
created str - creation date
 - time_
last_ strupdated  - last updated time
 
- baselineable
Metric StringId  - column String
 - metric column name
 - compartment
Id String - OCID of the compartment
 - created
By String - Created user id
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - 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 String
 - OCID of the metric
 - is
Out BooleanOf Box  - Is the metric created out of box, default false
 - last
Updated StringBy  - last Updated user id
 - name String
 - name of the metric
 - namespace String
 - namespace of the metric
 - resource
Group String - Resource group of the metric
 - resource
Type String - Resource type of the metric
 - state String
 - The current lifecycle state of the metric extension
 - Map<String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - tenancy
Id String - OCID of the tenancy
 - time
Created String - creation date
 - time
Last StringUpdated  - last updated time
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.