@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
152 lines (151 loc) • 5.14 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Provides a [Sumologic Metrics Search V2][1].
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const personalFolder = sumologic.getPersonalFolder({});
* const exampleMetricsSearch = new sumologic.MetricsSearchV2("example_metrics_search", {
* title: "Demo Metrics Search",
* description: "Demo search description",
* folderId: personalFolder.then(personalFolder => personalFolder.id),
* queries: [{
* queryKey: "A",
* queryString: "metric=cpu_idle | avg",
* queryType: "Metrics",
* metricsQueryMode: "Advanced",
* }],
* timeRange: {
* beginBoundedTimeRange: {
* from: {
* relativeTimeRange: {
* relativeTime: "-30m",
* },
* },
* },
* },
* });
* ```
*
* ## Attributes reference
*
* In addition to all arguments above, the following attributes are exported:
*
* - `id` - The ID of the metrics search.
*
* ## Import
*
* A metrics search can be imported using it's identifier, e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/metricsSearchV2:MetricsSearchV2 example_search 0000000007FFD79D
* ```
*
* [1]: https://help.sumologic.com/docs/metrics/metrics-queries/metrics-explorer/
*/
export declare class MetricsSearchV2 extends pulumi.CustomResource {
/**
* Get an existing MetricsSearchV2 resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MetricsSearchV2State, opts?: pulumi.CustomResourceOptions): MetricsSearchV2;
/**
* Returns true if the given object is an instance of MetricsSearchV2. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is MetricsSearchV2;
/**
* Description of the search.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The identifier of the folder to create the metrics search in.
*/
readonly folderId: pulumi.Output<string | undefined>;
/**
* Array of objects MetricsSearchQueryV2. Metrics queries, up to the maximum of six.
*/
readonly queries: pulumi.Output<outputs.MetricsSearchV2Query[]>;
/**
* Time range of the metrics search. See time range schema
*/
readonly timeRange: pulumi.Output<outputs.MetricsSearchV2TimeRange>;
/**
* Title of the search.
*/
readonly title: pulumi.Output<string>;
readonly visualSettings: pulumi.Output<string | undefined>;
/**
* Create a MetricsSearchV2 resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: MetricsSearchV2Args, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering MetricsSearchV2 resources.
*/
export interface MetricsSearchV2State {
/**
* Description of the search.
*/
description?: pulumi.Input<string>;
/**
* The identifier of the folder to create the metrics search in.
*/
folderId?: pulumi.Input<string>;
/**
* Array of objects MetricsSearchQueryV2. Metrics queries, up to the maximum of six.
*/
queries?: pulumi.Input<pulumi.Input<inputs.MetricsSearchV2Query>[]>;
/**
* Time range of the metrics search. See time range schema
*/
timeRange?: pulumi.Input<inputs.MetricsSearchV2TimeRange>;
/**
* Title of the search.
*/
title?: pulumi.Input<string>;
visualSettings?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MetricsSearchV2 resource.
*/
export interface MetricsSearchV2Args {
/**
* Description of the search.
*/
description?: pulumi.Input<string>;
/**
* The identifier of the folder to create the metrics search in.
*/
folderId?: pulumi.Input<string>;
/**
* Array of objects MetricsSearchQueryV2. Metrics queries, up to the maximum of six.
*/
queries: pulumi.Input<pulumi.Input<inputs.MetricsSearchV2Query>[]>;
/**
* Time range of the metrics search. See time range schema
*/
timeRange: pulumi.Input<inputs.MetricsSearchV2TimeRange>;
/**
* Title of the search.
*/
title: pulumi.Input<string>;
visualSettings?: pulumi.Input<string>;
}