import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to validate a grok pattern. More information on Terraform's data sources can be found here. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * // Data source * const foo = newrelic.getTestGrokPattern({ * grok: "%{IP:host_ip}", * logLines: [ * "host_ip: 43.3.120.2", * "bytes_received: 2048", * ], * }); * ``` */ export declare function getTestGrokPattern(args: GetTestGrokPatternArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTestGrokPattern. */ export interface GetTestGrokPatternArgs { /** * The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. */ accountId?: string; /** * The Grok pattern to test. */ grok: string; /** * The log lines to test the Grok pattern against. */ logLines: string[]; } /** * A collection of values returned by getTestGrokPattern. */ export interface GetTestGrokPatternResult { readonly accountId?: string; readonly grok: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly logLines: string[]; /** * Nested attribute containing information about the test of Grok pattern against a list of log lines. */ readonly testGroks: outputs.GetTestGrokPatternTestGrok[]; } /** * Use this data source to validate a grok pattern. More information on Terraform's data sources can be found here. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * // Data source * const foo = newrelic.getTestGrokPattern({ * grok: "%{IP:host_ip}", * logLines: [ * "host_ip: 43.3.120.2", * "bytes_received: 2048", * ], * }); * ``` */ export declare function getTestGrokPatternOutput(args: GetTestGrokPatternOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTestGrokPattern. */ export interface GetTestGrokPatternOutputArgs { /** * The New Relic account ID to operate on. This allows you to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`. */ accountId?: pulumi.Input; /** * The Grok pattern to test. */ grok: pulumi.Input; /** * The log lines to test the Grok pattern against. */ logLines: pulumi.Input[]>; } //# sourceMappingURL=getTestGrokPattern.d.ts.map