sumologic.MetricsSearch
Explore with Pulumi AI
Provides a Sumologic Metrics Search.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const personalFolder = sumologic.getPersonalFolder({});
const exampleMetricsSearch = new sumologic.MetricsSearch("example_metrics_search", {
title: "Demo Metrics Search",
description: "Demo search description",
parentId: personalFolder.then(personalFolder => personalFolder.id),
metricsQueries: [{
rowId: "A",
query: "metric=cpu_idle | avg",
}],
desiredQuantizationInSecs: 0,
timeRange: {
beginBoundedTimeRange: {
from: {
relativeTimeRange: {
relativeTime: "-30m",
},
},
},
},
});
import pulumi
import pulumi_sumologic as sumologic
personal_folder = sumologic.get_personal_folder()
example_metrics_search = sumologic.MetricsSearch("example_metrics_search",
title="Demo Metrics Search",
description="Demo search description",
parent_id=personal_folder.id,
metrics_queries=[{
"row_id": "A",
"query": "metric=cpu_idle | avg",
}],
desired_quantization_in_secs=0,
time_range={
"begin_bounded_time_range": {
"from_": {
"relative_time_range": {
"relative_time": "-30m",
},
},
},
})
package main
import (
"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
personalFolder, err := sumologic.GetPersonalFolder(ctx, nil, nil)
if err != nil {
return err
}
_, err = sumologic.NewMetricsSearch(ctx, "example_metrics_search", &sumologic.MetricsSearchArgs{
Title: pulumi.String("Demo Metrics Search"),
Description: pulumi.String("Demo search description"),
ParentId: pulumi.String(personalFolder.Id),
MetricsQueries: sumologic.MetricsSearchMetricsQueryArray{
&sumologic.MetricsSearchMetricsQueryArgs{
RowId: pulumi.String("A"),
Query: pulumi.String("metric=cpu_idle | avg"),
},
},
DesiredQuantizationInSecs: pulumi.Int(0),
TimeRange: &sumologic.MetricsSearchTimeRangeArgs{
BeginBoundedTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeArgs{
From: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs{
RelativeTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs{
RelativeTime: pulumi.String("-30m"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() =>
{
var personalFolder = SumoLogic.GetPersonalFolder.Invoke();
var exampleMetricsSearch = new SumoLogic.MetricsSearch("example_metrics_search", new()
{
Title = "Demo Metrics Search",
Description = "Demo search description",
ParentId = personalFolder.Apply(getPersonalFolderResult => getPersonalFolderResult.Id),
MetricsQueries = new[]
{
new SumoLogic.Inputs.MetricsSearchMetricsQueryArgs
{
RowId = "A",
Query = "metric=cpu_idle | avg",
},
},
DesiredQuantizationInSecs = 0,
TimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeArgs
{
BeginBoundedTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeArgs
{
From = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs
{
RelativeTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs
{
RelativeTime = "-30m",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.SumologicFunctions;
import com.pulumi.sumologic.inputs.GetPersonalFolderArgs;
import com.pulumi.sumologic.MetricsSearch;
import com.pulumi.sumologic.MetricsSearchArgs;
import com.pulumi.sumologic.inputs.MetricsSearchMetricsQueryArgs;
import com.pulumi.sumologic.inputs.MetricsSearchTimeRangeArgs;
import com.pulumi.sumologic.inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeArgs;
import com.pulumi.sumologic.inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs;
import com.pulumi.sumologic.inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs;
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 personalFolder = SumologicFunctions.getPersonalFolder();
var exampleMetricsSearch = new MetricsSearch("exampleMetricsSearch", MetricsSearchArgs.builder()
.title("Demo Metrics Search")
.description("Demo search description")
.parentId(personalFolder.applyValue(getPersonalFolderResult -> getPersonalFolderResult.id()))
.metricsQueries(MetricsSearchMetricsQueryArgs.builder()
.rowId("A")
.query("metric=cpu_idle | avg")
.build())
.desiredQuantizationInSecs(0)
.timeRange(MetricsSearchTimeRangeArgs.builder()
.beginBoundedTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeArgs.builder()
.from(MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs.builder()
.relativeTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs.builder()
.relativeTime("-30m")
.build())
.build())
.build())
.build())
.build());
}
}
resources:
exampleMetricsSearch:
type: sumologic:MetricsSearch
name: example_metrics_search
properties:
title: Demo Metrics Search
description: Demo search description
parentId: ${personalFolder.id}
metricsQueries:
- rowId: A
query: metric=cpu_idle | avg
desiredQuantizationInSecs: 0
timeRange:
beginBoundedTimeRange:
from:
relativeTimeRange:
relativeTime: -30m
variables:
personalFolder:
fn::invoke:
Function: sumologic:getPersonalFolder
Arguments: {}
Attributes reference
In addition to all arguments above, the following attributes are exported:
id
- The ID of the log search.
Create MetricsSearch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetricsSearch(name: string, args: MetricsSearchArgs, opts?: CustomResourceOptions);
@overload
def MetricsSearch(resource_name: str,
args: MetricsSearchArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MetricsSearch(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
metrics_queries: Optional[Sequence[MetricsSearchMetricsQueryArgs]] = None,
parent_id: Optional[str] = None,
time_range: Optional[MetricsSearchTimeRangeArgs] = None,
title: Optional[str] = None,
desired_quantization_in_secs: Optional[int] = None,
log_query: Optional[str] = None)
func NewMetricsSearch(ctx *Context, name string, args MetricsSearchArgs, opts ...ResourceOption) (*MetricsSearch, error)
public MetricsSearch(string name, MetricsSearchArgs args, CustomResourceOptions? opts = null)
public MetricsSearch(String name, MetricsSearchArgs args)
public MetricsSearch(String name, MetricsSearchArgs args, CustomResourceOptions options)
type: sumologic:MetricsSearch
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 MetricsSearchArgs
- 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 MetricsSearchArgs
- 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 MetricsSearchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetricsSearchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetricsSearchArgs
- 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 metricsSearchResource = new SumoLogic.MetricsSearch("metricsSearchResource", new()
{
Description = "string",
MetricsQueries = new[]
{
new SumoLogic.Inputs.MetricsSearchMetricsQueryArgs
{
Query = "string",
RowId = "string",
},
},
ParentId = "string",
TimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeArgs
{
BeginBoundedTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeArgs
{
From = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs
{
EpochTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromEpochTimeRangeArgs
{
EpochMillis = 0,
},
Iso8601TimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromIso8601TimeRangeArgs
{
Iso8601Time = "string",
},
LiteralTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromLiteralTimeRangeArgs
{
RangeName = "string",
},
RelativeTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs
{
RelativeTime = "string",
},
},
To = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeToArgs
{
EpochTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeToEpochTimeRangeArgs
{
EpochMillis = 0,
},
Iso8601TimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeToIso8601TimeRangeArgs
{
Iso8601Time = "string",
},
LiteralTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeToLiteralTimeRangeArgs
{
RangeName = "string",
},
RelativeTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeBeginBoundedTimeRangeToRelativeTimeRangeArgs
{
RelativeTime = "string",
},
},
},
CompleteLiteralTimeRange = new SumoLogic.Inputs.MetricsSearchTimeRangeCompleteLiteralTimeRangeArgs
{
RangeName = "string",
},
},
Title = "string",
DesiredQuantizationInSecs = 0,
LogQuery = "string",
});
example, err := sumologic.NewMetricsSearch(ctx, "metricsSearchResource", &sumologic.MetricsSearchArgs{
Description: pulumi.String("string"),
MetricsQueries: sumologic.MetricsSearchMetricsQueryArray{
&sumologic.MetricsSearchMetricsQueryArgs{
Query: pulumi.String("string"),
RowId: pulumi.String("string"),
},
},
ParentId: pulumi.String("string"),
TimeRange: &sumologic.MetricsSearchTimeRangeArgs{
BeginBoundedTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeArgs{
From: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs{
EpochTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromEpochTimeRangeArgs{
EpochMillis: pulumi.Int(0),
},
Iso8601TimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromIso8601TimeRangeArgs{
Iso8601Time: pulumi.String("string"),
},
LiteralTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromLiteralTimeRangeArgs{
RangeName: pulumi.String("string"),
},
RelativeTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs{
RelativeTime: pulumi.String("string"),
},
},
To: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToArgs{
EpochTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToEpochTimeRangeArgs{
EpochMillis: pulumi.Int(0),
},
Iso8601TimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToIso8601TimeRangeArgs{
Iso8601Time: pulumi.String("string"),
},
LiteralTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToLiteralTimeRangeArgs{
RangeName: pulumi.String("string"),
},
RelativeTimeRange: &sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToRelativeTimeRangeArgs{
RelativeTime: pulumi.String("string"),
},
},
},
CompleteLiteralTimeRange: &sumologic.MetricsSearchTimeRangeCompleteLiteralTimeRangeArgs{
RangeName: pulumi.String("string"),
},
},
Title: pulumi.String("string"),
DesiredQuantizationInSecs: pulumi.Int(0),
LogQuery: pulumi.String("string"),
})
var metricsSearchResource = new MetricsSearch("metricsSearchResource", MetricsSearchArgs.builder()
.description("string")
.metricsQueries(MetricsSearchMetricsQueryArgs.builder()
.query("string")
.rowId("string")
.build())
.parentId("string")
.timeRange(MetricsSearchTimeRangeArgs.builder()
.beginBoundedTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeArgs.builder()
.from(MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs.builder()
.epochTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeFromEpochTimeRangeArgs.builder()
.epochMillis(0)
.build())
.iso8601TimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeFromIso8601TimeRangeArgs.builder()
.iso8601Time("string")
.build())
.literalTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeFromLiteralTimeRangeArgs.builder()
.rangeName("string")
.build())
.relativeTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs.builder()
.relativeTime("string")
.build())
.build())
.to(MetricsSearchTimeRangeBeginBoundedTimeRangeToArgs.builder()
.epochTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeToEpochTimeRangeArgs.builder()
.epochMillis(0)
.build())
.iso8601TimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeToIso8601TimeRangeArgs.builder()
.iso8601Time("string")
.build())
.literalTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeToLiteralTimeRangeArgs.builder()
.rangeName("string")
.build())
.relativeTimeRange(MetricsSearchTimeRangeBeginBoundedTimeRangeToRelativeTimeRangeArgs.builder()
.relativeTime("string")
.build())
.build())
.build())
.completeLiteralTimeRange(MetricsSearchTimeRangeCompleteLiteralTimeRangeArgs.builder()
.rangeName("string")
.build())
.build())
.title("string")
.desiredQuantizationInSecs(0)
.logQuery("string")
.build());
metrics_search_resource = sumologic.MetricsSearch("metricsSearchResource",
description="string",
metrics_queries=[sumologic.MetricsSearchMetricsQueryArgs(
query="string",
row_id="string",
)],
parent_id="string",
time_range=sumologic.MetricsSearchTimeRangeArgs(
begin_bounded_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeArgs(
from_=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs(
epoch_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromEpochTimeRangeArgs(
epoch_millis=0,
),
iso8601_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromIso8601TimeRangeArgs(
iso8601_time="string",
),
literal_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromLiteralTimeRangeArgs(
range_name="string",
),
relative_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs(
relative_time="string",
),
),
to=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToArgs(
epoch_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToEpochTimeRangeArgs(
epoch_millis=0,
),
iso8601_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToIso8601TimeRangeArgs(
iso8601_time="string",
),
literal_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToLiteralTimeRangeArgs(
range_name="string",
),
relative_time_range=sumologic.MetricsSearchTimeRangeBeginBoundedTimeRangeToRelativeTimeRangeArgs(
relative_time="string",
),
),
),
complete_literal_time_range=sumologic.MetricsSearchTimeRangeCompleteLiteralTimeRangeArgs(
range_name="string",
),
),
title="string",
desired_quantization_in_secs=0,
log_query="string")
const metricsSearchResource = new sumologic.MetricsSearch("metricsSearchResource", {
description: "string",
metricsQueries: [{
query: "string",
rowId: "string",
}],
parentId: "string",
timeRange: {
beginBoundedTimeRange: {
from: {
epochTimeRange: {
epochMillis: 0,
},
iso8601TimeRange: {
iso8601Time: "string",
},
literalTimeRange: {
rangeName: "string",
},
relativeTimeRange: {
relativeTime: "string",
},
},
to: {
epochTimeRange: {
epochMillis: 0,
},
iso8601TimeRange: {
iso8601Time: "string",
},
literalTimeRange: {
rangeName: "string",
},
relativeTimeRange: {
relativeTime: "string",
},
},
},
completeLiteralTimeRange: {
rangeName: "string",
},
},
title: "string",
desiredQuantizationInSecs: 0,
logQuery: "string",
});
type: sumologic:MetricsSearch
properties:
description: string
desiredQuantizationInSecs: 0
logQuery: string
metricsQueries:
- query: string
rowId: string
parentId: string
timeRange:
beginBoundedTimeRange:
from:
epochTimeRange:
epochMillis: 0
iso8601TimeRange:
iso8601Time: string
literalTimeRange:
rangeName: string
relativeTimeRange:
relativeTime: string
to:
epochTimeRange:
epochMillis: 0
iso8601TimeRange:
iso8601Time: string
literalTimeRange:
rangeName: string
relativeTimeRange:
relativeTime: string
completeLiteralTimeRange:
rangeName: string
title: string
MetricsSearch Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MetricsSearch resource accepts the following input properties:
- Description string
- Description of the search.
- Metrics
Queries List<Pulumi.Sumo Logic. Inputs. Metrics Search Metrics Query> - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- Parent
Id string - The identifier of the folder to create the log search in.
- Time
Range Pulumi.Sumo Logic. Inputs. Metrics Search Time Range - Time range of the log search. See time range schema
- Title string
- Title of the search.
- Desired
Quantization intIn Secs - Desired quantization in seconds. Default value is
0
. - Log
Query string - Log query used to add an overlay to the chart.
- Description string
- Description of the search.
- Metrics
Queries []MetricsSearch Metrics Query Args - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- Parent
Id string - The identifier of the folder to create the log search in.
- Time
Range MetricsSearch Time Range Args - Time range of the log search. See time range schema
- Title string
- Title of the search.
- Desired
Quantization intIn Secs - Desired quantization in seconds. Default value is
0
. - Log
Query string - Log query used to add an overlay to the chart.
- description String
- Description of the search.
- metrics
Queries List<MetricsSearch Metrics Query> - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent
Id String - The identifier of the folder to create the log search in.
- time
Range MetricsSearch Time Range - Time range of the log search. See time range schema
- title String
- Title of the search.
- desired
Quantization IntegerIn Secs - Desired quantization in seconds. Default value is
0
. - log
Query String - Log query used to add an overlay to the chart.
- description string
- Description of the search.
- metrics
Queries MetricsSearch Metrics Query[] - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent
Id string - The identifier of the folder to create the log search in.
- time
Range MetricsSearch Time Range - Time range of the log search. See time range schema
- title string
- Title of the search.
- desired
Quantization numberIn Secs - Desired quantization in seconds. Default value is
0
. - log
Query string - Log query used to add an overlay to the chart.
- description str
- Description of the search.
- metrics_
queries Sequence[MetricsSearch Metrics Query Args] - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent_
id str - The identifier of the folder to create the log search in.
- time_
range MetricsSearch Time Range Args - Time range of the log search. See time range schema
- title str
- Title of the search.
- desired_
quantization_ intin_ secs - Desired quantization in seconds. Default value is
0
. - log_
query str - Log query used to add an overlay to the chart.
- description String
- Description of the search.
- metrics
Queries List<Property Map> - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent
Id String - The identifier of the folder to create the log search in.
- time
Range Property Map - Time range of the log search. See time range schema
- title String
- Title of the search.
- desired
Quantization NumberIn Secs - Desired quantization in seconds. Default value is
0
. - log
Query String - Log query used to add an overlay to the chart.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetricsSearch 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 MetricsSearch Resource
Get an existing MetricsSearch 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?: MetricsSearchState, opts?: CustomResourceOptions): MetricsSearch
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
desired_quantization_in_secs: Optional[int] = None,
log_query: Optional[str] = None,
metrics_queries: Optional[Sequence[MetricsSearchMetricsQueryArgs]] = None,
parent_id: Optional[str] = None,
time_range: Optional[MetricsSearchTimeRangeArgs] = None,
title: Optional[str] = None) -> MetricsSearch
func GetMetricsSearch(ctx *Context, name string, id IDInput, state *MetricsSearchState, opts ...ResourceOption) (*MetricsSearch, error)
public static MetricsSearch Get(string name, Input<string> id, MetricsSearchState? state, CustomResourceOptions? opts = null)
public static MetricsSearch get(String name, Output<String> id, MetricsSearchState 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.
- Description string
- Description of the search.
- Desired
Quantization intIn Secs - Desired quantization in seconds. Default value is
0
. - Log
Query string - Log query used to add an overlay to the chart.
- Metrics
Queries List<Pulumi.Sumo Logic. Inputs. Metrics Search Metrics Query> - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- Parent
Id string - The identifier of the folder to create the log search in.
- Time
Range Pulumi.Sumo Logic. Inputs. Metrics Search Time Range - Time range of the log search. See time range schema
- Title string
- Title of the search.
- Description string
- Description of the search.
- Desired
Quantization intIn Secs - Desired quantization in seconds. Default value is
0
. - Log
Query string - Log query used to add an overlay to the chart.
- Metrics
Queries []MetricsSearch Metrics Query Args - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- Parent
Id string - The identifier of the folder to create the log search in.
- Time
Range MetricsSearch Time Range Args - Time range of the log search. See time range schema
- Title string
- Title of the search.
- description String
- Description of the search.
- desired
Quantization IntegerIn Secs - Desired quantization in seconds. Default value is
0
. - log
Query String - Log query used to add an overlay to the chart.
- metrics
Queries List<MetricsSearch Metrics Query> - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent
Id String - The identifier of the folder to create the log search in.
- time
Range MetricsSearch Time Range - Time range of the log search. See time range schema
- title String
- Title of the search.
- description string
- Description of the search.
- desired
Quantization numberIn Secs - Desired quantization in seconds. Default value is
0
. - log
Query string - Log query used to add an overlay to the chart.
- metrics
Queries MetricsSearch Metrics Query[] - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent
Id string - The identifier of the folder to create the log search in.
- time
Range MetricsSearch Time Range - Time range of the log search. See time range schema
- title string
- Title of the search.
- description str
- Description of the search.
- desired_
quantization_ intin_ secs - Desired quantization in seconds. Default value is
0
. - log_
query str - Log query used to add an overlay to the chart.
- metrics_
queries Sequence[MetricsSearch Metrics Query Args] - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent_
id str - The identifier of the folder to create the log search in.
- time_
range MetricsSearch Time Range Args - Time range of the log search. See time range schema
- title str
- Title of the search.
- description String
- Description of the search.
- desired
Quantization NumberIn Secs - Desired quantization in seconds. Default value is
0
. - log
Query String - Log query used to add an overlay to the chart.
- metrics
Queries List<Property Map> - Array of objects MetricsSearchQuery. Metrics queries, up to the maximum of six.
- parent
Id String - The identifier of the folder to create the log search in.
- time
Range Property Map - Time range of the log search. See time range schema
- title String
- Title of the search.
Supporting Types
MetricsSearchMetricsQuery, MetricsSearchMetricsQueryArgs
- Query string
- A metric query consists of a metric, one or more filters and optionally, one or more Metrics Operators.
Strictly speaking, both filters and operators are optional.
Most of the Metrics Operators are allowed in the query string except
fillmissing
,outlier
,quantize
andtimeshift
. In practice, your metric queries will almost always contain filters that narrow the scope of your query. For more information about the query language see Metrics Queries. - Row
Id string - Row id for the query row, A to Z letter.
- Query string
- A metric query consists of a metric, one or more filters and optionally, one or more Metrics Operators.
Strictly speaking, both filters and operators are optional.
Most of the Metrics Operators are allowed in the query string except
fillmissing
,outlier
,quantize
andtimeshift
. In practice, your metric queries will almost always contain filters that narrow the scope of your query. For more information about the query language see Metrics Queries. - Row
Id string - Row id for the query row, A to Z letter.
- query String
- A metric query consists of a metric, one or more filters and optionally, one or more Metrics Operators.
Strictly speaking, both filters and operators are optional.
Most of the Metrics Operators are allowed in the query string except
fillmissing
,outlier
,quantize
andtimeshift
. In practice, your metric queries will almost always contain filters that narrow the scope of your query. For more information about the query language see Metrics Queries. - row
Id String - Row id for the query row, A to Z letter.
- query string
- A metric query consists of a metric, one or more filters and optionally, one or more Metrics Operators.
Strictly speaking, both filters and operators are optional.
Most of the Metrics Operators are allowed in the query string except
fillmissing
,outlier
,quantize
andtimeshift
. In practice, your metric queries will almost always contain filters that narrow the scope of your query. For more information about the query language see Metrics Queries. - row
Id string - Row id for the query row, A to Z letter.
- query str
- A metric query consists of a metric, one or more filters and optionally, one or more Metrics Operators.
Strictly speaking, both filters and operators are optional.
Most of the Metrics Operators are allowed in the query string except
fillmissing
,outlier
,quantize
andtimeshift
. In practice, your metric queries will almost always contain filters that narrow the scope of your query. For more information about the query language see Metrics Queries. - row_
id str - Row id for the query row, A to Z letter.
- query String
- A metric query consists of a metric, one or more filters and optionally, one or more Metrics Operators.
Strictly speaking, both filters and operators are optional.
Most of the Metrics Operators are allowed in the query string except
fillmissing
,outlier
,quantize
andtimeshift
. In practice, your metric queries will almost always contain filters that narrow the scope of your query. For more information about the query language see Metrics Queries. - row
Id String - Row id for the query row, A to Z letter.
MetricsSearchTimeRange, MetricsSearchTimeRangeArgs
- Begin
Bounded Pulumi.Time Range Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range - Bounded time range. See begin_bounded_time_range schema schema for details.
- Complete
Literal Pulumi.Time Range Sumo Logic. Inputs. Metrics Search Time Range Complete Literal Time Range - Literal time range. See complete_literal_time_range schema for details.
- Begin
Bounded MetricsTime Range Search Time Range Begin Bounded Time Range - Bounded time range. See begin_bounded_time_range schema schema for details.
- Complete
Literal MetricsTime Range Search Time Range Complete Literal Time Range - Literal time range. See complete_literal_time_range schema for details.
- begin
Bounded MetricsTime Range Search Time Range Begin Bounded Time Range - Bounded time range. See begin_bounded_time_range schema schema for details.
- complete
Literal MetricsTime Range Search Time Range Complete Literal Time Range - Literal time range. See complete_literal_time_range schema for details.
- begin
Bounded MetricsTime Range Search Time Range Begin Bounded Time Range - Bounded time range. See begin_bounded_time_range schema schema for details.
- complete
Literal MetricsTime Range Search Time Range Complete Literal Time Range - Literal time range. See complete_literal_time_range schema for details.
- begin_
bounded_ Metricstime_ range Search Time Range Begin Bounded Time Range - Bounded time range. See begin_bounded_time_range schema schema for details.
- complete_
literal_ Metricstime_ range Search Time Range Complete Literal Time Range - Literal time range. See complete_literal_time_range schema for details.
- begin
Bounded Property MapTime Range - Bounded time range. See begin_bounded_time_range schema schema for details.
- complete
Literal Property MapTime Range - Literal time range. See complete_literal_time_range schema for details.
MetricsSearchTimeRangeBeginBoundedTimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeArgs
- From
Pulumi.
Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range From - Start boundary of bounded time range. See time_range_boundary schema for details.
- To
Pulumi.
Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range To - End boundary of bounded time range. See time_range_boundary schema for details.
- From
Metrics
Search Time Range Begin Bounded Time Range From - Start boundary of bounded time range. See time_range_boundary schema for details.
- To
Metrics
Search Time Range Begin Bounded Time Range To - End boundary of bounded time range. See time_range_boundary schema for details.
- from
Metrics
Search Time Range Begin Bounded Time Range From - Start boundary of bounded time range. See time_range_boundary schema for details.
- to
Metrics
Search Time Range Begin Bounded Time Range To - End boundary of bounded time range. See time_range_boundary schema for details.
- from
Metrics
Search Time Range Begin Bounded Time Range From - Start boundary of bounded time range. See time_range_boundary schema for details.
- to
Metrics
Search Time Range Begin Bounded Time Range To - End boundary of bounded time range. See time_range_boundary schema for details.
- from_
Metrics
Search Time Range Begin Bounded Time Range From - Start boundary of bounded time range. See time_range_boundary schema for details.
- to
Metrics
Search Time Range Begin Bounded Time Range To - End boundary of bounded time range. See time_range_boundary schema for details.
- from Property Map
- Start boundary of bounded time range. See time_range_boundary schema for details.
- to Property Map
- End boundary of bounded time range. See time_range_boundary schema for details.
MetricsSearchTimeRangeBeginBoundedTimeRangeFrom, MetricsSearchTimeRangeBeginBoundedTimeRangeFromArgs
- Epoch
Time Pulumi.Range Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range From Epoch Time Range - Time since the epoch.
- Iso8601Time
Range Pulumi.Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range From Iso8601Time Range - Time in ISO 8601 format.
- Literal
Time Pulumi.Range Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range From Literal Time Range - Time in literal format.
- Relative
Time Pulumi.Range Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range From Relative Time Range - Time in relative format.
- Epoch
Time MetricsRange Search Time Range Begin Bounded Time Range From Epoch Time Range - Time since the epoch.
- Iso8601Time
Range MetricsSearch Time Range Begin Bounded Time Range From Iso8601Time Range - Time in ISO 8601 format.
- Literal
Time MetricsRange Search Time Range Begin Bounded Time Range From Literal Time Range - Time in literal format.
- Relative
Time MetricsRange Search Time Range Begin Bounded Time Range From Relative Time Range - Time in relative format.
- epoch
Time MetricsRange Search Time Range Begin Bounded Time Range From Epoch Time Range - Time since the epoch.
- iso8601Time
Range MetricsSearch Time Range Begin Bounded Time Range From Iso8601Time Range - Time in ISO 8601 format.
- literal
Time MetricsRange Search Time Range Begin Bounded Time Range From Literal Time Range - Time in literal format.
- relative
Time MetricsRange Search Time Range Begin Bounded Time Range From Relative Time Range - Time in relative format.
- epoch
Time MetricsRange Search Time Range Begin Bounded Time Range From Epoch Time Range - Time since the epoch.
- iso8601Time
Range MetricsSearch Time Range Begin Bounded Time Range From Iso8601Time Range - Time in ISO 8601 format.
- literal
Time MetricsRange Search Time Range Begin Bounded Time Range From Literal Time Range - Time in literal format.
- relative
Time MetricsRange Search Time Range Begin Bounded Time Range From Relative Time Range - Time in relative format.
- epoch_
time_ Metricsrange Search Time Range Begin Bounded Time Range From Epoch Time Range - Time since the epoch.
- iso8601_
time_ Metricsrange Search Time Range Begin Bounded Time Range From Iso8601Time Range - Time in ISO 8601 format.
- literal_
time_ Metricsrange Search Time Range Begin Bounded Time Range From Literal Time Range - Time in literal format.
- relative_
time_ Metricsrange Search Time Range Begin Bounded Time Range From Relative Time Range - Time in relative format.
- epoch
Time Property MapRange - Time since the epoch.
- iso8601Time
Range Property Map - Time in ISO 8601 format.
- literal
Time Property MapRange - Time in literal format.
- relative
Time Property MapRange - Time in relative format.
MetricsSearchTimeRangeBeginBoundedTimeRangeFromEpochTimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeFromEpochTimeRangeArgs
- Epoch
Millis int - Time as a number of milliseconds since the epoch.
- Epoch
Millis int - Time as a number of milliseconds since the epoch.
- epoch
Millis Integer - Time as a number of milliseconds since the epoch.
- epoch
Millis number - Time as a number of milliseconds since the epoch.
- epoch_
millis int - Time as a number of milliseconds since the epoch.
- epoch
Millis Number - Time as a number of milliseconds since the epoch.
MetricsSearchTimeRangeBeginBoundedTimeRangeFromIso8601TimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeFromIso8601TimeRangeArgs
- Iso8601Time string
- Time as a string in ISO 8601 format.
- Iso8601Time string
- Time as a string in ISO 8601 format.
- iso8601Time String
- Time as a string in ISO 8601 format.
- iso8601Time string
- Time as a string in ISO 8601 format.
- iso8601_
time str - Time as a string in ISO 8601 format.
- iso8601Time String
- Time as a string in ISO 8601 format.
MetricsSearchTimeRangeBeginBoundedTimeRangeFromLiteralTimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeFromLiteralTimeRangeArgs
- Range
Name string
- Range
Name string
- range
Name String
- range
Name string
- range_
name str
- range
Name String
MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeFromRelativeTimeRangeArgs
- Relative
Time string Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- Relative
Time string Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative
Time String Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative
Time string Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative_
time str Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative
Time String Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
MetricsSearchTimeRangeBeginBoundedTimeRangeTo, MetricsSearchTimeRangeBeginBoundedTimeRangeToArgs
- Epoch
Time Pulumi.Range Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range To Epoch Time Range - Time since the epoch.
- Iso8601Time
Range Pulumi.Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range To Iso8601Time Range - Time in ISO 8601 format.
- Literal
Time Pulumi.Range Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range To Literal Time Range - Time in literal format.
- Relative
Time Pulumi.Range Sumo Logic. Inputs. Metrics Search Time Range Begin Bounded Time Range To Relative Time Range - Time in relative format.
- Epoch
Time MetricsRange Search Time Range Begin Bounded Time Range To Epoch Time Range - Time since the epoch.
- Iso8601Time
Range MetricsSearch Time Range Begin Bounded Time Range To Iso8601Time Range - Time in ISO 8601 format.
- Literal
Time MetricsRange Search Time Range Begin Bounded Time Range To Literal Time Range - Time in literal format.
- Relative
Time MetricsRange Search Time Range Begin Bounded Time Range To Relative Time Range - Time in relative format.
- epoch
Time MetricsRange Search Time Range Begin Bounded Time Range To Epoch Time Range - Time since the epoch.
- iso8601Time
Range MetricsSearch Time Range Begin Bounded Time Range To Iso8601Time Range - Time in ISO 8601 format.
- literal
Time MetricsRange Search Time Range Begin Bounded Time Range To Literal Time Range - Time in literal format.
- relative
Time MetricsRange Search Time Range Begin Bounded Time Range To Relative Time Range - Time in relative format.
- epoch
Time MetricsRange Search Time Range Begin Bounded Time Range To Epoch Time Range - Time since the epoch.
- iso8601Time
Range MetricsSearch Time Range Begin Bounded Time Range To Iso8601Time Range - Time in ISO 8601 format.
- literal
Time MetricsRange Search Time Range Begin Bounded Time Range To Literal Time Range - Time in literal format.
- relative
Time MetricsRange Search Time Range Begin Bounded Time Range To Relative Time Range - Time in relative format.
- epoch_
time_ Metricsrange Search Time Range Begin Bounded Time Range To Epoch Time Range - Time since the epoch.
- iso8601_
time_ Metricsrange Search Time Range Begin Bounded Time Range To Iso8601Time Range - Time in ISO 8601 format.
- literal_
time_ Metricsrange Search Time Range Begin Bounded Time Range To Literal Time Range - Time in literal format.
- relative_
time_ Metricsrange Search Time Range Begin Bounded Time Range To Relative Time Range - Time in relative format.
- epoch
Time Property MapRange - Time since the epoch.
- iso8601Time
Range Property Map - Time in ISO 8601 format.
- literal
Time Property MapRange - Time in literal format.
- relative
Time Property MapRange - Time in relative format.
MetricsSearchTimeRangeBeginBoundedTimeRangeToEpochTimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeToEpochTimeRangeArgs
- Epoch
Millis int - Time as a number of milliseconds since the epoch.
- Epoch
Millis int - Time as a number of milliseconds since the epoch.
- epoch
Millis Integer - Time as a number of milliseconds since the epoch.
- epoch
Millis number - Time as a number of milliseconds since the epoch.
- epoch_
millis int - Time as a number of milliseconds since the epoch.
- epoch
Millis Number - Time as a number of milliseconds since the epoch.
MetricsSearchTimeRangeBeginBoundedTimeRangeToIso8601TimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeToIso8601TimeRangeArgs
- Iso8601Time string
- Time as a string in ISO 8601 format.
- Iso8601Time string
- Time as a string in ISO 8601 format.
- iso8601Time String
- Time as a string in ISO 8601 format.
- iso8601Time string
- Time as a string in ISO 8601 format.
- iso8601_
time str - Time as a string in ISO 8601 format.
- iso8601Time String
- Time as a string in ISO 8601 format.
MetricsSearchTimeRangeBeginBoundedTimeRangeToLiteralTimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeToLiteralTimeRangeArgs
- Range
Name string
- Range
Name string
- range
Name String
- range
Name string
- range_
name str
- range
Name String
MetricsSearchTimeRangeBeginBoundedTimeRangeToRelativeTimeRange, MetricsSearchTimeRangeBeginBoundedTimeRangeToRelativeTimeRangeArgs
- Relative
Time string Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- Relative
Time string Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative
Time String Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative
Time string Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative_
time str Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
- relative
Time String Relative time as a string consisting of following elements:
-
(optional): minus sign indicates time in the past,<number>
: number of time units,<time_unit>
: time unit; possible values are:w
(week),d
(day),h
(hour),m
(minute),s
(second).
Multiple pairs of
<number><time_unit>
may be provided, and they may be in any order. For example,-2w5d3h
points to the moment in time 2 weeks, 5 days and 3 hours ago.
MetricsSearchTimeRangeCompleteLiteralTimeRange, MetricsSearchTimeRangeCompleteLiteralTimeRangeArgs
- Range
Name string
- Range
Name string
- range
Name String
- range
Name string
- range_
name str
- range
Name String
Import
A metrics search can be imported using it’s identifier, e.g.:
hcl
$ pulumi import sumologic:index/metricsSearch:MetricsSearch example_search 0000000007FFD79D
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sumologic
Terraform Provider.