github.com/sacloud/iaas-api-go@v1.12.0/types/simple_monitor_protocol.go (about) 1 // Copyright 2022-2023 The sacloud/iaas-api-go Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package types 16 17 // ESimpleMonitorProtocol シンプル監視 プロトコル 18 type ESimpleMonitorProtocol string 19 20 // String ESimpleMonitorProtocolの文字列表現 21 func (p ESimpleMonitorProtocol) String() string { 22 return string(p) 23 } 24 25 // SimpleMonitorProtocols シンプル監視 プロトコル 26 var SimpleMonitorProtocols = struct { 27 // HTTP http 28 HTTP ESimpleMonitorProtocol 29 // HTTPS https 30 HTTPS ESimpleMonitorProtocol 31 // Ping ping 32 Ping ESimpleMonitorProtocol 33 // TCP tcp 34 TCP ESimpleMonitorProtocol 35 // DNS dns 36 DNS ESimpleMonitorProtocol 37 // SSH ssh 38 SSH ESimpleMonitorProtocol 39 // SMTP smtp 40 SMTP ESimpleMonitorProtocol 41 // POP3 pop3 42 POP3 ESimpleMonitorProtocol 43 // SNMP snmp 44 SNMP ESimpleMonitorProtocol 45 // SSLCertificate sslcertificate 46 SSLCertificate ESimpleMonitorProtocol 47 // FTP ftp 48 FTP ESimpleMonitorProtocol 49 }{ 50 HTTP: ESimpleMonitorProtocol("http"), 51 HTTPS: ESimpleMonitorProtocol("https"), 52 Ping: ESimpleMonitorProtocol("ping"), 53 TCP: ESimpleMonitorProtocol("tcp"), 54 DNS: ESimpleMonitorProtocol("dns"), 55 SSH: ESimpleMonitorProtocol("ssh"), 56 SMTP: ESimpleMonitorProtocol("smtp"), 57 POP3: ESimpleMonitorProtocol("pop3"), 58 SNMP: ESimpleMonitorProtocol("snmp"), 59 SSLCertificate: ESimpleMonitorProtocol("sslcertificate"), 60 FTP: ESimpleMonitorProtocol("ftp"), 61 } 62 63 // SimpleMonitorProtocolStrings シンプル監視プロトコルの文字列リスト 64 var SimpleMonitorProtocolStrings = []string{ 65 SimpleMonitorProtocols.HTTP.String(), 66 SimpleMonitorProtocols.HTTPS.String(), 67 SimpleMonitorProtocols.Ping.String(), 68 SimpleMonitorProtocols.TCP.String(), 69 SimpleMonitorProtocols.DNS.String(), 70 SimpleMonitorProtocols.SSH.String(), 71 SimpleMonitorProtocols.SMTP.String(), 72 SimpleMonitorProtocols.POP3.String(), 73 SimpleMonitorProtocols.SNMP.String(), 74 SimpleMonitorProtocols.SSLCertificate.String(), 75 SimpleMonitorProtocols.FTP.String(), 76 }