import * as pulumi from "@pulumi/pulumi"; /** * The `scaleway.CockpitSource` resource allows you to create and manage [data sources](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit. * * Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information. * * ## Example Usage * * ### Create a data source * * The following command allows you to create a [metrics](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#metric) data source named `my-data-source` in a given Project. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const project = new scaleway.AccountProject("project", {}); * const main = new scaleway.CockpitSource("main", { * projectId: project.id, * type: "metrics", * }); * ``` * * ## Import * * This section explains how to import a data source using the ID of the region it is located in, in the `{region}/{id}` format. * * bash * * ```sh * $ pulumi import scaleway:index/cockpitSource:CockpitSource main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class CockpitSource extends pulumi.CustomResource { /** * Get an existing CockpitSource 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, state?: CockpitSourceState, opts?: pulumi.CustomResourceOptions): CockpitSource; /** * Returns true if the given object is an instance of CockpitSource. 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 CockpitSource; /** * The date and time the data source was created (in RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * The name of the data source. */ readonly name: pulumi.Output; /** * The origin of the Cockpit data source. */ readonly origin: pulumi.Output; /** * ) The ID of the Project the data source is associated with. */ readonly projectId: pulumi.Output; /** * The URL endpoint used for pushing data to the Cockpit data source. */ readonly pushUrl: pulumi.Output; /** * ) The region where the data source is located. */ readonly region: pulumi.Output; /** * Indicates whether the data source is synchronized with Grafana. */ readonly synchronizedWithGrafana: pulumi.Output; /** * The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`. */ readonly type: pulumi.Output; /** * The date and time the data source was last updated (in RFC 3339 format). */ readonly updatedAt: pulumi.Output; /** * The URL of the Cockpit data source. */ readonly url: pulumi.Output; /** * Create a CockpitSource 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?: CockpitSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CockpitSource resources. */ export interface CockpitSourceState { /** * The date and time the data source was created (in RFC 3339 format). */ createdAt?: pulumi.Input; /** * The name of the data source. */ name?: pulumi.Input; /** * The origin of the Cockpit data source. */ origin?: pulumi.Input; /** * ) The ID of the Project the data source is associated with. */ projectId?: pulumi.Input; /** * The URL endpoint used for pushing data to the Cockpit data source. */ pushUrl?: pulumi.Input; /** * ) The region where the data source is located. */ region?: pulumi.Input; /** * Indicates whether the data source is synchronized with Grafana. */ synchronizedWithGrafana?: pulumi.Input; /** * The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`. */ type?: pulumi.Input; /** * The date and time the data source was last updated (in RFC 3339 format). */ updatedAt?: pulumi.Input; /** * The URL of the Cockpit data source. */ url?: pulumi.Input; } /** * The set of arguments for constructing a CockpitSource resource. */ export interface CockpitSourceArgs { /** * The name of the data source. */ name?: pulumi.Input; /** * ) The ID of the Project the data source is associated with. */ projectId?: pulumi.Input; /** * ) The region where the data source is located. */ region?: pulumi.Input; /** * The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`. */ type?: pulumi.Input; }