{"id":2093,"date":"2020-11-30T21:06:12","date_gmt":"2020-11-30T18:06:12","guid":{"rendered":"https:\/\/artem.services\/?p=2093"},"modified":"2020-12-07T12:16:00","modified_gmt":"2020-12-07T09:16:00","slug":"pagerduty-python-%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-%d0%b4%d0%bb%d1%8f-%d1%81%d0%be%d0%b7%d0%b4%d0%b0%d0%bd%d0%b8%d1%8f-%d1%81%d0%be%d0%b1%d1%8b%d1%82%d0%b8%d0%b9","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=2093","title":{"rendered":"PagerDuty &#8212; Python \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2094\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo.png\" alt=\"\" width=\"2709\" height=\"557\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo.png 2709w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo-300x62.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo-1024x211.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo-768x158.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo-1536x316.png 1536w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo-2048x421.png 2048w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo-954x196.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/pagerduty-logo-1354x278.png 1354w\" sizes=\"(max-width: 2709px) 100vw, 2709px\" \/><\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 <strong>Python<\/strong> \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 <strong>PagerDuty<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>APIv2<\/strong>.<\/p>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 <a href=\"https:\/\/airflow.readthedocs.io\/en\/latest\/_modules\/airflow\/providers\/pagerduty\/hooks\/pagerduty.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u0441\u043a\u0440\u0438\u043f\u0442<\/a>.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c &quot;<strong>Routing Key<\/strong>&quot;, \u043e\u043d \u0436\u0435 &quot;<strong>Integration Key<\/strong>&quot;, \u043d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c \u0441 &quot;<strong>API Access Key<\/strong>&quot;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 <strong>API<\/strong> \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u043d\u0430\u043c \u0436\u0435 \u043d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447 \u043e\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f &quot;<strong>AWS<\/strong>&quot;, \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0432\u043a\u043b\u0430\u0434\u043a\u0435\u00a0 &quot;<strong>Integrations<\/strong>&quot;<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2095\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08.png\" alt=\"\" width=\"2826\" height=\"1352\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08.png 2826w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08-300x144.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08-1024x490.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08-768x367.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08-1536x735.png 1536w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08-2048x980.png 2048w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08-954x456.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.17.08-1354x648.png 1354w\" sizes=\"(max-width: 2826px) 100vw, 2826px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e &#8212; &quot;<strong>Add a new integration<\/strong>&quot;<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2096\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.10.png\" alt=\"\" width=\"1160\" height=\"872\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.10.png 1160w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.10-300x226.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.10-1024x770.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.10-768x577.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.10-954x717.png 954w\" sizes=\"(max-width: 1160px) 100vw, 1160px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c &quot;<strong>Integration Type<\/strong>&quot; -&gt; &quot;<strong>Use our API directly<\/strong>&quot; -&gt; &quot;<strong>Events API v2<\/strong>&quot; \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c &quot;<strong>Integration Key<\/strong>&quot;<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2097\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42.png\" alt=\"\" width=\"2060\" height=\"498\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42.png 2060w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42-300x73.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42-1024x248.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42-768x186.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42-1536x371.png 1536w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42-2048x495.png 2048w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42-954x231.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-12-at-16.18.42-1354x327.png 1354w\" sizes=\"(max-width: 2060px) 100vw, 2060px\" \/><\/p>\n<h3>main.py:<\/h3>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport requests\r\nimport json\r\n\r\nfrom typing import Any, Dict, List, Optional\r\n\r\nrouting_key = 'abc123'\r\napi_url = 'https:\/\/events.pagerduty.com\/v2\/enqueue'\r\n\r\ndef create_event(\r\n    summary: str,\r\n    severity: str,\r\n    source: str = 'aws',\r\n    action: str = 'trigger',\r\n    dedup_key: Optional[str] = None,\r\n    custom_details: Optional[Any] = None,\r\n    group: Optional[str] = None,\r\n    component: Optional[str] = None,\r\n    class_type: Optional[str] = None,\r\n    images: Optional[List[Any]] = None,\r\n    links: Optional[List[Any]] = None\r\n) -&gt; Dict:\r\n    payload = {\r\n        &quot;summary&quot;: summary,\r\n        &quot;severity&quot;: severity,\r\n        &quot;source&quot;: source,\r\n    }\r\n    if custom_details is not None:\r\n        payload[&quot;custom_details&quot;] = custom_details\r\n    if component:\r\n        payload[&quot;component&quot;] = component\r\n    if group:\r\n        payload[&quot;group&quot;] = group\r\n    if class_type:\r\n        payload[&quot;class&quot;] = class_type\r\n\r\n    actions = ('trigger', 'acknowledge', 'resolve')\r\n    if action not in actions:\r\n        raise ValueError(&quot;Event action must be one of: %s&quot; % ', '.join(actions))\r\n    data = {\r\n        &quot;event_action&quot;: action,\r\n        &quot;routing_key&quot;: routing_key,\r\n        &quot;payload&quot;: payload,\r\n    }\r\n    if dedup_key:\r\n        data[&quot;dedup_key&quot;] = dedup_key\r\n    elif action != 'trigger':\r\n        raise ValueError(\r\n            &quot;The dedup_key property is required for event_action=%s events, and it must \\\r\n            be a string.&quot;\r\n            % action\r\n        )\r\n    if images is not None:\r\n        data[&quot;images&quot;] = images\r\n    if links is not None:\r\n        data[&quot;links&quot;] = links\r\n\r\n    response = requests.post(api_url, json = data)\r\n    print(response.content)\r\n\r\ndef main():\r\n    create_event(summary = &quot;Instance is down&quot;, severity = 'critical', custom_details = &quot;Instance ID: i-12345&quot;)\r\n  \r\nif __name__ == '__main__':\r\n    main()\r\n<\/pre>\n<p>&nbsp;<\/p>\n<blockquote><p>\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 &quot;<strong>routing_key<\/strong>&quot; \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &quot;<strong>Integration Key<\/strong>&quot;<\/p><\/blockquote>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441 \u0443\u0440\u043e\u0432\u043d\u0435\u043c &quot;<strong>critical<\/strong>&quot;, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c &quot;<strong>Instance is down<\/strong>&quot; \u0438 \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043e &quot;<strong>Instance ID: i-12345<\/strong>&quot;<\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 <strong>AWS CloudWatch Alarms<\/strong>, \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>AWS<\/strong> \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0432 <strong>PagerDuty<\/strong>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 <strong>SNS<\/strong> \u0442\u043e\u043f\u0438\u043a, <strong>Lambda<\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 <strong>SNS<\/strong> \u0442\u043e\u043f\u0438\u043a \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u043b\u044f <strong>Lambda<\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c <strong>CloudWatch Alarm<\/strong> \u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <strong>SNS<\/strong> \u0442\u043e\u043f\u0438\u043a.<\/p>\n<h3>main.py (Lambda + SNS):<\/h3>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport requests\r\nimport json\r\n\r\nfrom typing import Any, Dict, List, Optional\r\n\r\nrouting_key = 'abc123'\r\napi_url = 'https:\/\/events.pagerduty.com\/v2\/enqueue'\r\n\r\ndef get_message_info():\r\n    subject = event[&quot;Records&quot;][0][&quot;Sns&quot;][&quot;Subject&quot;]\r\n    message = event[&quot;Records&quot;][0][&quot;Sns&quot;][&quot;Message&quot;]\r\n    return subject, message\r\n\r\ndef create_event(\r\n    summary: str,\r\n    severity: str,\r\n    source: str = 'cloudwatch',\r\n    action: str = 'trigger',\r\n    dedup_key: Optional[str] = None,\r\n    custom_details: Optional[Any] = None,\r\n    group: Optional[str] = None,\r\n    component: Optional[str] = None,\r\n    class_type: Optional[str] = None,\r\n    images: Optional[List[Any]] = None,\r\n    links: Optional[List[Any]] = None\r\n) -&gt; Dict:\r\n    payload = {\r\n        &quot;summary&quot;: summary,\r\n        &quot;severity&quot;: severity,\r\n        &quot;source&quot;: source,\r\n    }\r\n    if custom_details is not None:\r\n        payload[&quot;custom_details&quot;] = custom_details\r\n    if component:\r\n        payload[&quot;component&quot;] = component\r\n    if group:\r\n        payload[&quot;group&quot;] = group\r\n    if class_type:\r\n        payload[&quot;class&quot;] = class_type\r\n\r\n    actions = ('trigger', 'acknowledge', 'resolve')\r\n    if action not in actions:\r\n        raise ValueError(&quot;Event action must be one of: %s&quot; % ', '.join(actions))\r\n    data = {\r\n        &quot;event_action&quot;: action,\r\n        &quot;routing_key&quot;: routing_key,\r\n        &quot;payload&quot;: payload,\r\n    }\r\n    if dedup_key:\r\n        data[&quot;dedup_key&quot;] = dedup_key\r\n    elif action != 'trigger':\r\n        raise ValueError(\r\n            &quot;The dedup_key property is required for event_action=%s events, and it must \\\r\n            be a string.&quot;\r\n            % action\r\n        )\r\n    if images is not None:\r\n        data[&quot;images&quot;] = images\r\n    if links is not None:\r\n        data[&quot;links&quot;] = links\r\n\r\n    response = requests.post(api_url, json = data)\r\n    print(response.content)\r\n\r\ndef main(event, context):\r\n    info = get_message_info()\r\n    create_event(summary = info[0], severity='critical', custom_details = info[1])\r\n  \r\nif __name__ == '__main__':\r\n    main()\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Python<\/strong> \u043f\u0430\u043a\u0435\u0442 &quot;<strong>requests<\/strong>&quot; \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432 <strong>zip<\/strong> \u0430\u0440\u0445\u0438\u0432 \u0441 <strong>Lambda<\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 <strong>Lambda<\/strong> \u0435\u0433\u043e \u043d\u0435\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f &quot;<strong>virtualenv<\/strong>&quot;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0430\u043d\u043d\u044b\u0439 Python \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 PagerDuty \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f APIv2. \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c &quot;Routing Key&quot;, \u043e\u043d \u0436\u0435 &quot;Integration Key&quot;, \u043d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c \u0441 &quot;API Access Key&quot;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 API \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u043d\u0430\u043c \u0436\u0435 \u043d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447 \u043e\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f &hellip; <a href=\"https:\/\/artem.services\/?p=2093\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;PagerDuty &#8212; Python \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,41],"tags":[25,891,893,1733,1159,1161,1293],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2093"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2093"}],"version-history":[{"count":5,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2093\/revisions"}],"predecessor-version":[{"id":2118,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2093\/revisions\/2118"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}