import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Http Monitor resource in Oracle Cloud Infrastructure Health Checks service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/healthchecks/latest/HttpMonitor * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/health_checks * * Creates an HTTP monitor. Vantage points will be automatically selected if not specified, * and probes will be initiated from each vantage point to each of the targets at the frequency * specified by `intervalInSeconds`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testHttpMonitor = new oci.healthchecks.HttpMonitor("test_http_monitor", { * compartmentId: compartmentId, * displayName: httpMonitorDisplayName, * intervalInSeconds: Number(httpMonitorIntervalInSeconds), * protocol: httpMonitorProtocol, * targets: httpMonitorTargets, * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * headers: httpMonitorHeaders, * isEnabled: httpMonitorIsEnabled === "true", * method: httpMonitorMethod, * path: httpMonitorPath, * port: Number(httpMonitorPort), * timeoutInSeconds: Number(httpMonitorTimeoutInSeconds), * vantagePointNames: httpMonitorVantagePointNames, * }); * ``` * * ## Import * * HttpMonitors can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:HealthChecks/httpMonitor:HttpMonitor test_http_monitor "id" * ``` */ export declare class HttpMonitor extends pulumi.CustomResource { /** * Get an existing HttpMonitor 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?: HttpMonitorState, opts?: pulumi.CustomResourceOptions): HttpMonitor; /** * Returns true if the given object is an instance of HttpMonitor. 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 HttpMonitor; /** * (Updatable) The OCID of the compartment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A user-friendly and mutable name suitable for display in a user interface. */ readonly displayName: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A dictionary of HTTP request headers. * * *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header. */ readonly headers: pulumi.Output<{ [key: string]: string; }>; /** * The region where updates must be made and where results must be fetched from. */ readonly homeRegion: pulumi.Output; /** * (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60. */ readonly intervalInSeconds: pulumi.Output; /** * (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring. */ readonly isEnabled: pulumi.Output; /** * (Updatable) The supported HTTP methods available for probes. */ readonly method: pulumi.Output; /** * (Updatable) The optional URL path to probe, including query parameters. */ readonly path: pulumi.Output; /** * (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. */ readonly port: pulumi.Output; /** * (Updatable) The supported protocols available for HTTP probes. */ readonly protocol: pulumi.Output; /** * A URL for fetching the probe results. */ readonly resultsUrl: pulumi.Output; /** * (Updatable) A list of targets (hostnames or IP addresses) of the probe. */ readonly targets: pulumi.Output; /** * The RFC 3339-formatted creation date and time of the probe. */ readonly timeCreated: pulumi.Output; /** * (Updatable) The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal to `intervalInSeconds` for monitors. */ readonly timeoutInSeconds: pulumi.Output; /** * (Updatable) A list of names of vantage points from which to execute the probe. * * ** 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 vantagePointNames: pulumi.Output; /** * Create a HttpMonitor 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: HttpMonitorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HttpMonitor resources. */ export interface HttpMonitorState { /** * (Updatable) The OCID of the compartment. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly and mutable name suitable for display in a user interface. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A dictionary of HTTP request headers. * * *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header. */ headers?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The region where updates must be made and where results must be fetched from. */ homeRegion?: pulumi.Input; /** * (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60. */ intervalInSeconds?: pulumi.Input; /** * (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring. */ isEnabled?: pulumi.Input; /** * (Updatable) The supported HTTP methods available for probes. */ method?: pulumi.Input; /** * (Updatable) The optional URL path to probe, including query parameters. */ path?: pulumi.Input; /** * (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. */ port?: pulumi.Input; /** * (Updatable) The supported protocols available for HTTP probes. */ protocol?: pulumi.Input; /** * A URL for fetching the probe results. */ resultsUrl?: pulumi.Input; /** * (Updatable) A list of targets (hostnames or IP addresses) of the probe. */ targets?: pulumi.Input[] | undefined>; /** * The RFC 3339-formatted creation date and time of the probe. */ timeCreated?: pulumi.Input; /** * (Updatable) The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal to `intervalInSeconds` for monitors. */ timeoutInSeconds?: pulumi.Input; /** * (Updatable) A list of names of vantage points from which to execute the probe. * * ** 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 */ vantagePointNames?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a HttpMonitor resource. */ export interface HttpMonitorArgs { /** * (Updatable) The OCID of the compartment. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly and mutable name suitable for display in a user interface. */ displayName: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A dictionary of HTTP request headers. * * *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header. */ headers?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60. */ intervalInSeconds: pulumi.Input; /** * (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring. */ isEnabled?: pulumi.Input; /** * (Updatable) The supported HTTP methods available for probes. */ method?: pulumi.Input; /** * (Updatable) The optional URL path to probe, including query parameters. */ path?: pulumi.Input; /** * (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. */ port?: pulumi.Input; /** * (Updatable) The supported protocols available for HTTP probes. */ protocol: pulumi.Input; /** * (Updatable) A list of targets (hostnames or IP addresses) of the probe. */ targets: pulumi.Input[]>; /** * (Updatable) The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal to `intervalInSeconds` for monitors. */ timeoutInSeconds?: pulumi.Input; /** * (Updatable) A list of names of vantage points from which to execute the probe. * * ** 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 */ vantagePointNames?: pulumi.Input[] | undefined>; } //# sourceMappingURL=httpMonitor.d.ts.map