{"id":452571,"date":"2025-03-21T15:00:51","date_gmt":"2025-03-21T15:00:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=452571"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=452571","title":{"rendered":"<span>365 \u0434\u043d\u0435\u0439 \u0441\u043f\u0443\u0441\u0442\u044f, \u0438\u043b\u0438 \u0436\u0438\u0437\u043d\u044c \u0435\u0449\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u043e\u043c\u043d\u044e \u0432 \u0434\u0435\u0442\u0441\u0442\u0432\u0435, \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u043b\u0435\u0442\u043d\u0438\u0445 \u043a\u0430\u043d\u0438\u043a\u0443\u043b, \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043b\u0435\u0442\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f &#8212; 3 \u043c\u0435\u0441\u044f\u0446\u0430 \u0433\u0434\u0435-\u0442\u043e \u0440\u044f\u0434\u043e\u043c \u0441 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u044c\u044e. \u0410 \u0441\u0435\u0439\u0447\u0430\u0441&#8230; \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u044b \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c <a href=\"https:\/\/rmon.io\/\" rel=\"noopener noreferrer nofollow\">RMON<\/a>, \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442 \u0432 Github \u0431\u044b\u043b 15 \u043c\u0430\u0440\u0442\u0430 2024 \u0433\u043e\u0434\u0430. \u0412\u0436\u0443\u0445 \u0438 \u043e\u0434\u0438\u043d \u0433\u043e\u0434 \u0436\u0438\u0437\u043d\u0438 \u043f\u0440\u043e\u043b\u0435\u0442\u0435\u043b. \u041b\u0430\u0434\u043d\u043e, \u0445\u0432\u0430\u0442\u0438\u0442 \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043a\u0443\u0444\u0441\u043a\u043e\u043c &#8212; \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0438\u0442\u043e\u0433\u0430 \u0433\u043e\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u044b. \u0412\u043f\u0435\u0440\u0435\u0434!<\/p>\n<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/012\/1fd\/970\/0121fd970672f1b76845f1ec805891bd.png\" width=\"1918\" height=\"601\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/012\/1fd\/970\/0121fd970672f1b76845f1ec805891bd.png\"\/><\/figure>\n<h2>Terraform<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u044b <a href=\"https:\/\/registry.terraform.io\/providers\/roxy-wi\/rmon\/latest\" rel=\"noopener noreferrer nofollow\">\u0435\u0433\u043e<\/a> \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u043d\u043e \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u0431\u044b\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0440\u0443\u043a\u0430\u043c\u0438 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0442\u0430\u043a\u043e\u0435 \u0441\u0435\u0431\u0435. \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 Terraform \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<h2>\u041e\u0434\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0430\u0433\u0435\u043d\u0442\u043e\u0432<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438, \u0442\u043e\u043b\u044c\u043a\u043e, \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u043b\u0433\u043e\u0434\u0430. \u0423 \u0444\u0438\u0447\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u043a\u0440\u0430\u0441\u0442\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043b\u044c\u0448\u0435 :). \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0432\u0440\u043e\u0434\u0435 \u043d\u0435\u043f\u043b\u043e\u0445\u043e:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d26\/7a0\/673\/d267a0673f440bef0df362054d2aa7f9.png\" width=\"1916\" height=\"850\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d26\/7a0\/673\/d267a0673f440bef0df362054d2aa7f9.png\"\/><\/figure>\n<h2>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 HTTP \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 libcurl<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 Python requests, \u0442\u0430\u043a \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043d\u0435\u0435, \u043d\u043e \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u0438\u043c\u0430\u043b\u0438, \u0447\u0442\u043e requests \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438\u0437-\u0437\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043d\u0438\u043c\u0430\u0442\u044c HTTP \u043c\u0435\u0442\u0440\u0438\u043a\u0438. \u0412 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0448\u043b\u0438 <a href=\"https:\/\/curl.se\/libcurl\/c\/\" rel=\"noopener noreferrer nofollow\">libcurl<\/a>. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, curl &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0438 \u0434\u0435\u0440\u043d\u0443\u0442\u044c ifconfig.io, \u043d\u043e \u0438 \u043c\u043e\u0449\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041a\u0442\u043e \u0436 \u0437\u043d\u0430\u043b. <\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Pycurl \u0441 libcurl \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u0437 Python:<\/p>\n<pre><code class=\"python\">class CurlHttp:     def __init__(self, **kwargs) -&gt; None:         ...      def curl(self):         try:             buf = io.BytesIO()  # We need to measure download time.             c = pycurl.Curl()             self.set_http_method(c)             self.set_curl_options(c, buf)         except pycurl.error as e:             raise Exception(f'Cannot set curl http_{self.check_id} {e.args[1]}')         try:             c.perform()         except pycurl.error as e:             self.reset_http_results(e.args[1])         except Exception as e:             self.reset_http_results(e)          return c, buf      def set_http_method(self, c):         http_methods = {             'get': c.HTTPGET,             'post': c.POST,             'put': c.PUT,             'head': c.NOBODY         }         custom_http_methods = {             'patch': \"PATCH\",             'delete': \"DELETE\",             'options': \"OPTIONS\"         }         if self.http_method in http_methods:             c.setopt(http_methods[self.http_method], 1)         else:             c.setopt(c.CUSTOMREQUEST, custom_http_methods[self.http_method])      def set_curl_options(self, c, buf):         c.setopt(c.URL, self.url)         c.setopt(c.DNS_CACHE_TIMEOUT, 0)  # disable dns cache.         c.setopt(c.FORBID_REUSE, 1)  # disable dns cache.         c.setopt(c.FRESH_CONNECT, 1)  # disable dns cache.         c.setopt(c.HEADERFUNCTION, self.headers.write)         c.setopt(c.WRITEFUNCTION, buf.write)         c.setopt(c.TIMEOUT, self.timeout)         c.setopt(c.USERAGENT, 'RMON-bot')         # c.setopt(pycurl.VERBOSE, 1)         # c.setopt(pycurl.DEBUGFUNCTION, self.debug_curl)         ...          if self.is_https == 'https':             c.setopt(c.OPT_CERTINFO, 1)          if self.ignore_ssl_error:             c.setopt(c.SSL_VERIFYPEER, 0)             c.setopt(c.SSL_VERIFYHOST, 0)<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043d\u0430 libcurl \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u044b\u0441\u044f\u0447 HTTP \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u0430\u0431\u0435\u043d\u044c\u043a\u043e\u0439 \u0412\u041c, \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043e\u0442\u0435\u043d \u043d\u0430 requests. \u041a\u0441\u0442\u0430\u0442\u0438, \u0442\u0430\u043a \u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e libcurl \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/rmon.io\/check\/smtp\" rel=\"noopener noreferrer nofollow\">SMTP \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/a>!<\/p>\n<h2>\u0411\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0431\u043e\u0433\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432!<\/h2>\n<p>\u0420\u0430\u0437\u0432\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438 \u0441\u0430\u0439\u0442? \u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c &#8212; \u0434\u0430, \u043d\u0430\u0434\u043e \u043c\u043d\u043e\u0433\u043e! \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0445 \u043c\u043d\u043e\u0433\u043e, \u0447\u0442\u043e \u0430\u0436 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f (\u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u043c\u0435\u0442\u0440\u0438\u043a\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 &#171;\u0447\u0442\u043e \u0430\u0436 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f&#187;, \u0434\u0430?):<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ee4\/d18\/5ab\/ee4d185ab8a0720e0b939546b19332ee.png\" width=\"519\" height=\"913\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ee4\/d18\/5ab\/ee4d185ab8a0720e0b939546b19332ee.png\"\/><\/figure>\n<p>\u041d\u043e \u043d\u0430\u0434\u043e \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435. \u041a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442:<\/p>\n<ol>\n<li>\n<p>\u0412\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0430\u043b\u0435\u0440\u0442\u043e\u0432 (warning, critical)<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0432\u0435\u0440\u0441\u0438\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0443\u0441 \u043a\u043e\u0434\u043e\u0432 \u043e\u0442\u0432\u0435\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0435\u0442 \u043f\u0440\u0435\u0434\u0435\u043b\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0443 \u0438 \u0435\u0441\u0442\u044c \u043a\u0443\u0434\u0430 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h2>\u0427\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0438\u0442\u043e\u0433\u0430<\/h2>\n<p>\u042d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0447\u0442\u043e \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u044b, \u043d\u043e \u043b\u0438\u0448\u044c \u0442\u043e \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c. \u0427\u0442\u043e \u0435\u0449\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c:<\/p>\n<ol>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 PostgreSQL <\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0432 JSON<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0448 \u043c\u0435\u0442\u0440\u0438\u043a \u0432 VictoriaMetrics<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0438 CSS \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f Status pages<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043e\u043a<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 \u0432\u0441\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u0442\u0435\u0441\u0442\u0438\u0442\u044c, \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u043f\u0440\u0430\u0439\u0441, \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435 ;).<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/893082\/\"> https:\/\/habr.com\/ru\/articles\/893082\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u043e\u043c\u043d\u044e \u0432 \u0434\u0435\u0442\u0441\u0442\u0432\u0435, \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u043b\u0435\u0442\u043d\u0438\u0445 \u043a\u0430\u043d\u0438\u043a\u0443\u043b, \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043b\u0435\u0442\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f &#8212; 3 \u043c\u0435\u0441\u044f\u0446\u0430 \u0433\u0434\u0435-\u0442\u043e \u0440\u044f\u0434\u043e\u043c \u0441 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u044c\u044e. \u0410 \u0441\u0435\u0439\u0447\u0430\u0441&#8230; \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u044b \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c <a href=\"https:\/\/rmon.io\/\" rel=\"noopener noreferrer nofollow\">RMON<\/a>, \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442 \u0432 Github \u0431\u044b\u043b 15 \u043c\u0430\u0440\u0442\u0430 2024 \u0433\u043e\u0434\u0430. \u0412\u0436\u0443\u0445 \u0438 \u043e\u0434\u0438\u043d \u0433\u043e\u0434 \u0436\u0438\u0437\u043d\u0438 \u043f\u0440\u043e\u043b\u0435\u0442\u0435\u043b. \u041b\u0430\u0434\u043d\u043e, \u0445\u0432\u0430\u0442\u0438\u0442 \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043a\u0443\u0444\u0441\u043a\u043e\u043c &#8212; \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0438\u0442\u043e\u0433\u0430 \u0433\u043e\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u044b. \u0412\u043f\u0435\u0440\u0435\u0434!<\/p>\n<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>Terraform<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u044b <a href=\"https:\/\/registry.terraform.io\/providers\/roxy-wi\/rmon\/latest\" rel=\"noopener noreferrer nofollow\">\u0435\u0433\u043e<\/a> \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u043d\u043e \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u0431\u044b\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0440\u0443\u043a\u0430\u043c\u0438 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0442\u0430\u043a\u043e\u0435 \u0441\u0435\u0431\u0435. \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 Terraform \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<h2>\u041e\u0434\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0430\u0433\u0435\u043d\u0442\u043e\u0432<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043c\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438, \u0442\u043e\u043b\u044c\u043a\u043e, \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u043b\u0433\u043e\u0434\u0430. \u0423 \u0444\u0438\u0447\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u043a\u0440\u0430\u0441\u0442\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043b\u044c\u0448\u0435 :). \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0432\u0440\u043e\u0434\u0435 \u043d\u0435\u043f\u043b\u043e\u0445\u043e:<\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 HTTP \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 libcurl<\/h2>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 Python requests, \u0442\u0430\u043a \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043d\u0435\u0435, \u043d\u043e \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u0438\u043c\u0430\u043b\u0438, \u0447\u0442\u043e requests \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438\u0437-\u0437\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043d\u0438\u043c\u0430\u0442\u044c HTTP \u043c\u0435\u0442\u0440\u0438\u043a\u0438. \u0412 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0448\u043b\u0438 <a href=\"https:\/\/curl.se\/libcurl\/c\/\" rel=\"noopener noreferrer nofollow\">libcurl<\/a>. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, curl &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0438 \u0434\u0435\u0440\u043d\u0443\u0442\u044c ifconfig.io, \u043d\u043e \u0438 \u043c\u043e\u0449\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041a\u0442\u043e \u0436 \u0437\u043d\u0430\u043b. <\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Pycurl \u0441 libcurl \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u0437 Python:<\/p>\n<pre><code class=\"python\">class CurlHttp:     def __init__(self, **kwargs) -&gt; None:         ...      def curl(self):         try:             buf = io.BytesIO()  # We need to measure download time.             c = pycurl.Curl()             self.set_http_method(c)             self.set_curl_options(c, buf)         except pycurl.error as e:             raise Exception(f'Cannot set curl http_{self.check_id} {e.args[1]}')         try:             c.perform()         except pycurl.error as e:             self.reset_http_results(e.args[1])         except Exception as e:             self.reset_http_results(e)          return c, buf      def set_http_method(self, c):         http_methods = {             'get': c.HTTPGET,             'post': c.POST,             'put': c.PUT,             'head': c.NOBODY         }         custom_http_methods = {             'patch': \"PATCH\",             'delete': \"DELETE\",             'options': \"OPTIONS\"         }         if self.http_method in http_methods:             c.setopt(http_methods[self.http_method], 1)         else:             c.setopt(c.CUSTOMREQUEST, custom_http_methods[self.http_method])      def set_curl_options(self, c, buf):         c.setopt(c.URL, self.url)         c.setopt(c.DNS_CACHE_TIMEOUT, 0)  # disable dns cache.         c.setopt(c.FORBID_REUSE, 1)  # disable dns cache.         c.setopt(c.FRESH_CONNECT, 1)  # disable dns cache.         c.setopt(c.HEADERFUNCTION, self.headers.write)         c.setopt(c.WRITEFUNCTION, buf.write)         c.setopt(c.TIMEOUT, self.timeout)         c.setopt(c.USERAGENT, 'RMON-bot')         # c.setopt(pycurl.VERBOSE, 1)         # c.setopt(pycurl.DEBUGFUNCTION, self.debug_curl)         ...          if self.is_https == 'https':             c.setopt(c.OPT_CERTINFO, 1)          if self.ignore_ssl_error:             c.setopt(c.SSL_VERIFYPEER, 0)             c.setopt(c.SSL_VERIFYHOST, 0)<\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043d\u0430 libcurl \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u044b\u0441\u044f\u0447 HTTP \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u0430\u0431\u0435\u043d\u044c\u043a\u043e\u0439 \u0412\u041c, \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043e\u0442\u0435\u043d \u043d\u0430 requests. \u041a\u0441\u0442\u0430\u0442\u0438, \u0442\u0430\u043a \u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e libcurl \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/rmon.io\/check\/smtp\" rel=\"noopener noreferrer nofollow\">SMTP \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/a>!<\/p>\n<h2>\u0411\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0431\u043e\u0433\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432!<\/h2>\n<p>\u0420\u0430\u0437\u0432\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438 \u0441\u0430\u0439\u0442? \u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c &#8212; \u0434\u0430, \u043d\u0430\u0434\u043e \u043c\u043d\u043e\u0433\u043e! \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0445 \u043c\u043d\u043e\u0433\u043e, \u0447\u0442\u043e \u0430\u0436 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f (\u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u043c\u0435\u0442\u0440\u0438\u043a\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 &#171;\u0447\u0442\u043e \u0430\u0436 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f&#187;, \u0434\u0430?):<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u043e \u043d\u0430\u0434\u043e \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435. \u041a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442:<\/p>\n<ol>\n<li>\n<p>\u0412\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0430\u043b\u0435\u0440\u0442\u043e\u0432 (warning, critical)<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0432\u0435\u0440\u0441\u0438\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0443\u0441 \u043a\u043e\u0434\u043e\u0432 \u043e\u0442\u0432\u0435\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0435\u0442 \u043f\u0440\u0435\u0434\u0435\u043b\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0443 \u0438 \u0435\u0441\u0442\u044c \u043a\u0443\u0434\u0430 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h2>\u0427\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0438\u0442\u043e\u0433\u0430<\/h2>\n<p>\u042d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0447\u0442\u043e \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u044b, \u043d\u043e \u043b\u0438\u0448\u044c \u0442\u043e \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c. \u0427\u0442\u043e \u0435\u0449\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c:<\/p>\n<ol>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 PostgreSQL <\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0432 JSON<\/p>\n<\/li>\n<li>\n<p>\u041f\u0443\u0448 \u043c\u0435\u0442\u0440\u0438\u043a \u0432 VictoriaMetrics<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0438 CSS \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f Status pages<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043e\u043a<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 \u0432\u0441\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u0442\u0435\u0441\u0442\u0438\u0442\u044c, \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u043f\u0440\u0430\u0439\u0441, \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435 ;).<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/893082\/\"> https:\/\/habr.com\/ru\/articles\/893082\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-452571","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=452571"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452571\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}