chronosphere.RecordingRule
Explore with Pulumi AI
Create RecordingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RecordingRule(name: string, args: RecordingRuleArgs, opts?: CustomResourceOptions);
@overload
def RecordingRule(resource_name: str,
args: RecordingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RecordingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
expr: Optional[str] = None,
name: Optional[str] = None,
bucket_id: Optional[str] = None,
execution_group: Optional[str] = None,
interval: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
metric_name: Optional[str] = None,
slug: Optional[str] = None)
func NewRecordingRule(ctx *Context, name string, args RecordingRuleArgs, opts ...ResourceOption) (*RecordingRule, error)
public RecordingRule(string name, RecordingRuleArgs args, CustomResourceOptions? opts = null)
public RecordingRule(String name, RecordingRuleArgs args)
public RecordingRule(String name, RecordingRuleArgs args, CustomResourceOptions options)
type: chronosphere:RecordingRule
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 RecordingRuleArgs
- 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 RecordingRuleArgs
- 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 RecordingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RecordingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RecordingRuleArgs
- 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 recordingRuleResource = new Pulumi.RecordingRule("recordingRuleResource", new()
{
Expr = "string",
Name = "string",
BucketId = "string",
ExecutionGroup = "string",
Interval = "string",
Labels =
{
{ "string", "string" },
},
MetricName = "string",
Slug = "string",
});
example, err := chronosphere.NewRecordingRule(ctx, "recordingRuleResource", &chronosphere.RecordingRuleArgs{
Expr: pulumi.String("string"),
Name: pulumi.String("string"),
BucketId: pulumi.String("string"),
ExecutionGroup: pulumi.String("string"),
Interval: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MetricName: pulumi.String("string"),
Slug: pulumi.String("string"),
})
var recordingRuleResource = new RecordingRule("recordingRuleResource", RecordingRuleArgs.builder()
.expr("string")
.name("string")
.bucketId("string")
.executionGroup("string")
.interval("string")
.labels(Map.of("string", "string"))
.metricName("string")
.slug("string")
.build());
recording_rule_resource = chronosphere.RecordingRule("recordingRuleResource",
expr="string",
name="string",
bucket_id="string",
execution_group="string",
interval="string",
labels={
"string": "string",
},
metric_name="string",
slug="string")
const recordingRuleResource = new chronosphere.RecordingRule("recordingRuleResource", {
expr: "string",
name: "string",
bucketId: "string",
executionGroup: "string",
interval: "string",
labels: {
string: "string",
},
metricName: "string",
slug: "string",
});
type: chronosphere:RecordingRule
properties:
bucketId: string
executionGroup: string
expr: string
interval: string
labels:
string: string
metricName: string
name: string
slug: string
RecordingRule 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 RecordingRule resource accepts the following input properties:
- Expr string
- Name string
- Bucket
Id string - Execution
Group string - Interval string
- Labels Dictionary<string, string>
- Metric
Name string - Slug string
- Expr string
- Name string
- Bucket
Id string - Execution
Group string - Interval string
- Labels map[string]string
- Metric
Name string - Slug string
- expr String
- name String
- bucket
Id String - execution
Group String - interval String
- labels Map<String,String>
- metric
Name String - slug String
- expr string
- name string
- bucket
Id string - execution
Group string - interval string
- labels {[key: string]: string}
- metric
Name string - slug string
- expr str
- name str
- bucket_
id str - execution_
group str - interval str
- labels Mapping[str, str]
- metric_
name str - slug str
- expr String
- name String
- bucket
Id String - execution
Group String - interval String
- labels Map<String>
- metric
Name String - slug String
Outputs
All input properties are implicitly available as output properties. Additionally, the RecordingRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RecordingRule Resource
Get an existing RecordingRule 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?: RecordingRuleState, opts?: CustomResourceOptions): RecordingRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket_id: Optional[str] = None,
execution_group: Optional[str] = None,
expr: Optional[str] = None,
interval: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
metric_name: Optional[str] = None,
name: Optional[str] = None,
slug: Optional[str] = None) -> RecordingRule
func GetRecordingRule(ctx *Context, name string, id IDInput, state *RecordingRuleState, opts ...ResourceOption) (*RecordingRule, error)
public static RecordingRule Get(string name, Input<string> id, RecordingRuleState? state, CustomResourceOptions? opts = null)
public static RecordingRule get(String name, Output<String> id, RecordingRuleState 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.
- Bucket
Id string - Execution
Group string - Expr string
- Interval string
- Labels Dictionary<string, string>
- Metric
Name string - Name string
- Slug string
- Bucket
Id string - Execution
Group string - Expr string
- Interval string
- Labels map[string]string
- Metric
Name string - Name string
- Slug string
- bucket
Id String - execution
Group String - expr String
- interval String
- labels Map<String,String>
- metric
Name String - name String
- slug String
- bucket
Id string - execution
Group string - expr string
- interval string
- labels {[key: string]: string}
- metric
Name string - name string
- slug string
- bucket_
id str - execution_
group str - expr str
- interval str
- labels Mapping[str, str]
- metric_
name str - name str
- slug str
- bucket
Id String - execution
Group String - expr String
- interval String
- labels Map<String>
- metric
Name String - name String
- slug String
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.