Documentation ¶
Index ¶
- Variables
- func DefaultLocationProfile(client site24x7.Client) (*api.LocationProfile, error)
- func DefaultNotificationProfile(client site24x7.Client) (*api.NotificationProfile, error)
- func DefaultThresholdProfile(client site24x7.Client) (*api.ThresholdProfile, error)
- func DefaultUserGroup(client site24x7.Client) (*api.UserGroup, error)
- func Provider() terraform.ResourceProvider
Constants ¶
This section is empty.
Variables ¶
var ActionSchema = map[string]*schema.Schema{ "custom_parameters": { Type: schema.TypeString, Optional: true, }, "method": { Type: schema.TypeString, Optional: true, Default: "P", }, "name": { Type: schema.TypeString, Required: true, }, "requires_authentication": { Type: schema.TypeBool, Optional: true, Default: false, }, "send_custom_parameters": { Type: schema.TypeBool, Optional: true, Default: false, }, "send_in_json_format": { Type: schema.TypeBool, Optional: true, Default: true, }, "send_incident_parameters": { Type: schema.TypeBool, Optional: true, Default: true, }, "timeout": { Type: schema.TypeInt, Optional: true, Default: 30, }, "type": { Type: schema.TypeInt, Optional: true, Default: 1, }, "url": { Type: schema.TypeString, Required: true, }, }
var MonitorGroupSchema = map[string]*schema.Schema{ "display_name": { Type: schema.TypeString, Required: true, }, "description": { Type: schema.TypeString, Required: true, }, }
var WebsiteMonitorSchema = map[string]*schema.Schema{ "display_name": { Type: schema.TypeString, Required: true, }, "website": { Type: schema.TypeString, Required: true, }, "check_frequency": { Type: schema.TypeInt, Optional: true, Default: 1, }, "http_method": { Type: schema.TypeString, Optional: true, Default: "G", }, "auth_user": { Type: schema.TypeString, Optional: true, }, "auth_pass": { Type: schema.TypeString, Optional: true, }, "matching_keyword_value": { Type: schema.TypeString, Optional: true, Default: "", }, "matching_keyword_severity": { Type: schema.TypeInt, Optional: true, Default: 2, }, "unmatching_keyword_value": { Type: schema.TypeString, Optional: true, Default: "", }, "unmatching_keyword_severity": { Type: schema.TypeInt, Optional: true, Default: 2, }, "match_regex_value": { Type: schema.TypeString, Optional: true, }, "match_regex_severity": { Type: schema.TypeInt, Optional: true, Default: 2, }, "match_case": { Type: schema.TypeBool, Optional: true, }, "user_agent": { Type: schema.TypeString, Optional: true, }, "custom_headers": { Type: schema.TypeMap, Optional: true, }, "timeout": { Type: schema.TypeInt, Optional: true, Default: 10, }, "location_profile_id": { Type: schema.TypeString, Optional: true, Computed: true, }, "notification_profile_id": { Type: schema.TypeString, Optional: true, Computed: true, }, "threshold_profile_id": { Type: schema.TypeString, Optional: true, Computed: true, }, "monitor_groups": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, }, "user_group_ids": { Type: schema.TypeList, Elem: &schema.Schema{ Type: schema.TypeString, }, Optional: true, Computed: true, }, "actions": { Type: schema.TypeMap, Optional: true, Elem: schema.TypeString, }, "use_name_server": { Type: schema.TypeBool, Optional: true, Default: true, }, "up_status_codes": { Type: schema.TypeString, Optional: true, Default: "", }, }
Functions ¶
func DefaultLocationProfile ¶
func DefaultLocationProfile(client site24x7.Client) (*api.LocationProfile, error)
DefaultLocationProfile fetches the first location profile returned by the client. If no location profiles are configured, DefaultLocationProfile will return an error.
func DefaultNotificationProfile ¶
func DefaultNotificationProfile(client site24x7.Client) (*api.NotificationProfile, error)
DefaultNotificationProfile fetches the first notification profile returned by the client. If no notification profiles are configured, DefaultNotificationProfile will return an error.
func DefaultThresholdProfile ¶
func DefaultThresholdProfile(client site24x7.Client) (*api.ThresholdProfile, error)
DefaultThresholdProfile fetches the first threshold profile returned by the client. If no threshold profiles are configured, DefaultThresholdProfile will return an error.
func DefaultUserGroup ¶
DefaultUserGroup fetches the first user group returned by the client. If no user groups are configured, DefaultUserGroup will return an error.
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
This section is empty.