import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Management Agent Data Source resource in Oracle Cloud Infrastructure Management Agent service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/management-agent/latest/ManagementAgentDataSource * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/management_agent * * Datasource creation request to given Management Agent. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagementAgentDataSource = new oci.managementagent.ManagementAgentDataSource("test_management_agent_data_source", { * compartmentId: compartmentId, * managementAgentId: testManagementAgent.id, * name: managementAgentDataSourceName, * type: managementAgentDataSourceType, * url: managementAgentDataSourceUrl, * allowMetrics: managementAgentDataSourceAllowMetrics, * connectionTimeout: Number(managementAgentDataSourceConnectionTimeout), * metricDimensions: [{ * name: managementAgentDataSourceMetricDimensionsName, * value: managementAgentDataSourceMetricDimensionsValue, * }], * namespace: managementAgentDataSourceNamespace, * proxyUrl: managementAgentDataSourceProxyUrl, * readDataLimitInKilobytes: Number(managementAgentDataSourceReadDataLimitInKilobytes), * readTimeout: Number(managementAgentDataSourceReadTimeout), * resourceGroup: managementAgentDataSourceResourceGroup, * scheduleMins: Number(managementAgentDataSourceScheduleMins), * }); * ``` * * ## Import * * ManagementAgentDataSources can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ManagementAgent/managementAgentDataSource:ManagementAgentDataSource test_management_agent_data_source "managementAgents/{managementAgentId}/dataSources/{key}" * ``` */ export declare class ManagementAgentDataSource extends pulumi.CustomResource { /** * Get an existing ManagementAgentDataSource 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?: ManagementAgentDataSourceState, opts?: pulumi.CustomResourceOptions): ManagementAgentDataSource; /** * Returns true if the given object is an instance of ManagementAgentDataSource. 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 ManagementAgentDataSource; /** * (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required. */ readonly allowMetrics: pulumi.Output; /** * Compartment owning this DataSource. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint. */ readonly connectionTimeout: pulumi.Output; readonly dataSourceKey: pulumi.Output; /** * If the Kubernetes cluster type is Daemon set then this will be set to true. */ readonly isDaemonSet: pulumi.Output; /** * Unique Management Agent identifier */ readonly managementAgentId: pulumi.Output; /** * (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint. */ readonly metricDimensions: pulumi.Output; /** * Unique name of the DataSource. */ readonly name: pulumi.Output; /** * The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded. */ readonly namespace: pulumi.Output; /** * (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property). */ readonly proxyUrl: pulumi.Output; /** * Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB). */ readonly readDataLimit: pulumi.Output; /** * (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB). */ readonly readDataLimitInKilobytes: pulumi.Output; /** * (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint. */ readonly readTimeout: pulumi.Output; /** * (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to. */ readonly resourceGroup: pulumi.Output; /** * (Updatable) Number in minutes. The scraping occurs at the specified interval. */ readonly scheduleMins: pulumi.Output; /** * State of the DataSource. */ readonly state: pulumi.Output; /** * The time the DataSource was created. An RFC3339 formatted datetime string */ readonly timeCreated: pulumi.Output; /** * The time the DataSource data was last received. An RFC3339 formatted datetime string */ readonly timeUpdated: pulumi.Output; /** * (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER */ readonly type: pulumi.Output; /** * (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only) * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly url: pulumi.Output; /** * Create a ManagementAgentDataSource 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: ManagementAgentDataSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagementAgentDataSource resources. */ export interface ManagementAgentDataSourceState { /** * (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required. */ allowMetrics?: pulumi.Input; /** * Compartment owning this DataSource. */ compartmentId?: pulumi.Input; /** * (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint. */ connectionTimeout?: pulumi.Input; dataSourceKey?: pulumi.Input; /** * If the Kubernetes cluster type is Daemon set then this will be set to true. */ isDaemonSet?: pulumi.Input; /** * Unique Management Agent identifier */ managementAgentId?: pulumi.Input; /** * (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint. */ metricDimensions?: pulumi.Input[] | undefined>; /** * Unique name of the DataSource. */ name?: pulumi.Input; /** * The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded. */ namespace?: pulumi.Input; /** * (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property). */ proxyUrl?: pulumi.Input; /** * Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB). */ readDataLimit?: pulumi.Input; /** * (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB). */ readDataLimitInKilobytes?: pulumi.Input; /** * (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint. */ readTimeout?: pulumi.Input; /** * (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to. */ resourceGroup?: pulumi.Input; /** * (Updatable) Number in minutes. The scraping occurs at the specified interval. */ scheduleMins?: pulumi.Input; /** * State of the DataSource. */ state?: pulumi.Input; /** * The time the DataSource was created. An RFC3339 formatted datetime string */ timeCreated?: pulumi.Input; /** * The time the DataSource data was last received. An RFC3339 formatted datetime string */ timeUpdated?: pulumi.Input; /** * (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER */ type?: pulumi.Input; /** * (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only) * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ url?: pulumi.Input; } /** * The set of arguments for constructing a ManagementAgentDataSource resource. */ export interface ManagementAgentDataSourceArgs { /** * (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required. */ allowMetrics?: pulumi.Input; /** * Compartment owning this DataSource. */ compartmentId: pulumi.Input; /** * (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint. */ connectionTimeout?: pulumi.Input; /** * Unique Management Agent identifier */ managementAgentId: pulumi.Input; /** * (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint. */ metricDimensions?: pulumi.Input[] | undefined>; /** * Unique name of the DataSource. */ name?: pulumi.Input; /** * The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded. */ namespace?: pulumi.Input; /** * (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property). */ proxyUrl?: pulumi.Input; /** * (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB). */ readDataLimitInKilobytes?: pulumi.Input; /** * (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint. */ readTimeout?: pulumi.Input; /** * (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to. */ resourceGroup?: pulumi.Input; /** * (Updatable) Number in minutes. The scraping occurs at the specified interval. */ scheduleMins?: pulumi.Input; /** * (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER */ type: pulumi.Input; /** * (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only) * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ url: pulumi.Input; } //# sourceMappingURL=managementAgentDataSource.d.ts.map