1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getRecordingRulesGroupsSet
coralogix 2.0.16 published on Monday, Apr 14, 2025 by coralogix

coralogix.getRecordingRulesGroupsSet

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as coralogix from "@pulumi/coralogix";

const importedRecordingRulesGroupsSet = coralogix.getRecordingRulesGroupsSet({
    id: coralogix_recording_rules_groups_set.recording_rules_groups_set_explicit.id,
});
Copy
import pulumi
import pulumi_coralogix as coralogix

imported_recording_rules_groups_set = coralogix.get_recording_rules_groups_set(id=coralogix_recording_rules_groups_set["recording_rules_groups_set_explicit"]["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := coralogix.LookupRecordingRulesGroupsSet(ctx, &coralogix.LookupRecordingRulesGroupsSetArgs{
			Id: coralogix_recording_rules_groups_set.Recording_rules_groups_set_explicit.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coralogix = Pulumi.Coralogix;

return await Deployment.RunAsync(() => 
{
    var importedRecordingRulesGroupsSet = Coralogix.GetRecordingRulesGroupsSet.Invoke(new()
    {
        Id = coralogix_recording_rules_groups_set.Recording_rules_groups_set_explicit.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.CoralogixFunctions;
import com.pulumi.coralogix.inputs.GetRecordingRulesGroupsSetArgs;
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 importedRecordingRulesGroupsSet = CoralogixFunctions.getRecordingRulesGroupsSet(GetRecordingRulesGroupsSetArgs.builder()
            .id(coralogix_recording_rules_groups_set.recording_rules_groups_set_explicit().id())
            .build());

    }
}
Copy
variables:
  importedRecordingRulesGroupsSet:
    fn::invoke:
      function: coralogix:getRecordingRulesGroupsSet
      arguments:
        id: ${coralogix_recording_rules_groups_set.recording_rules_groups_set_explicit.id}
Copy

Using getRecordingRulesGroupsSet

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 getRecordingRulesGroupsSet(args: GetRecordingRulesGroupsSetArgs, opts?: InvokeOptions): Promise<GetRecordingRulesGroupsSetResult>
function getRecordingRulesGroupsSetOutput(args: GetRecordingRulesGroupsSetOutputArgs, opts?: InvokeOptions): Output<GetRecordingRulesGroupsSetResult>
Copy
def get_recording_rules_groups_set(id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetRecordingRulesGroupsSetResult
def get_recording_rules_groups_set_output(id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetRecordingRulesGroupsSetResult]
Copy
func LookupRecordingRulesGroupsSet(ctx *Context, args *LookupRecordingRulesGroupsSetArgs, opts ...InvokeOption) (*LookupRecordingRulesGroupsSetResult, error)
func LookupRecordingRulesGroupsSetOutput(ctx *Context, args *LookupRecordingRulesGroupsSetOutputArgs, opts ...InvokeOption) LookupRecordingRulesGroupsSetResultOutput
Copy

> Note: This function is named LookupRecordingRulesGroupsSet in the Go SDK.

public static class GetRecordingRulesGroupsSet 
{
    public static Task<GetRecordingRulesGroupsSetResult> InvokeAsync(GetRecordingRulesGroupsSetArgs args, InvokeOptions? opts = null)
    public static Output<GetRecordingRulesGroupsSetResult> Invoke(GetRecordingRulesGroupsSetInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRecordingRulesGroupsSetResult> getRecordingRulesGroupsSet(GetRecordingRulesGroupsSetArgs args, InvokeOptions options)
public static Output<GetRecordingRulesGroupsSetResult> getRecordingRulesGroupsSet(GetRecordingRulesGroupsSetArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: coralogix:index/getRecordingRulesGroupsSet:getRecordingRulesGroupsSet
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID of this resource.
Id This property is required. string
The ID of this resource.
id This property is required. String
The ID of this resource.
id This property is required. string
The ID of this resource.
id This property is required. str
The ID of this resource.
id This property is required. String
The ID of this resource.

getRecordingRulesGroupsSet Result

The following output properties are available:

Groups List<GetRecordingRulesGroupsSetGroup>
Id string
The ID of this resource.
Name string
The name of the rule group. Overrides the name specified in the YAML if provided.
YamlContent string
YAML specification of rules. Cannot be used together with groups.
Groups []GetRecordingRulesGroupsSetGroup
Id string
The ID of this resource.
Name string
The name of the rule group. Overrides the name specified in the YAML if provided.
YamlContent string
YAML specification of rules. Cannot be used together with groups.
groups List<GetRecordingRulesGroupsSetGroup>
id String
The ID of this resource.
name String
The name of the rule group. Overrides the name specified in the YAML if provided.
yamlContent String
YAML specification of rules. Cannot be used together with groups.
groups GetRecordingRulesGroupsSetGroup[]
id string
The ID of this resource.
name string
The name of the rule group. Overrides the name specified in the YAML if provided.
yamlContent string
YAML specification of rules. Cannot be used together with groups.
groups Sequence[GetRecordingRulesGroupsSetGroup]
id str
The ID of this resource.
name str
The name of the rule group. Overrides the name specified in the YAML if provided.
yaml_content str
YAML specification of rules. Cannot be used together with groups.
groups List<Property Map>
id String
The ID of this resource.
name String
The name of the rule group. Overrides the name specified in the YAML if provided.
yamlContent String
YAML specification of rules. Cannot be used together with groups.

Supporting Types

GetRecordingRulesGroupsSetGroup

Interval This property is required. double
How often rules in the group are evaluated (in seconds). Default is 60 seconds.
Limit This property is required. double
Limits the number of alerts an alerting rule and series a recording-rule can produce. 0 is no limit.
Name This property is required. string
The (unique) rule-group name.
Rules This property is required. List<GetRecordingRulesGroupsSetGroupRule>
Interval This property is required. float64
How often rules in the group are evaluated (in seconds). Default is 60 seconds.
Limit This property is required. float64
Limits the number of alerts an alerting rule and series a recording-rule can produce. 0 is no limit.
Name This property is required. string
The (unique) rule-group name.
Rules This property is required. []GetRecordingRulesGroupsSetGroupRule
interval This property is required. Double
How often rules in the group are evaluated (in seconds). Default is 60 seconds.
limit This property is required. Double
Limits the number of alerts an alerting rule and series a recording-rule can produce. 0 is no limit.
name This property is required. String
The (unique) rule-group name.
rules This property is required. List<GetRecordingRulesGroupsSetGroupRule>
interval This property is required. number
How often rules in the group are evaluated (in seconds). Default is 60 seconds.
limit This property is required. number
Limits the number of alerts an alerting rule and series a recording-rule can produce. 0 is no limit.
name This property is required. string
The (unique) rule-group name.
rules This property is required. GetRecordingRulesGroupsSetGroupRule[]
interval This property is required. float
How often rules in the group are evaluated (in seconds). Default is 60 seconds.
limit This property is required. float
Limits the number of alerts an alerting rule and series a recording-rule can produce. 0 is no limit.
name This property is required. str
The (unique) rule-group name.
rules This property is required. Sequence[GetRecordingRulesGroupsSetGroupRule]
interval This property is required. Number
How often rules in the group are evaluated (in seconds). Default is 60 seconds.
limit This property is required. Number
Limits the number of alerts an alerting rule and series a recording-rule can produce. 0 is no limit.
name This property is required. String
The (unique) rule-group name.
rules This property is required. List<Property Map>

GetRecordingRulesGroupsSetGroupRule

Expr This property is required. string
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.
Labels This property is required. Dictionary<string, string>
Labels to add or overwrite before storing the result.
Record This property is required. string
The name of the time series to output to. Must be a valid metric name.
Expr This property is required. string
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.
Labels This property is required. map[string]string
Labels to add or overwrite before storing the result.
Record This property is required. string
The name of the time series to output to. Must be a valid metric name.
expr This property is required. String
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.
labels This property is required. Map<String,String>
Labels to add or overwrite before storing the result.
record This property is required. String
The name of the time series to output to. Must be a valid metric name.
expr This property is required. string
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.
labels This property is required. {[key: string]: string}
Labels to add or overwrite before storing the result.
record This property is required. string
The name of the time series to output to. Must be a valid metric name.
expr This property is required. str
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.
labels This property is required. Mapping[str, str]
Labels to add or overwrite before storing the result.
record This property is required. str
The name of the time series to output to. Must be a valid metric name.
expr This property is required. String
The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and the result recorded as a new set of time series with the metric name as given by 'record'.
labels This property is required. Map<String>
Labels to add or overwrite before storing the result.
record This property is required. String
The name of the time series to output to. Must be a valid metric name.

Package Details

Repository
coralogix coralogix/terraform-provider-coralogix
License
Notes
This Pulumi package is based on the coralogix Terraform Provider.