1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getBaselineableMetric
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.StackMonitoring.getBaselineableMetric

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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: oci_stack_monitoring_baselineable_metric.test_baselineable_metric.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_baselineable_metric = oci.StackMonitoring.get_baselineable_metric(baselineable_metric_id=oci_stack_monitoring_baselineable_metric["test_baselineable_metric"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: oci_stack_monitoring_baselineable_metric.Test_baselineable_metric.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 = oci_stack_monitoring_baselineable_metric.Test_baselineable_metric.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(oci_stack_monitoring_baselineable_metric.test_baselineable_metric().id())
                .build());
    
        }
    }
    
    variables:
      testBaselineableMetric:
        fn::invoke:
          Function: oci:StackMonitoring:getBaselineableMetric
          Arguments:
            baselineableMetricId: ${oci_stack_monitoring_baselineable_metric.test_baselineable_metric.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:StackMonitoring/getBaselineableMetric:getBaselineableMetric
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BaselineableMetricId string
    Identifier for the metric
    BaselineableMetricId string
    Identifier for the metric
    baselineableMetricId String
    Identifier for the metric
    baselineableMetricId string
    Identifier for the metric
    baselineable_metric_id str
    Identifier for the metric
    baselineableMetricId String
    Identifier for the metric

    getBaselineableMetric Result

    The following output properties are available:

    BaselineableMetricId string
    Column string
    metric column name
    CompartmentId string
    OCID of the compartment
    CreatedBy string
    Created user id
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags Dictionary<string, object>
    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
    IsOutOfBox bool
    Is the metric created out of box, default false
    LastUpdatedBy string
    last Updated user id
    Name string
    name of the metric
    Namespace string
    namespace of the metric
    ResourceGroup string
    Resource group of the metric
    State string
    The current lifecycle state of the metric extension
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenancyId string
    OCID of the tenancy
    TimeCreated string
    creation date
    TimeLastUpdated string
    last updated time
    BaselineableMetricId string
    Column string
    metric column name
    CompartmentId string
    OCID of the compartment
    CreatedBy string
    Created user id
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags map[string]interface{}
    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
    IsOutOfBox bool
    Is the metric created out of box, default false
    LastUpdatedBy string
    last Updated user id
    Name string
    name of the metric
    Namespace string
    namespace of the metric
    ResourceGroup string
    Resource group of the metric
    State string
    The current lifecycle state of the metric extension
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenancyId string
    OCID of the tenancy
    TimeCreated string
    creation date
    TimeLastUpdated string
    last updated time
    baselineableMetricId String
    column String
    metric column name
    compartmentId String
    OCID of the compartment
    createdBy String
    Created user id
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String,Object>
    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
    isOutOfBox Boolean
    Is the metric created out of box, default false
    lastUpdatedBy String
    last Updated user id
    name String
    name of the metric
    namespace String
    namespace of the metric
    resourceGroup String
    Resource group of the metric
    state String
    The current lifecycle state of the metric extension
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenancyId String
    OCID of the tenancy
    timeCreated String
    creation date
    timeLastUpdated String
    last updated time
    baselineableMetricId string
    column string
    metric column name
    compartmentId string
    OCID of the compartment
    createdBy string
    Created user id
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[key: string]: any}
    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
    isOutOfBox boolean
    Is the metric created out of box, default false
    lastUpdatedBy string
    last Updated user id
    name string
    name of the metric
    namespace string
    namespace of the metric
    resourceGroup string
    Resource group of the metric
    state string
    The current lifecycle state of the metric extension
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenancyId string
    OCID of the tenancy
    timeCreated string
    creation date
    timeLastUpdated string
    last updated time
    baselineable_metric_id str
    column str
    metric column name
    compartment_id str
    OCID of the compartment
    created_by str
    Created user id
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeform_tags Mapping[str, Any]
    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_of_box bool
    Is the metric created out of box, default false
    last_updated_by str
    last Updated user id
    name str
    name of the metric
    namespace str
    namespace of the metric
    resource_group str
    Resource group of the metric
    state str
    The current lifecycle state of the metric extension
    system_tags Mapping[str, Any]
    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_updated str
    last updated time
    baselineableMetricId String
    column String
    metric column name
    compartmentId String
    OCID of the compartment
    createdBy String
    Created user id
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<Any>
    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
    isOutOfBox Boolean
    Is the metric created out of box, default false
    lastUpdatedBy String
    last Updated user id
    name String
    name of the metric
    namespace String
    namespace of the metric
    resourceGroup String
    Resource group of the metric
    state String
    The current lifecycle state of the metric extension
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenancyId String
    OCID of the tenancy
    timeCreated String
    creation date
    timeLastUpdated String
    last updated time

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi