Documentation ¶
Index ¶
- Variables
- func ResourceSite24x7ConnectwiseIntegration() *schema.Resource
- func ResourceSite24x7OpsgenieIntegration() *schema.Resource
- func ResourceSite24x7PagerDutyIntegration() *schema.Resource
- func ResourceSite24x7ServiceNowIntegration() *schema.Resource
- func ResourceSite24x7SlackIntegration() *schema.Resource
- func ResourceSite24x7TelegramIntegration() *schema.Resource
- func ResourceSite24x7WebhookIntegration() *schema.Resource
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectwiseIntegrationSchema = map[string]*schema.Schema{ "name": { Type: schema.TypeString, Required: true, Description: "Display name for the ConnectWise Integration.", }, "url": { Type: schema.TypeString, Required: true, Description: "URL to be invoked for action execution.", }, "company": { Type: schema.TypeString, Required: true, Description: "Company for Authentication.", }, "public_key": { Type: schema.TypeString, Required: true, Description: "Public Key for Authentication", }, "private_key": { Type: schema.TypeString, Required: true, Description: "Private Key for Authentication.", }, "company_id": { Type: schema.TypeString, Required: true, Description: "Tickets to your ConnectWise account will be assigned to this Company ID.", }, "close_status": { Type: schema.TypeString, Required: true, Description: "The configuration settings to resolve or close incidents automatically in Connectwise, when the monitor status changes to UP.", }, "selection_type": { Type: schema.TypeInt, Optional: true, Default: 0, Description: "Resource Type associated with this integration. Default value is '0'. Can take values 0|2|3. '0' denotes 'All Monitors', '2' denotes 'Monitors', '3' denotes 'Tags'", }, "trouble_alert": { Type: schema.TypeBool, Optional: true, Default: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Trouble'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications. Default value is 'true'", }, "critical_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Critical'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "down_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Down'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "manual_resolve": { Type: schema.TypeBool, Optional: true, Description: "Configuration to resolve the incidents manually when the monitor changes to UP status.", }, "send_custom_parameters": { Type: schema.TypeBool, Optional: true, Description: "Configuration to send custom parameters while executing the action.", }, "custom_parameters": { Type: schema.TypeString, Optional: true, Description: "Mandatory, if send_custom_parameters is set as true. Custom parameters to be passed while accessing the URL.", }, "monitors": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Monitors to be associated with the integration when the selection_type = 2.", }, "tags": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tags to be associated with the integration when the selection_type = 3.", }, "alert_tags_id": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tag id’s to be associated with the integration.", }, "user_groups": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "User Alert Group to be notified when there is an error in ConnectWise Manage Integration.", }, }
View Source
var OpsgenieIntegrationSchema = map[string]*schema.Schema{ "name": { Type: schema.TypeString, Required: true, Description: "Display name for the OpsGenie Integration.", }, "url": { Type: schema.TypeString, Required: true, Description: "URL to be invoked for action execution.", }, "selection_type": { Type: schema.TypeInt, Optional: true, Default: 0, Description: "Resource Type associated with this integration. Default value is '0'. Can take values 0|2|3. '0' denotes 'All Monitors', '2' denotes 'Monitors', '3' denotes 'Tags'", }, "trouble_alert": { Type: schema.TypeBool, Optional: true, Default: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Trouble'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications. Default value is 'true'", }, "critical_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Critical'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "down_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Down'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "manual_resolve": { Type: schema.TypeBool, Optional: true, Description: "Configuration to resolve the incidents manually when the monitor changes to UP status.", }, "send_custom_parameters": { Type: schema.TypeBool, Optional: true, Description: "Configuration to send custom parameters while executing the action.", }, "custom_parameters": { Type: schema.TypeString, Optional: true, Description: "Mandatory, if send_custom_parameters is set as true. Custom parameters to be passed while accessing the URL.", }, "tags": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tags to be associated with the integration when the selection_type = 3.", }, "monitors": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Monitors to be associated with the integration when the selection_type = 2.", }, "alert_tags_id": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tag id’s to be associated with the integration.", }, }
View Source
var SlackIntegrationSchema = map[string]*schema.Schema{ "name": { Type: schema.TypeString, Required: true, Description: "Display name for the Slack Integration.", }, "url": { Type: schema.TypeString, Required: true, Description: "Hook URL to which the message will be posted.", }, "sender_name": { Type: schema.TypeString, Required: true, Description: "Name of the service who posted the message.", }, "title": { Type: schema.TypeString, Required: true, Description: "Title of the incident.", }, "selection_type": { Type: schema.TypeInt, Optional: true, Default: 0, Description: "Resource Type associated with this integration. Default value is '0'. Can take values 0|2|3. '0' denotes 'All Monitors', '2' denotes 'Monitors', '3' denotes 'Tags'", }, "trouble_alert": { Type: schema.TypeBool, Optional: true, Default: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Trouble'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications. Default value is 'true'", }, "critical_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Critical'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "down_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Down'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "monitors": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Monitors to be associated with the integration when the selection_type = 2.", }, "tags": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tags to be associated with the integration when the selection_type = 3.", }, "alert_tags_id": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tag id’s to be associated with the integration.", }, }
View Source
var TelegramIntegrationSchema = map[string]*schema.Schema{ "name": { Type: schema.TypeString, Required: true, Description: "Display name for the Telegram Integration.", }, "channel_url": { Type: schema.TypeString, Required: true, Description: "Hook URL to which the message will be posted.", }, "token": { Type: schema.TypeString, Required: true, Description: "Hook URL to which the message will be posted.", }, "title": { Type: schema.TypeString, Required: true, Description: "Title of the incident.", }, "selection_type": { Type: schema.TypeInt, Optional: true, Default: 0, Description: "Resource Type associated with this integration. Default value is '0'. Can take values 0|2|3. '0' denotes 'All Monitors', '2' denotes 'Monitors', '3' denotes 'Tags'", }, "trouble_alert": { Type: schema.TypeBool, Optional: true, Default: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Trouble'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications. Default value is 'true'", }, "critical_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Critical'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "down_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Down'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "monitors": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Monitors to be associated with the integration when the selection_type = 2.", }, "tags": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tags to be associated with the integration when the selection_type = 3.", }, "alert_tags_id": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tag id’s to be associated with the integration.", }, }
View Source
var WebhookIntegrationSchema = map[string]*schema.Schema{ "name": { Type: schema.TypeString, Required: true, Description: "Display name for the OpsGenie Integration.", }, "url": { Type: schema.TypeString, Required: true, Description: "URL to be invoked for action execution.", }, "timeout": { Type: schema.TypeInt, Optional: true, Default: 30, Description: "The amount of time a connection waits to time out. Default value is 30. Range 1 - 45.", }, "method": { Type: schema.TypeString, Optional: true, Default: "G", Description: "HTTP Method to be used for accessing the website. PUT, PATCH and DELETE are not supported. Default value is 'G'.", }, "selection_type": { Type: schema.TypeInt, Optional: true, Default: 0, Description: "Resource Type associated with this integration. Default value is '0'. Can take values 0|2|3. '0' denotes 'All Monitors', '2' denotes 'Monitors', '3' denotes 'Tags'", }, "trouble_alert": { Type: schema.TypeBool, Optional: true, Default: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Trouble'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications. Default value is 'true'", }, "critical_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Critical'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "down_alert": { Type: schema.TypeBool, Optional: true, Description: "Setting this to 'true' will send alert notifications to this third-party integration when the monitor status changes to 'Down'. One among trouble_alert|critical_alert|down_alert should be set to true for receiving notifications.", }, "is_poller_webhook": { Type: schema.TypeBool, Optional: true, Description: "Boolean indicating whether it is an On-Premise Poller based Webhook.", }, "poller": { Type: schema.TypeString, Optional: true, Description: "Mandatory, if is_poller_webhook is set as true. Denotes On-Premise Poller ID.", }, "send_incident_parameters": { Type: schema.TypeBool, Optional: true, Default: true, Description: "Configuration to send incident parameters while executing the action.", }, "send_custom_parameters": { Type: schema.TypeBool, Optional: true, Description: "Configuration to send custom parameters while executing the action.", }, "custom_parameters": { Type: schema.TypeString, Optional: true, Description: "Mandatory, if send_custom_parameters is set as true.Custom parameters to be passed while accessing the URL.", }, "send_in_json_format": { Type: schema.TypeBool, Optional: true, Description: "Configuration to enable JSON format for post parameters.", }, "auth_method": { Type: schema.TypeString, Optional: true, Description: "Authentication method to access the action url.", }, "user_name": { Type: schema.TypeString, Optional: true, Description: "User name for authentication.", }, "password": { Type: schema.TypeString, Optional: true, Description: "Password for authentication.", DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { return true }, }, "oauth2_provider": { Type: schema.TypeString, Optional: true, Description: "Provider ID of the OAuth Provider to be associated with the action.", }, "custom_headers": { Type: schema.TypeMap, Optional: true, Description: "A Map of Header name and value.", }, "user_agent": { Type: schema.TypeString, Optional: true, Description: "User Agent to be used while monitoring the website.", }, "monitors": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Monitors to be associated with the integration when the selection_type = 2.", }, "tags": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tags to be associated with the integration when the selection_type = 3.", }, "alert_tags_id": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Description: "Tag id’s to be associated with the integration.", }, "manage_tickets": { Type: schema.TypeBool, Optional: true, Description: "Configuration to handle ticketing based integration.", }, "update_url": { Type: schema.TypeString, Optional: true, Description: "URL to be invoked to update the request.", }, "update_method": { Type: schema.TypeString, Optional: true, Description: "HTTP Method to access the URL.", }, "update_send_incident_parameters": { Type: schema.TypeBool, Optional: true, Description: "Configuration to send incident parameters while updating the ticket.", }, "update_send_custom_parameters": { Type: schema.TypeBool, Optional: true, Description: "Configuration to send custom parameters while updating the ticket.", }, "update_custom_parameters": { Type: schema.TypeString, Optional: true, Description: "Configuration to send custom parameters while updating the ticket.", }, "update_send_in_json_format": { Type: schema.TypeBool, Optional: true, Description: "Configuration to post in JSON format while updating the ticket.", }, "close_url": { Type: schema.TypeString, Optional: true, Description: "URL to be invoked to close the request.", }, "close_method": { Type: schema.TypeString, Optional: true, Description: "HTTP Method to access the URL.", }, "close_send_incident_parameters": { Type: schema.TypeBool, Optional: true, Description: "Configuration to send incident parameters while closing the ticket.", }, "close_send_custom_parameters": { Type: schema.TypeBool, Optional: true, Description: "Configuration to send custom parameters while closing the ticket.", }, "close_custom_parameters": { Type: schema.TypeString, Optional: true, Description: "Mandatory, When close_send_custom_parameters is set as true.Custom parameters to be passed while accessing the URL.", }, "close_send_in_json_format": { Type: schema.TypeBool, Optional: true, Description: "Configuration to post in JSON format while closing the ticket.", }, }
Functions ¶
func ResourceSite24x7ConnectwiseIntegration ¶ added in v1.0.40
func ResourceSite24x7TelegramIntegration ¶ added in v1.0.43
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.