oci.StackMonitoring.BaselineableMetric
Explore with Pulumi AI
This resource provides the Baselineable Metric resource in Oracle Cloud Infrastructure Stack Monitoring service.
Creates the specified Baseline-able metric
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBaselineableMetric = new oci.stackmonitoring.BaselineableMetric("test_baselineable_metric", {
column: baselineableMetricColumn,
compartmentId: compartmentId,
namespace: baselineableMetricNamespace,
name: baselineableMetricName,
resourceGroup: baselineableMetricResourceGroup,
resourceType: baselineableMetricResourceType,
});
import pulumi
import pulumi_oci as oci
test_baselineable_metric = oci.stack_monitoring.BaselineableMetric("test_baselineable_metric",
column=baselineable_metric_column,
compartment_id=compartment_id,
namespace=baselineable_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.NewBaselineableMetric(ctx, "test_baselineable_metric", &StackMonitoring.BaselineableMetricArgs{
Column: pulumi.Any(baselineableMetricColumn),
CompartmentId: pulumi.Any(compartmentId),
Namespace: pulumi.Any(baselineableMetricNamespace),
Name: pulumi.Any(baselineableMetricName),
ResourceGroup: pulumi.Any(baselineableMetricResourceGroup),
ResourceType: pulumi.Any(baselineableMetricResourceType),
})
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 = new Oci.StackMonitoring.BaselineableMetric("test_baselineable_metric", new()
{
Column = baselineableMetricColumn,
CompartmentId = compartmentId,
Namespace = baselineableMetricNamespace,
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.BaselineableMetric;
import com.pulumi.oci.StackMonitoring.BaselineableMetricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testBaselineableMetric = new BaselineableMetric("testBaselineableMetric", BaselineableMetricArgs.builder()
.column(baselineableMetricColumn)
.compartmentId(compartmentId)
.namespace(baselineableMetricNamespace)
.name(baselineableMetricName)
.resourceGroup(baselineableMetricResourceGroup)
.resourceType(baselineableMetricResourceType)
.build());
}
}
resources:
testBaselineableMetric:
type: oci:StackMonitoring:BaselineableMetric
name: test_baselineable_metric
properties:
column: ${baselineableMetricColumn}
compartmentId: ${compartmentId}
namespace: ${baselineableMetricNamespace}
name: ${baselineableMetricName}
resourceGroup: ${baselineableMetricResourceGroup}
resourceType: ${baselineableMetricResourceType}
Create BaselineableMetric Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BaselineableMetric(name: string, args: BaselineableMetricArgs, opts?: CustomResourceOptions);
@overload
def BaselineableMetric(resource_name: str,
args: BaselineableMetricArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BaselineableMetric(resource_name: str,
opts: Optional[ResourceOptions] = None,
column: Optional[str] = None,
compartment_id: Optional[str] = None,
namespace: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
resource_type: Optional[str] = None)
func NewBaselineableMetric(ctx *Context, name string, args BaselineableMetricArgs, opts ...ResourceOption) (*BaselineableMetric, error)
public BaselineableMetric(string name, BaselineableMetricArgs args, CustomResourceOptions? opts = null)
public BaselineableMetric(String name, BaselineableMetricArgs args)
public BaselineableMetric(String name, BaselineableMetricArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:BaselineableMetric
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BaselineableMetricArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BaselineableMetricArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BaselineableMetricArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BaselineableMetricArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BaselineableMetricArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var baselineableMetricResource = new Oci.StackMonitoring.BaselineableMetric("baselineableMetricResource", new()
{
Column = "string",
CompartmentId = "string",
Namespace = "string",
Name = "string",
ResourceGroup = "string",
ResourceType = "string",
});
example, err := StackMonitoring.NewBaselineableMetric(ctx, "baselineableMetricResource", &StackMonitoring.BaselineableMetricArgs{
Column: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
Namespace: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
ResourceType: pulumi.String("string"),
})
var baselineableMetricResource = new BaselineableMetric("baselineableMetricResource", BaselineableMetricArgs.builder()
.column("string")
.compartmentId("string")
.namespace("string")
.name("string")
.resourceGroup("string")
.resourceType("string")
.build());
baselineable_metric_resource = oci.stack_monitoring.BaselineableMetric("baselineableMetricResource",
column="string",
compartment_id="string",
namespace="string",
name="string",
resource_group="string",
resource_type="string")
const baselineableMetricResource = new oci.stackmonitoring.BaselineableMetric("baselineableMetricResource", {
column: "string",
compartmentId: "string",
namespace: "string",
name: "string",
resourceGroup: "string",
resourceType: "string",
});
type: oci:StackMonitoring:BaselineableMetric
properties:
column: string
compartmentId: string
name: string
namespace: string
resourceGroup: string
resourceType: string
BaselineableMetric Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BaselineableMetric resource accepts the following input properties:
- Column string
- (Updatable) metric column name
- Compartment
Id string - (Updatable) OCID of the compartment
- Namespace string
- (Updatable) namespace of the metric
- Name string
- (Updatable) name of the metric
- Resource
Group string - (Updatable) Resource group of the metric
- Resource
Type string (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Column string
- (Updatable) metric column name
- Compartment
Id string - (Updatable) OCID of the compartment
- Namespace string
- (Updatable) namespace of the metric
- Name string
- (Updatable) name of the metric
- Resource
Group string - (Updatable) Resource group of the metric
- Resource
Type string (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- column String
- (Updatable) metric column name
- compartment
Id String - (Updatable) OCID of the compartment
- namespace String
- (Updatable) namespace of the metric
- name String
- (Updatable) name of the metric
- resource
Group String - (Updatable) Resource group of the metric
- resource
Type String (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- column string
- (Updatable) metric column name
- compartment
Id string - (Updatable) OCID of the compartment
- namespace string
- (Updatable) namespace of the metric
- name string
- (Updatable) name of the metric
- resource
Group string - (Updatable) Resource group of the metric
- resource
Type string (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- column str
- (Updatable) metric column name
- compartment_
id str - (Updatable) OCID of the compartment
- namespace str
- (Updatable) namespace of the metric
- name str
- (Updatable) name of the metric
- resource_
group str - (Updatable) Resource group of the metric
- resource_
type str (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- column String
- (Updatable) metric column name
- compartment
Id String - (Updatable) OCID of the compartment
- namespace String
- (Updatable) namespace of the metric
- name String
- (Updatable) name of the metric
- resource
Group String - (Updatable) Resource group of the metric
- resource
Type String (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the BaselineableMetric resource produces the following output properties:
- 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
- The provider-assigned unique ID for this managed resource.
- Is
Out boolOf Box - Is the metric created out of box, default false
- Last
Updated stringBy - last Updated user id
- 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
- 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
- The provider-assigned unique ID for this managed resource.
- Is
Out boolOf Box - Is the metric created out of box, default false
- Last
Updated stringBy - last Updated user id
- 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
- 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
- The provider-assigned unique ID for this managed resource.
- is
Out BooleanOf Box - Is the metric created out of box, default false
- last
Updated StringBy - last Updated user id
- 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
- 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
- The provider-assigned unique ID for this managed resource.
- is
Out booleanOf Box - Is the metric created out of box, default false
- last
Updated stringBy - last Updated user id
- 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
- 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
- The provider-assigned unique ID for this managed resource.
- is_
out_ boolof_ box - Is the metric created out of box, default false
- last_
updated_ strby - last Updated user id
- 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
- 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
- The provider-assigned unique ID for this managed resource.
- is
Out BooleanOf Box - Is the metric created out of box, default false
- last
Updated StringBy - last Updated user id
- 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
Look up Existing BaselineableMetric Resource
Get an existing BaselineableMetric resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BaselineableMetricState, opts?: CustomResourceOptions): BaselineableMetric
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
column: Optional[str] = None,
compartment_id: Optional[str] = None,
created_by: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_out_of_box: Optional[bool] = None,
last_updated_by: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
resource_group: Optional[str] = None,
resource_type: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
tenancy_id: Optional[str] = None,
time_created: Optional[str] = None,
time_last_updated: Optional[str] = None) -> BaselineableMetric
func GetBaselineableMetric(ctx *Context, name string, id IDInput, state *BaselineableMetricState, opts ...ResourceOption) (*BaselineableMetric, error)
public static BaselineableMetric Get(string name, Input<string> id, BaselineableMetricState? state, CustomResourceOptions? opts = null)
public static BaselineableMetric get(String name, Output<String> id, BaselineableMetricState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Column string
- (Updatable) metric column name
- Compartment
Id string - (Updatable) 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"}
- Is
Out boolOf Box - Is the metric created out of box, default false
- Last
Updated stringBy - last Updated user id
- Name string
- (Updatable) name of the metric
- Namespace string
- (Updatable) namespace of the metric
- Resource
Group string - (Updatable) Resource group of the metric
- Resource
Type string (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
- Column string
- (Updatable) metric column name
- Compartment
Id string - (Updatable) 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"}
- Is
Out boolOf Box - Is the metric created out of box, default false
- Last
Updated stringBy - last Updated user id
- Name string
- (Updatable) name of the metric
- Namespace string
- (Updatable) namespace of the metric
- Resource
Group string - (Updatable) Resource group of the metric
- Resource
Type string (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
- column String
- (Updatable) metric column name
- compartment
Id String - (Updatable) 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"}
- is
Out BooleanOf Box - Is the metric created out of box, default false
- last
Updated StringBy - last Updated user id
- name String
- (Updatable) name of the metric
- namespace String
- (Updatable) namespace of the metric
- resource
Group String - (Updatable) Resource group of the metric
- resource
Type String (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
- column string
- (Updatable) metric column name
- compartment
Id string - (Updatable) 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"}
- is
Out booleanOf Box - Is the metric created out of box, default false
- last
Updated stringBy - last Updated user id
- name string
- (Updatable) name of the metric
- namespace string
- (Updatable) namespace of the metric
- resource
Group string - (Updatable) Resource group of the metric
- resource
Type string (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
- column str
- (Updatable) metric column name
- compartment_
id str - (Updatable) 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"}
- is_
out_ boolof_ box - Is the metric created out of box, default false
- last_
updated_ strby - last Updated user id
- name str
- (Updatable) name of the metric
- namespace str
- (Updatable) namespace of the metric
- resource_
group str - (Updatable) Resource group of the metric
- resource_
type str (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
- column String
- (Updatable) metric column name
- compartment
Id String - (Updatable) 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"}
- is
Out BooleanOf Box - Is the metric created out of box, default false
- last
Updated StringBy - last Updated user id
- name String
- (Updatable) name of the metric
- namespace String
- (Updatable) namespace of the metric
- resource
Group String - (Updatable) Resource group of the metric
- resource
Type String (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
Import
BaselineableMetrics can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/baselineableMetric:BaselineableMetric test_baselineable_metric "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.