{"id":1168,"date":"2025-06-19T19:41:07","date_gmt":"2025-06-19T12:41:07","guid":{"rendered":"https:\/\/thoaicoder.com\/?p=1168"},"modified":"2025-07-26T23:46:05","modified_gmt":"2025-07-26T16:46:05","slug":"monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws","status":"publish","type":"post","link":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/","title":{"rendered":"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In today\u2019s cloud-native world, visibility into your system\u2019s health is non-negotiable. You can\u2019t fix what you can\u2019t see \u2014 and that\u2019s where <strong>AWS CloudWatch<\/strong> steps in. Even better? You can deploy powerful monitoring infrastructure in minutes using <strong>Terraform<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, I\u2019ll walk you through how to create:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>custom CloudWatch metric<\/strong><\/li>\n\n\n\n<li>A <strong>CloudWatch alarm<\/strong> that triggers when the metric crosses a threshold<\/li>\n\n\n\n<li>An <strong>SNS topic<\/strong> for alert notifications<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">All with <strong>infrastructure-as-code<\/strong>, following the same Terraform approach I used in <a class=\"\" href=\"https:\/\/thoaicoder.com\/index.php\/2025\/05\/27\/create-a-scheduler-with-aws-lambda-and-terra-form-in-5-minutes\/\">this post<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Use case<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s say you want to monitor API latency. You\u2019ll:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Send custom latency values to CloudWatch from your app<\/li>\n\n\n\n<li>Set up a threshold (e.g., &gt; 500ms)<\/li>\n\n\n\n<li>Trigger an alarm via SNS (email or automation)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3. Terraform Project Structure<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s a simple file layout:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-tangaroa-background-color has-text-color has-background has-link-color wp-elements-1\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\"><code>cloudwatch-monitoring\/\n\u251c\u2500\u2500 main.tf\n\u251c\u2500\u2500 variables.tf\n\u251c\u2500\u2500 outputs.tf\n\u251c\u2500\u2500 publish-metric.py  # Optional - for testing\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: Create an SNS Topic for Notifications<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-tangaroa-background-color has-text-color has-background has-link-color wp-elements-2\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\"><code>resource \"aws_sns_topic\" \"alerts\" {\n  name = \"cloudwatch-alerts-topic\"\n}\n\nresource \"aws_sns_topic_subscription\" \"email_alert\" {\n  topic_arn = aws_sns_topic.alerts.arn\n  protocol  = \"email\"\n  endpoint  = var.alert_email  # e.g., \"you@example.com\"\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Create a CloudWatch Metric Alarm<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-tangaroa-background-color has-text-color has-background has-link-color wp-elements-3\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\"><code>resource \"aws_cloudwatch_metric_alarm\" \"api_latency_alarm\" {\n  alarm_name                = \"High-APILatency\"\n  comparison_operator       = \"GreaterThanThreshold\"\n  evaluation_periods        = 3\n  metric_name               = \"APILatency\"\n  namespace                 = \"MyApp\/Performance\"\n  period                    = 60\n  statistic                 = \"Average\"\n  threshold                 = 500\n  alarm_description         = \"API latency is too high!\"\n  actions_enabled           = true\n  alarm_actions             = &#91;aws_sns_topic.alerts.arn]\n\n  dimensions = {\n    Endpoint = \"\/checkout\"\n  }\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: (Optional) Publish Custom Metrics with Python<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-tangaroa-background-color has-text-color has-background has-link-color wp-elements-4\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\"><code>import boto3\nimport time\n\ncloudwatch = boto3.client('cloudwatch')\n\ncloudwatch.put_metric_data(\n    Namespace='MyApp\/Performance',\n    MetricData=&#91;\n        {\n            'MetricName': 'APILatency',\n            'Dimensions': &#91;{'Name': 'Endpoint', 'Value': '\/checkout'}],\n            'Timestamp': time.strftime(\"%Y-%m-%dT%H:%M:%SZ\", time.gmtime()),\n            'Value': 600,\n            'Unit': 'Milliseconds'\n        },\n    ]\n)\n\nprint(\"Metric published!\")\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">variables.tf<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-tangaroa-background-color has-text-color has-background has-link-color wp-elements-5\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\"><code>variable \"alert_email\" {\n  description = \"Email address for CloudWatch alarm notifications\"\n  type        = string\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Deploy with Terraform<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-tangaroa-background-color has-text-color has-background has-link-color wp-elements-6\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\"><code>terraform init\nterraform apply -var=\"alert_email=your@email.com\"\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Done! Now You Can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automatically track API latency (or any other custom metric)<\/li>\n\n\n\n<li>Get real-time alerts when something goes wrong<\/li>\n\n\n\n<li>Manage everything with version-controlled infrastructure code<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">4. Conclustion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Monitoring is more than just collecting data \u2014 it&#8217;s about getting <strong>actionable alerts<\/strong> before your users complain. By combining <strong>CloudWatch, SNS, and Terraform<\/strong>, you get a scalable, repeatable way to keep your system healthy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Introduction In today\u2019s cloud-native world, visibility into your system\u2019s health is non-negotiable. You can\u2019t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1170,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[60,63,62,61],"class_list":["post-1168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing","tag-aws","tag-cloud-computing","tag-infrastructure-as-code","tag-serverless"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.14 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS - I \u2764 Code<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS - I \u2764 Code\" \/>\n<meta property=\"og:description\" content=\"1. Introduction In today\u2019s cloud-native world, visibility into your system\u2019s health is non-negotiable. You can\u2019t [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/\" \/>\n<meta property=\"og:site_name\" content=\"I \u2764 Code\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-19T12:41:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-26T16:46:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thoaicoder.com\/wp-content\/uploads\/2025\/06\/Security-Alert-1140x667-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1140\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Thoai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/\"},\"author\":{\"name\":\"Thoai\",\"@id\":\"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720\"},\"headline\":\"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS\",\"datePublished\":\"2025-06-19T12:41:07+00:00\",\"dateModified\":\"2025-07-26T16:46:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/\"},\"wordCount\":231,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720\"},\"keywords\":[\"AWS\",\"Cloud computing\",\"Infrastructure as code\",\"Serverless\"],\"articleSection\":[\"Cloud computing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/\",\"url\":\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/\",\"name\":\"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS - I \u2764 Code\",\"isPartOf\":{\"@id\":\"https:\/\/thoaicoder.com\/#website\"},\"datePublished\":\"2025-06-19T12:41:07+00:00\",\"dateModified\":\"2025-07-26T16:46:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/thoaicoder.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/thoaicoder.com\/#website\",\"url\":\"https:\/\/thoaicoder.com\/\",\"name\":\"I \u2764 Code\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/thoaicoder.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720\",\"name\":\"Thoai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thoaicoder.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/thoaicoder.com\/wp-content\/uploads\/2023\/03\/photo_2023-01-05_22-53-32.jpg\",\"contentUrl\":\"https:\/\/thoaicoder.com\/wp-content\/uploads\/2023\/03\/photo_2023-01-05_22-53-32.jpg\",\"width\":640,\"height\":640,\"caption\":\"Thoai\"},\"logo\":{\"@id\":\"https:\/\/thoaicoder.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/thoaicoder.com\",\"https:\/\/www.linkedin.com\/in\/huu-thoai-nguyen\/\"],\"url\":\"https:\/\/thoaicoder.com\/index.php\/author\/admin_cvyxq4b8\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS - I \u2764 Code","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/","og_locale":"en_US","og_type":"article","og_title":"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS - I \u2764 Code","og_description":"1. Introduction In today\u2019s cloud-native world, visibility into your system\u2019s health is non-negotiable. You can\u2019t [&hellip;]","og_url":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/","og_site_name":"I \u2764 Code","article_published_time":"2025-06-19T12:41:07+00:00","article_modified_time":"2025-07-26T16:46:05+00:00","og_image":[{"width":1140,"height":667,"url":"https:\/\/thoaicoder.com\/wp-content\/uploads\/2025\/06\/Security-Alert-1140x667-1.jpg","type":"image\/jpeg"}],"author":"Thoai","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Thoai","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#article","isPartOf":{"@id":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/"},"author":{"name":"Thoai","@id":"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720"},"headline":"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS","datePublished":"2025-06-19T12:41:07+00:00","dateModified":"2025-07-26T16:46:05+00:00","mainEntityOfPage":{"@id":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/"},"wordCount":231,"commentCount":0,"publisher":{"@id":"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720"},"keywords":["AWS","Cloud computing","Infrastructure as code","Serverless"],"articleSection":["Cloud computing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/","url":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/","name":"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS - I \u2764 Code","isPartOf":{"@id":"https:\/\/thoaicoder.com\/#website"},"datePublished":"2025-06-19T12:41:07+00:00","dateModified":"2025-07-26T16:46:05+00:00","breadcrumb":{"@id":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/thoaicoder.com\/index.php\/2025\/06\/19\/monitor-your-app-in-real-time-create-custom-metrics-alarms-in-aws\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thoaicoder.com\/"},{"@type":"ListItem","position":2,"name":"Monitor Your App in Real-Time: Create Custom Metrics &amp; Alarms in AWS"}]},{"@type":"WebSite","@id":"https:\/\/thoaicoder.com\/#website","url":"https:\/\/thoaicoder.com\/","name":"I \u2764 Code","description":"","publisher":{"@id":"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thoaicoder.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/thoaicoder.com\/#\/schema\/person\/a3304c209434f63c501b05622d7d2720","name":"Thoai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thoaicoder.com\/#\/schema\/person\/image\/","url":"https:\/\/thoaicoder.com\/wp-content\/uploads\/2023\/03\/photo_2023-01-05_22-53-32.jpg","contentUrl":"https:\/\/thoaicoder.com\/wp-content\/uploads\/2023\/03\/photo_2023-01-05_22-53-32.jpg","width":640,"height":640,"caption":"Thoai"},"logo":{"@id":"https:\/\/thoaicoder.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/thoaicoder.com","https:\/\/www.linkedin.com\/in\/huu-thoai-nguyen\/"],"url":"https:\/\/thoaicoder.com\/index.php\/author\/admin_cvyxq4b8\/"}]}},"_links":{"self":[{"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/comments?post=1168"}],"version-history":[{"count":2,"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/posts\/1168\/revisions"}],"predecessor-version":[{"id":1174,"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/posts\/1168\/revisions\/1174"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/media\/1170"}],"wp:attachment":[{"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/categories?post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thoaicoder.com\/index.php\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}