import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Metric Extensions in Oracle Cloud Infrastructure Stack Monitoring service. * * Returns a list of metric extensions * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMetricExtensions = oci.stackmonitoring.getMetricExtensions({ * compartmentId: compartmentId, * enabledOnResourceId: testResource.id, * metricExtensionId: testMetricExtension.id, * name: metricExtensionName, * resourceType: metricExtensionResourceType, * state: metricExtensionState, * status: metricExtensionStatus, * }); * ``` */ export declare function getMetricExtensions(args?: GetMetricExtensionsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getMetricExtensions. */ export interface GetMetricExtensionsArgs { /** * The ID of the compartment in which data is listed. */ compartmentId?: string; /** * A filter to return metric extensions based on input resource Id on which metric extension is enabled */ enabledOnResourceId?: string; filters?: inputs.StackMonitoring.GetMetricExtensionsFilter[]; /** * Identifier for the metric extension */ metricExtensionId?: string; /** * A filter to return resources based on name. */ name?: string; /** * A filter to return resources based on resource type. */ resourceType?: string; /** * A filter to return metric extensions based on Lifecycle State */ state?: string; /** * A filter to return resources based on status e.g. Draft or Published */ status?: string; } /** * A collection of values returned by getMetricExtensions. */ export interface GetMetricExtensionsResult { /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) */ readonly compartmentId?: string; readonly enabledOnResourceId?: string; readonly filters?: outputs.StackMonitoring.GetMetricExtensionsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of metric_extension_collection. */ readonly metricExtensionCollections: outputs.StackMonitoring.GetMetricExtensionsMetricExtensionCollection[]; readonly metricExtensionId?: string; /** * Name of the script file */ readonly name?: string; /** * Resource type to which Metric Extension applies */ readonly resourceType?: string; /** * The current lifecycle state of the metric extension */ readonly state?: string; /** * The current status of the metric extension i.e. whether it is Draft or Published */ readonly status?: string; } /** * This data source provides the list of Metric Extensions in Oracle Cloud Infrastructure Stack Monitoring service. * * Returns a list of metric extensions * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMetricExtensions = oci.stackmonitoring.getMetricExtensions({ * compartmentId: compartmentId, * enabledOnResourceId: testResource.id, * metricExtensionId: testMetricExtension.id, * name: metricExtensionName, * resourceType: metricExtensionResourceType, * state: metricExtensionState, * status: metricExtensionStatus, * }); * ``` */ export declare function getMetricExtensionsOutput(args?: GetMetricExtensionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getMetricExtensions. */ export interface GetMetricExtensionsOutputArgs { /** * The ID of the compartment in which data is listed. */ compartmentId?: pulumi.Input; /** * A filter to return metric extensions based on input resource Id on which metric extension is enabled */ enabledOnResourceId?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Identifier for the metric extension */ metricExtensionId?: pulumi.Input; /** * A filter to return resources based on name. */ name?: pulumi.Input; /** * A filter to return resources based on resource type. */ resourceType?: pulumi.Input; /** * A filter to return metric extensions based on Lifecycle State */ state?: pulumi.Input; /** * A filter to return resources based on status e.g. Draft or Published */ status?: pulumi.Input; } //# sourceMappingURL=getMetricExtensions.d.ts.map