Skip to content

Commit

Permalink
Merge pull request #61 from wasfree/feature/update-uptrends-go-sdk
Browse files Browse the repository at this point in the history
update uptrends-go-sdk
  • Loading branch information
wasfree authored Dec 5, 2022
2 parents 3e656e5 + 315adc8 commit a51528c
Show file tree
Hide file tree
Showing 337 changed files with 20,840 additions and 9,879 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ terraform {
required_providers {
uptrends = {
source = "wasfree/uptrends"
version = "=0.2.0"
version = "=0.2.3"
}
}
}
Expand Down Expand Up @@ -79,7 +79,7 @@ Further [usage documentation is available on the Terraform website](https://www.
## Developer Requirements

* [Terraform](https://www.terraform.io/downloads.html) version 0.15.x + (but 1.x is recommended)
* [Go](https://golang.org/doc/install) version 1.17.x (to build the provider plugin)
* [Go](https://golang.org/doc/install) version 1.19.x (to build the provider plugin)

### On Windows

Expand Down
67 changes: 33 additions & 34 deletions docs/resources/monitor_certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,51 +49,50 @@ resource "uptrends_monitor_certificate" "example" {

### Required

- **name** (String) Display name for the Ping Monitor resource.
- **url** (String) The full URL of the appropriate website, page or service that you want to monitor. The URL should include “https://”, please also include a port number if you are using a non-default port number, e.g. https://your-domain.com:8080/your-page. You can also use a fixed IP address as part of the URL instead of a host name, if your server listens to incoming requests without a host name.
- `name` (String) Display name for the Ping Monitor resource.
- `url` (String) The full URL of the appropriate website, page or service that you want to monitor. The URL should include “https://”, please also include a port number if you are using a non-default port number, e.g. https://your-domain.com:8080/your-page. You can also use a fixed IP address as part of the URL instead of a host name, if your server listens to incoming requests without a host name.

### Optional

- **alert_on_load_time_limit_1** (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_1 threshold. Shows a yellow status in performance monitor. Defaults to `false`.
- **alert_on_load_time_limit_2** (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_2. Shows a red status in performance monitor. Defaults to `false`.
- **auth_type** (String) Specify the username of the appropriate credentials here. Defaults to `None`.
- **cert_expiration_warning_days** (Number) Specify the expiration warning days of the certificate. Defaults to `7` days.
- **cert_fingerprint** (String) Specify the fingerprint of the certificate. Defaults to empty string to not check this field.
- **cert_issuer_company_name** (String) Specify the issuer company name of the certificate. Defaults to empty string to not check this field.
- **cert_issuer_name** (String) Specify the issuer common name of the certificate. Defaults to empty string to not check this field.
- **cert_issuer_org_unit** (String) Specify the issuer org unit of the certificate. Defaults to empty string to not check this field.
- **cert_name** (String) Specify the common name of the certificate. Defaults to empty string to not check this field.
- **cert_org** (String) Specify the organization of the certificate. Defaults to empty string to not check this field.
- **cert_org_unit** (String) Specify the organizational unit of the certificate. Defaults to empty string to not check this field.
- **cert_serial_number** (String) Specify the serial number of the certificate. Defaults to empty string to not check this field.
- **check_cert_errors** (Boolean) An HTTPS check will only pass our checks if the SSL certificate does not cause any errors. Only set this option to `false` if you really want to ignore SSL certificate issues. This parameter takes only effect if `type` has been set to `Https`.
- **check_interval** (Number) Numeric value for the time interval between individual checks, in minutes. The maximum value is 240 (4 hours). The minimum value depends on the type of monitor. Defaults to `5`.
- **generate_alert** (Boolean) When set to false, no alerts will be generated for this monitor in case of an error. Defaults to `true`.
- **id** (String) The ID of this resource.
- **ip_version** (String) IpV4 or IpV6. Indicates which IP version should be used to connect to the server or network address you specify. If you choose IPv6, the monitor will only be executed on checkpoint locations that support IPv6. Defaults to `IpV4`.
- **is_active** (Boolean) Indicates whether the monitor is actively running in the account. Defaults to `true`.
- **load_time_limit_1** (Number) Set threshold time in ms for requires `alert_on_load_time_limit_1` to be enabled. Defaults to `2500`.
- **load_time_limit_2** (Number) Set threshold time in ms for requires `alert_on_load_time_limit_2` to be enabled. Defaults to `5000`.
- **mode** (String) The monitor mode, either Development, Staging or Production. Defaults to `Production`. If monitoring mode is Development `is_active` has to be `false`
- **name_for_phone_alerts** (String) The value for the speech-friendly monitor name, if applicable. This is the monitor name we’ll use in text-to-speech phone alerting, provided that the ‘Use alternate monitor names’ option has been enabled in the phone alert integration.
- **native_ipv6_only** (Boolean) True or False. This setting only applies when you select IpV6 for the IpVersion field. Set this value to true to only execute your monitor on checkpoint servers that support native IPv6 connectivity. Defaults to `false`.
- **notes** (String) Your notes for this monitor.
- **password** (String, Sensitive) See the Username field. Specify the corresponding password value here.
- **primary_checkpoints_only** (Boolean) Only set this to False when you’re sure you want to execute your monitor on non-primary checkpoints. Defaults to `true`.
- **selected_checkpoints** (Block List, Max: 1) (see [below for nested schema](#nestedblock--selected_checkpoints))
- **username** (String) Specify the username of the appropriate credentials here.
- `alert_on_load_time_limit_1` (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_1 threshold. Shows a yellow status in performance monitor. Defaults to `false`.
- `alert_on_load_time_limit_2` (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_2. Shows a red status in performance monitor. Defaults to `false`.
- `auth_type` (String) Specify the username of the appropriate credentials here. Defaults to `None`.
- `cert_expiration_warning_days` (Number) Specify the expiration warning days of the certificate. Defaults to `7` days.
- `cert_fingerprint` (String) Specify the fingerprint of the certificate. Defaults to empty string to not check this field.
- `cert_issuer_company_name` (String) Specify the issuer company name of the certificate. Defaults to empty string to not check this field.
- `cert_issuer_name` (String) Specify the issuer common name of the certificate. Defaults to empty string to not check this field.
- `cert_issuer_org_unit` (String) Specify the issuer org unit of the certificate. Defaults to empty string to not check this field.
- `cert_name` (String) Specify the common name of the certificate. Defaults to empty string to not check this field.
- `cert_org` (String) Specify the organization of the certificate. Defaults to empty string to not check this field.
- `cert_org_unit` (String) Specify the organizational unit of the certificate. Defaults to empty string to not check this field.
- `cert_serial_number` (String) Specify the serial number of the certificate. Defaults to empty string to not check this field.
- `check_cert_errors` (Boolean) An HTTPS check will only pass our checks if the SSL certificate does not cause any errors. Only set this option to `false` if you really want to ignore SSL certificate issues. This parameter takes only effect if `type` has been set to `Https`.
- `check_interval` (Number) Numeric value for the time interval between individual checks, in minutes. The maximum value is 240 (4 hours). The minimum value depends on the type of monitor. Defaults to `5`.
- `generate_alert` (Boolean) When set to false, no alerts will be generated for this monitor in case of an error. Defaults to `true`.
- `ip_version` (String) IpV4 or IpV6. Indicates which IP version should be used to connect to the server or network address you specify. If you choose IPv6, the monitor will only be executed on checkpoint locations that support IPv6. Defaults to `IpV4`.
- `is_active` (Boolean) Indicates whether the monitor is actively running in the account. Defaults to `true`.
- `load_time_limit_1` (Number) Set threshold time in ms for requires `alert_on_load_time_limit_1` to be enabled. Defaults to `2500`.
- `load_time_limit_2` (Number) Set threshold time in ms for requires `alert_on_load_time_limit_2` to be enabled. Defaults to `5000`.
- `mode` (String) The monitor mode, either Development, Staging or Production. Defaults to `Production`. If monitoring mode is Development `is_active` has to be `false`
- `name_for_phone_alerts` (String) The value for the speech-friendly monitor name, if applicable. This is the monitor name we’ll use in text-to-speech phone alerting, provided that the ‘Use alternate monitor names’ option has been enabled in the phone alert integration.
- `notes` (String) Your notes for this monitor.
- `password` (String, Sensitive) See the Username field. Specify the corresponding password value here.
- `primary_checkpoints_only` (Boolean) Only set this to False when you’re sure you want to execute your monitor on non-primary checkpoints. Defaults to `true`.
- `selected_checkpoints` (Block List, Max: 1) (see [below for nested schema](#nestedblock--selected_checkpoints))
- `username` (String) Specify the username of the appropriate credentials here.

### Read-Only

- **is_locked** (Boolean) It specifies whether the monitor is currently locked for editing. This happens if the Support team is reviewing your monitor.
- `id` (String) The ID of this resource.
- `is_locked` (Boolean) It specifies whether the monitor is currently locked for editing. This happens if the Support team is reviewing your monitor.

<a id="nestedblock--selected_checkpoints"></a>
### Nested Schema for `selected_checkpoints`

Optional:

- **checkpoints** (Set of String) A checkpoint is a geographic location from which you can have your service uptime and performance checked periodically. Provide checkpoint ids or names.
- **exclude_locations** (Set of String) It is possible to keep an entire region of checkpoints (e.g. Canada) selected (with the benefit of automatically getting new checkpoints as they are added to that region) but have additional control over individual checkpoint locations that you want to skip. Provide checkpoint ids or names.
- **regions** (Set of String) A Region contains one or more checkpoints, just define a region if all checkpoints in a region should be used. Provide region id or name.
- `checkpoints` (Set of String) A checkpoint is a geographic location from which you can have your service uptime and performance checked periodically. Provide checkpoint ids or names.
- `exclude_locations` (Set of String) It is possible to keep an entire region of checkpoints (e.g. Canada) selected (with the benefit of automatically getting new checkpoints as they are added to that region) but have additional control over individual checkpoint locations that you want to skip. Provide checkpoint ids or names.
- `regions` (Set of String) A Region contains one or more checkpoints, just define a region if all checkpoints in a region should be used. Provide region id or name.


51 changes: 25 additions & 26 deletions docs/resources/monitor_database_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,42 @@ resource "uptrends_monitor_database_server" "example" {

### Required

- **name** (String) Display name for the Ping Monitor resource.
- **network_address** (String) The network address that should be used to connect to the server or service you want to monitor.
- **port** (Number) The TCP Port for the dns Monitor, has to be between `1` and `65535`. Defaults to `53`.
- `name` (String) Display name for the Ping Monitor resource.
- `network_address` (String) The network address that should be used to connect to the server or service you want to monitor.
- `port` (Number) The TCP Port for the dns Monitor, has to be between `1` and `65535`. Defaults to `53`.

### Optional

- **alert_on_load_time_limit_1** (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_1 threshold. Shows a yellow status in performance monitor. Defaults to `false`.
- **alert_on_load_time_limit_2** (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_2. Shows a red status in performance monitor. Defaults to `false`.
- **check_interval** (Number) Numeric value for the time interval between individual checks, in minutes. The maximum value is 240 (4 hours). The minimum value depends on the type of monitor. Defaults to `5`.
- **db_name** (String) Optionally specify the name of the database you want to connect to.
- **generate_alert** (Boolean) When set to false, no alerts will be generated for this monitor in case of an error. Defaults to `true`.
- **id** (String) The ID of this resource.
- **ip_version** (String) IpV4 or IpV6. Indicates which IP version should be used to connect to the server or network address you specify. If you choose IPv6, the monitor will only be executed on checkpoint locations that support IPv6. Defaults to `IpV4`.
- **is_active** (Boolean) Indicates whether the monitor is actively running in the account. Defaults to `true`.
- **load_time_limit_1** (Number) Set threshold time in ms for requires `alert_on_load_time_limit_1` to be enabled. Defaults to `2500`.
- **load_time_limit_2** (Number) Set threshold time in ms for requires `alert_on_load_time_limit_2` to be enabled. Defaults to `5000`.
- **mode** (String) The monitor mode, either Development, Staging or Production. Defaults to `Production`. If monitoring mode is Development `is_active` has to be `false`
- **name_for_phone_alerts** (String) The value for the speech-friendly monitor name, if applicable. This is the monitor name we’ll use in text-to-speech phone alerting, provided that the ‘Use alternate monitor names’ option has been enabled in the phone alert integration.
- **native_ipv6_only** (Boolean) True or False. This setting only applies when you select IpV6 for the IpVersion field. Set this value to true to only execute your monitor on checkpoint servers that support native IPv6 connectivity. Defaults to `false`.
- **notes** (String) Your notes for this monitor.
- **password** (String, Sensitive) See the Username field. Specify the corresponding password value here.
- **primary_checkpoints_only** (Boolean) Only set this to False when you’re sure you want to execute your monitor on non-primary checkpoints. Defaults to `true`.
- **selected_checkpoints** (Block List, Max: 1) (see [below for nested schema](#nestedblock--selected_checkpoints))
- **type** (String) Select between `MySQL` and `MSSQL` monitor type. Defaults to `MySQL`
- **username** (String) Specify the username of the appropriate credentials here.
- `alert_on_load_time_limit_1` (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_1 threshold. Shows a yellow status in performance monitor. Defaults to `false`.
- `alert_on_load_time_limit_2` (Boolean) Set this value to true, if you want to receive alerts if your server response is slower than load_time_limit_2. Shows a red status in performance monitor. Defaults to `false`.
- `check_interval` (Number) Numeric value for the time interval between individual checks, in minutes. The maximum value is 240 (4 hours). The minimum value depends on the type of monitor. Defaults to `5`.
- `db_name` (String) Optionally specify the name of the database you want to connect to.
- `generate_alert` (Boolean) When set to false, no alerts will be generated for this monitor in case of an error. Defaults to `true`.
- `ip_version` (String) IpV4 or IpV6. Indicates which IP version should be used to connect to the server or network address you specify. If you choose IPv6, the monitor will only be executed on checkpoint locations that support IPv6. Defaults to `IpV4`.
- `is_active` (Boolean) Indicates whether the monitor is actively running in the account. Defaults to `true`.
- `load_time_limit_1` (Number) Set threshold time in ms for requires `alert_on_load_time_limit_1` to be enabled. Defaults to `2500`.
- `load_time_limit_2` (Number) Set threshold time in ms for requires `alert_on_load_time_limit_2` to be enabled. Defaults to `5000`.
- `mode` (String) The monitor mode, either Development, Staging or Production. Defaults to `Production`. If monitoring mode is Development `is_active` has to be `false`
- `name_for_phone_alerts` (String) The value for the speech-friendly monitor name, if applicable. This is the monitor name we’ll use in text-to-speech phone alerting, provided that the ‘Use alternate monitor names’ option has been enabled in the phone alert integration.
- `notes` (String) Your notes for this monitor.
- `password` (String, Sensitive) See the Username field. Specify the corresponding password value here.
- `primary_checkpoints_only` (Boolean) Only set this to False when you’re sure you want to execute your monitor on non-primary checkpoints. Defaults to `true`.
- `selected_checkpoints` (Block List, Max: 1) (see [below for nested schema](#nestedblock--selected_checkpoints))
- `type` (String) Select between `MySQL` and `MSSQL` monitor type. Defaults to `MySQL`
- `username` (String) Specify the username of the appropriate credentials here.

### Read-Only

- **is_locked** (Boolean) It specifies whether the monitor is currently locked for editing. This happens if the Support team is reviewing your monitor.
- `id` (String) The ID of this resource.
- `is_locked` (Boolean) It specifies whether the monitor is currently locked for editing. This happens if the Support team is reviewing your monitor.

<a id="nestedblock--selected_checkpoints"></a>
### Nested Schema for `selected_checkpoints`

Optional:

- **checkpoints** (Set of String) A checkpoint is a geographic location from which you can have your service uptime and performance checked periodically. Provide checkpoint ids or names.
- **exclude_locations** (Set of String) It is possible to keep an entire region of checkpoints (e.g. Canada) selected (with the benefit of automatically getting new checkpoints as they are added to that region) but have additional control over individual checkpoint locations that you want to skip. Provide checkpoint ids or names.
- **regions** (Set of String) A Region contains one or more checkpoints, just define a region if all checkpoints in a region should be used. Provide region id or name.
- `checkpoints` (Set of String) A checkpoint is a geographic location from which you can have your service uptime and performance checked periodically. Provide checkpoint ids or names.
- `exclude_locations` (Set of String) It is possible to keep an entire region of checkpoints (e.g. Canada) selected (with the benefit of automatically getting new checkpoints as they are added to that region) but have additional control over individual checkpoint locations that you want to skip. Provide checkpoint ids or names.
- `regions` (Set of String) A Region contains one or more checkpoints, just define a region if all checkpoints in a region should be used. Provide region id or name.


Loading

0 comments on commit a51528c

Please sign in to comment.