import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
 * This resource allows you to configure metric sources for your Statsig project.
 *
 * To learn more about metric sources, see [Metric Source Documentation](https://docs.statsig.com/statsig-warehouse-native/configuration/metric-sources)
 *
 * To learn more about the API powering this resource, see [Metrics API Documentation](https://docs.statsig.com/console-api/metrics)
 *
 * > Note: This resource is only available for [Warehouse Native](https://docs.statsig.com/statsig-warehouse-native/introduction/) projects
 */
export declare class MetricSource extends pulumi.CustomResource {
    /**
     * Get an existing MetricSource 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?: MetricSourceState, opts?: pulumi.CustomResourceOptions): MetricSource;
    /**
     * Returns true if the given object is an instance of MetricSource.  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 MetricSource;
    /**
     * Optional array defining mappings for custom fields using specific formulas.
     */
    readonly customFieldMappings: pulumi.Output<outputs.MetricSourceCustomFieldMapping[]>;
    /**
     * An optional description for the metric source, providing context and details about its purpose and usage.
     */
    readonly description: pulumi.Output<string>;
    /**
     * Array defining the mapping between Statsig unit IDs and their respective source columns.
     */
    readonly idTypeMappings: pulumi.Output<outputs.MetricSourceIdTypeMapping[]>;
    /**
     * Specifies if the source can only be edited via the Console API.
     */
    readonly isReadOnly: pulumi.Output<boolean>;
    /**
     * The name of the metric source, serving as its primary identifier.
     */
    readonly name: pulumi.Output<string>;
    /**
     * Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
     */
    readonly owner: pulumi.Output<outputs.MetricSourceOwner>;
    /**
     * The type of source, indicating whether it is a database table or a custom query.
     */
    readonly sourceType: pulumi.Output<string>;
    /**
     * The SQL query or statement used to extract data from the metric source.
     */
    readonly sql: pulumi.Output<string>;
    /**
     * The name of the database table if the source type is "table".
     */
    readonly tableName: pulumi.Output<string>;
    /**
     * Optional array of tags to categorize the metric source, facilitating easier organization and retrieval.
     */
    readonly tags: pulumi.Output<string[]>;
    /**
     * Indicates whether the timestamp should be treated as a day-level granularity.
     */
    readonly timestampAsDay: pulumi.Output<boolean>;
    /**
     * The name of the column containing timestamp data for the metric source.
     */
    readonly timestampColumn: pulumi.Output<string>;
    /**
     * Create a MetricSource 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: MetricSourceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering MetricSource resources.
 */
export interface MetricSourceState {
    /**
     * Optional array defining mappings for custom fields using specific formulas.
     */
    customFieldMappings?: pulumi.Input<pulumi.Input<inputs.MetricSourceCustomFieldMapping>[]>;
    /**
     * An optional description for the metric source, providing context and details about its purpose and usage.
     */
    description?: pulumi.Input<string>;
    /**
     * Array defining the mapping between Statsig unit IDs and their respective source columns.
     */
    idTypeMappings?: pulumi.Input<pulumi.Input<inputs.MetricSourceIdTypeMapping>[]>;
    /**
     * Specifies if the source can only be edited via the Console API.
     */
    isReadOnly?: pulumi.Input<boolean>;
    /**
     * The name of the metric source, serving as its primary identifier.
     */
    name?: pulumi.Input<string>;
    /**
     * Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
     */
    owner?: pulumi.Input<inputs.MetricSourceOwner>;
    /**
     * The type of source, indicating whether it is a database table or a custom query.
     */
    sourceType?: pulumi.Input<string>;
    /**
     * The SQL query or statement used to extract data from the metric source.
     */
    sql?: pulumi.Input<string>;
    /**
     * The name of the database table if the source type is "table".
     */
    tableName?: pulumi.Input<string>;
    /**
     * Optional array of tags to categorize the metric source, facilitating easier organization and retrieval.
     */
    tags?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * Indicates whether the timestamp should be treated as a day-level granularity.
     */
    timestampAsDay?: pulumi.Input<boolean>;
    /**
     * The name of the column containing timestamp data for the metric source.
     */
    timestampColumn?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a MetricSource resource.
 */
export interface MetricSourceArgs {
    /**
     * Optional array defining mappings for custom fields using specific formulas.
     */
    customFieldMappings?: pulumi.Input<pulumi.Input<inputs.MetricSourceCustomFieldMapping>[]>;
    /**
     * An optional description for the metric source, providing context and details about its purpose and usage.
     */
    description?: pulumi.Input<string>;
    /**
     * Array defining the mapping between Statsig unit IDs and their respective source columns.
     */
    idTypeMappings: pulumi.Input<pulumi.Input<inputs.MetricSourceIdTypeMapping>[]>;
    /**
     * Specifies if the source can only be edited via the Console API.
     */
    isReadOnly?: pulumi.Input<boolean>;
    /**
     * The name of the metric source, serving as its primary identifier.
     */
    name?: pulumi.Input<string>;
    /**
     * Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
     */
    owner?: pulumi.Input<inputs.MetricSourceOwner>;
    /**
     * The type of source, indicating whether it is a database table or a custom query.
     */
    sourceType?: pulumi.Input<string>;
    /**
     * The SQL query or statement used to extract data from the metric source.
     */
    sql: pulumi.Input<string>;
    /**
     * The name of the database table if the source type is "table".
     */
    tableName?: pulumi.Input<string>;
    /**
     * Optional array of tags to categorize the metric source, facilitating easier organization and retrieval.
     */
    tags?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * Indicates whether the timestamp should be treated as a day-level granularity.
     */
    timestampAsDay?: pulumi.Input<boolean>;
    /**
     * The name of the column containing timestamp data for the metric source.
     */
    timestampColumn: pulumi.Input<string>;
}
