Skip to content

Commit

Permalink
Documentation Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Billy committed Mar 13, 2024
1 parent c047834 commit e17a16d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions docs/resources/website_monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,21 +210,20 @@ resource "site24x7_website_monitor" "website_monitor" {
* `check_frequency` (String) Interval at which your website has to be monitored. Default value is 1 minute.
* `timeout` (Number) Timeout for connecting to website. Default value is 10. Range 1 - 45.
* `use_ipv6`[Deprecated] (Boolean) Monitoring is performed over IPv6 from supported locations. IPv6 locations do not fall back to IPv4 on failure.
* `ip_type` (int) Monitoring is performed over the selected internet protocol
* `ip_type` (Number) Monitoring is performed over the selected internet protocol
0|Monitoring is performed over IPv4 from supported locations
1|Monitoring is performed over IPv6 from supported locations
2|IPv4 or IPv6 option will help in flexibly switching to the protocol that is supported in a particular location if one protocol fails.
3|IPv4 and IPv6 will create two connections for each protocol.
* `primary_protocol`|int|Choose the primary internet protocol for the resources. Select only if you're choosing the option, Both IPv4 and IPv6 monitoring.
* `primary_protocol` (Number) Choose the primary internet protocol for the resources. Select only if you're choosing the option, Both IPv4 and IPv6 monitoring.
Options :
0|IPv4
1|IPv6
* `secondary_protocol_severity`|int|Configure the change for the secondary resource for which you'd like to get notifications. Select only if you're choosing the option,Both IPv4 and IPv6 monitoring.​
* `secondary_protocol_severity` (Number) Configure the change for the secondary resource for which you'd like to get notifications. Select only if you're choosing the option,Both IPv4 and IPv6 monitoring.​
Options :
2|Trouble
3|Critical
* `hidden_mon_added`|int|To Edit the existing secondary protocol resource.Select only if you are updating the option Both IPv6 and IPv4 monitoring or downgrading from Both IPv4 and IPv6 options to others but Not selected if you are choosing both IPv4 and IPv6 for the first time

* `hidden_mon_added` (Number) To Edit the existing secondary protocol resource.Select only if you are updating the option Both IPv6 and IPv4 monitoring or downgrading from Both IPv4 and IPv6 options to others but Not selected if you are choosing both IPv4 and IPv6 for the first time
* `matching_keyword_value` (String) Check for the keyword in the website response.
* `matching_keyword_severity` (Number) Severity with which alert has to raised when the matching keyword is found in the website response.
* `unmatching_keyword_value` (String) Check for the absence of the keyword in the website response.
Expand Down
5 changes: 2 additions & 3 deletions site24x7/monitors/website.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package monitors

import (
"fmt"
"log"
"sort"
"strconv"

Expand Down Expand Up @@ -403,7 +402,7 @@ func websiteMonitorCreate(d *schema.ResourceData, meta interface{}) error {
if err != nil {
return err
}
log.Println("Websitemonitor --------------------------------------------", websiteMonitor)

d.SetId(websiteMonitor.MonitorID)

// return websiteMonitorRead(d, meta)
Expand Down Expand Up @@ -571,7 +570,7 @@ func resourceDataToWebsiteMonitor(d *schema.ResourceData, client site24x7.Client
websiteMonitor.IgnoreCertError = d.Get("ignore_cert_err").(bool)

websiteMonitor.IPType = d.Get("ip_type").(int)
log.Println("IP_?TPYE---------------------------", websiteMonitor.IPType)

if websiteMonitor.IPType == 0 {
websiteMonitor.UseIPV6 = false
} else if websiteMonitor.IPType == 1 {
Expand Down

0 comments on commit e17a16d

Please sign in to comment.