diff --git a/.github/workflows/config/labeler.yml b/.github/workflows/config/labeler.yml index 4ee0ae7a4b036..fe25c3a1be6a9 100644 --- a/.github/workflows/config/labeler.yml +++ b/.github/workflows/config/labeler.yml @@ -261,6 +261,8 @@ integration/iis: - iis/**/* integration/impala: - impala/**/* +integration/intercom: +- intercom/**/* integration/incident_io: - incident_io/**/* integration/istio: diff --git a/intercom/CHANGELOG.md b/intercom/CHANGELOG.md new file mode 100644 index 0000000000000..1d29b050d6933 --- /dev/null +++ b/intercom/CHANGELOG.md @@ -0,0 +1,7 @@ +# CHANGELOG - Intercom + +## 1.0.0 / 2024-09-17 + +***Added***: + +* Initial Release \ No newline at end of file diff --git a/intercom/README.md b/intercom/README.md new file mode 100644 index 0000000000000..98320f6395cb0 --- /dev/null +++ b/intercom/README.md @@ -0,0 +1,84 @@ +# Intercom + +## Overview +[Intercom][1] is a customer communication platform that enables businesses to engage with their users through in-app messaging, email, and chat. It offers features like live chat, automated messaging, and customer support tools, making it easier for companies to provide personalized customer experiences. + +The Intercom integration seamlessly collects admin activities, data events, conversations, news items, and ticket data, and ingests them into Datadog for comprehensive analysis using [webhooks][6]. + +## Setup + +Follow the instructions below to configure this integration for your Intercom account. + +### Configuration + +#### Webhook Configuration +Configure the Datadog endpoint to forward Intercom events as logs to Datadog. See [Intercom webhook overview][3] for more details. + + 1. Copy the generated URL inside the **Configuration** tab on the Datadog [Intercom integration tile][4]. + 2. Sign in to your [Intercom][2] account using a user account with full access to Apps and Integrations. + 3. Go to **Settings**. + 4. In the Integrations section, select **Developer Hub**. + 5. Click **New app**. + 6. Fill in the required details for your application, including the name and associated workspace. + 7. Click **Create app**. +- #### Configure webhook topics + 1. Select Required permissions + 1. After creating the app, go to the *Authentication* section in the left-side menu, and click the **Edit** button in the top-right corner. + 2. By default, all permissions are enabled. However, ensure that the following specific permissions are enabled: + - Read admins + - Read content data + - Read conversations + - Read events + - Read tickets + 3. Click **Save**. + 2. Select Webhook topics + ``` + 1. Next, navigate to the **Webhooks** section using the left-side menu. + 2. Enter the endpoint URL that you generated in step 1 of [Webhook Configuration](#webhook-configuration). + 3. On the **Select a topic** dropdown menu, select the following webhook topics: + - admin.activity_log_event.created + - content_stat.news_item + - conversation.admin.closed + - conversation.admin.replied + - conversation.admin.single.created + - conversation.admin.snoozed + - conversation.admin.unsnoozed + - conversation.priority.updated + - conversation.rating.added + - conversation.user.created + - event.created + - ticket.admin.assigned + - ticket.attribute.updated + - ticket.created + - ticket.state.updated + - ticket.team.assigned + 4. Click **Save**. + +## Data Collected + +### Logs + +The Intercom integration collects and forwards admin activities, tickets, data events, news items, and conversation logs to Datadog. + +### Metrics + +The Intercom integration does not include any metrics. + +### Events + +The Intercom integration does not include any events. + +### Service Checks + +The Intercom integration does not include any service checks. + +## Support + +For further assistance, contact [Datadog Support][5]. + +[1]: https://www.intercom.com/ +[2]: https://app.intercom.com/ +[3]: https://developers.intercom.com/docs/webhooks +[4]: https://app.datadoghq.com/integrations/intercom +[5]: https://docs.datadoghq.com/help/ +[6]: https://developers.intercom.com/docs/references/2.10/webhooks/webhook-models \ No newline at end of file diff --git a/intercom/assets/dashboards/intercom_activity.json b/intercom/assets/dashboards/intercom_activity.json new file mode 100644 index 0000000000000..009b529a7fc79 --- /dev/null +++ b/intercom/assets/dashboards/intercom_activity.json @@ -0,0 +1,562 @@ +{ + "title": "Intercom Activity", + "description": "This dashboard provides a comprehensive overview of activities and highlights patterns through frequent and infrequent occurrences. Additionally, it offers insights into trends with activity logs over time. Detailed activity logs provide an in-depth analysis of all recorded activities.", + "widgets": [ + { + "id": 7729356934643914, + "definition": { + "type": "image", + "url": "https://cdn.bfldr.com/OLAMIFTW/at/8j935ttmptgxs72twq8zk36f/Intercom_Logo_Lockup_Black.png?auto=webp&format=png", + "url_dark_theme": "https://cdn.bfldr.com/OLAMIFTW/at/tc9zfv2f3gc6bc8n9qh47gf/Intercom_Logo_Lockup_White.png?auto=webp&format=png", + "sizing": "contain", + "has_background": false, + "has_border": false, + "vertical_align": "center", + "horizontal_align": "center" + }, + "layout": { + "x": 0, + "y": 0, + "width": 5, + "height": 3 + } + }, + { + "id": 8083967741378144, + "definition": { + "type": "note", + "content": "**Overview**\n\nThis dashboard offers an overview of activities and highlights patterns through frequent and infrequent activities. It includes panels for activity by type, email, and location. Trends are captured with activity logs over time, and detailed logs provide data for analysis.\n\nFor more information, see the [Intercom Integration Documentation](https://docs.datadoghq.com/integrations/intercom/).\n\n**Tips**\n- Use the timeframe selector in the upper-right corner of the dashboard to change the default timeframe.\n- Clone this dashboard to rearrange, modify, and add widgets and visualizations.", + "background_color": "white", + "font_size": "14", + "text_align": "left", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true + }, + "layout": { + "x": 5, + "y": 0, + "width": 7, + "height": 3 + } + }, + { + "id": 7742166260954860, + "definition": { + "title": "Total Activity Logs", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:activity $AppId $ActivityType $Email" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 0, + "y": 3, + "width": 4, + "height": 4 + } + }, + { + "id": 1180742486618932, + "definition": { + "title": "Activity by Type", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.activity_type", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:activity $AppId $ActivityType $Email" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "style": { + "palette": "datadog16" + }, + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 4, + "y": 3, + "width": 8, + "height": 4 + } + }, + { + "id": 6227471509180568, + "definition": { + "title": "Frequent Activity Logs", + "title_size": "16", + "title_align": "left", + "type": "toplist", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.activity_type", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:activity $AppId $ActivityType $Email" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "formulas": [ + { + "formula": "query1" + } + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "style": { + "display": { + "type": "stacked", + "legend": "automatic" + } + } + }, + "layout": { + "x": 0, + "y": 7, + "width": 6, + "height": 4 + } + }, + { + "id": 508840349300974, + "definition": { + "title": "Infrequent Activity Logs", + "title_size": "16", + "title_align": "left", + "type": "toplist", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.activity_type", + "limit": 10, + "sort": { + "order": "asc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:activity $AppId $ActivityType $Email" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "formulas": [ + { + "formula": "query1" + } + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "asc" + } + ] + } + } + ], + "style": { + "display": { + "type": "stacked", + "legend": "automatic" + } + } + }, + "layout": { + "x": 6, + "y": 7, + "width": 6, + "height": 4 + } + }, + { + "id": 2391792924201958, + "definition": { + "title": "Activity by Email", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@usr.email", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:activity $AppId $ActivityType $Email" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "style": { + "palette": "datadog16" + }, + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 0, + "y": 11, + "width": 6, + "height": 4 + } + }, + { + "id": 7611322828632796, + "definition": { + "title": "Activity by Location", + "title_size": "16", + "title_align": "left", + "type": "geomap", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@network.client.geoip.country.iso_code", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:activity $AppId $ActivityType $Email" + }, + "storage": "hot" + } + ], + "formulas": [ + { + "formula": "query1" + } + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "style": { + "palette": "hostmap_blues", + "palette_flip": false + }, + "view": { + "focus": "WORLD" + } + }, + "layout": { + "x": 6, + "y": 11, + "width": 6, + "height": 4 + } + }, + { + "id": 8583284160124880, + "definition": { + "title": "Activity Logs over Time", + "title_size": "16", + "title_align": "left", + "show_legend": false, + "legend_layout": "horizontal", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Activity Logs", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:activity $AppId $ActivityType $Email" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 0, + "y": 15, + "width": 12, + "height": 4 + } + }, + { + "id": 1268558157977012, + "definition": { + "title": "Activity Logs", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "response_format": "event_list", + "query": { + "data_source": "logs_stream", + "query_string": "source:intercom service:activity $AppId $ActivityType $Email ", + "indexes": [], + "storage": "hot", + "sort": { + "order": "desc", + "column": "timestamp" + } + }, + "columns": [ + { + "field": "status_line", + "width": "auto" + }, + { + "field": "timestamp", + "width": "auto" + }, + { + "field": "content", + "width": "auto" + } + ] + } + ], + "type": "list_stream" + }, + "layout": { + "x": 0, + "y": 19, + "width": 12, + "height": 4 + } + } + ], + "template_variables": [ + { + "name": "AppId", + "prefix": "@app_id", + "available_values": [], + "default": "*" + }, + { + "name": "ActivityType", + "prefix": "@data.item.activity_type", + "available_values": [], + "default": "*" + }, + { + "name": "Email", + "prefix": "@usr.email", + "available_values": [], + "default": "*" + } + ], + "layout_type": "ordered", + "notify_list": [], + "reflow_type": "fixed" +} \ No newline at end of file diff --git a/intercom/assets/dashboards/intercom_conversation.json b/intercom/assets/dashboards/intercom_conversation.json new file mode 100644 index 0000000000000..abdca16530060 --- /dev/null +++ b/intercom/assets/dashboards/intercom_conversation.json @@ -0,0 +1,1650 @@ +{ + "title": "Intercom Conversation", + "description": "This dashboard provides a comprehensive view of conversation metrics, tracking total conversations, unique ids, and AI-driven interactions. It covers user engagement with read, unread, and priority conversations, and monitors admin participation.", + "widgets": [ + { + "id": 6225288685694040, + "definition": { + "type": "image", + "url": "https://cdn.bfldr.com/OLAMIFTW/at/8j935ttmptgxs72twq8zk36f/Intercom_Logo_Lockup_Black.png?auto=webp&format=png", + "url_dark_theme": "https://cdn.bfldr.com/OLAMIFTW/at/tc9zfv2f3gc6bc8n9qh47gf/Intercom_Logo_Lockup_White.png?auto=webp&format=png", + "sizing": "contain", + "has_background": false, + "has_border": false, + "vertical_align": "center", + "horizontal_align": "center" + }, + "layout": { + "x": 0, + "y": 0, + "width": 5, + "height": 3 + } + }, + { + "id": 2170603558098884, + "definition": { + "type": "note", + "content": "**Overview**\n\nThis dashboard provides a concise view of conversations, with Overview covering total and AI-driven interactions, Status insights, Rating and Remarks for user feedback, Breakdown by attributes, and Logs for conversation history.\n\nFor more information, see the [Intercom Integration Documentation](https://docs.datadoghq.com/integrations/intercom/).\n\n**Tips**\n- Use the timeframe selector in the upper-right corner of the dashboard to change the default timeframe.\n- Clone this dashboard to rearrange, modify, and add widgets and visualizations.", + "background_color": "white", + "font_size": "14", + "text_align": "left", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true + }, + "layout": { + "x": 5, + "y": 0, + "width": 7, + "height": 3 + } + }, + { + "id": 5185798468740536, + "definition": { + "title": "Conversation Overview", + "background_color": "vivid_green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 3010091770766660, + "definition": { + "title": "Total Conversations", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "custom_bg", + "custom_bg_color": "#f2e5ff" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 0, + "y": 0, + "width": 4, + "height": 4 + } + }, + { + "id": 2356000820604452, + "definition": { + "title": "Inbound Conversations", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.user.created $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_yellow" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 4, + "y": 0, + "width": 4, + "height": 2 + } + }, + { + "id": 2517373666557558, + "definition": { + "title": "Conversations with AI Agent Participation", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @data.item.ai_agent_participated:true $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "yaxis": { + "include_zero": true + }, + "type": "area" + } + }, + "layout": { + "x": 8, + "y": 0, + "width": 4, + "height": 2 + } + }, + { + "id": 8589586015163576, + "definition": { + "title": "Outbound Conversations", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query2 - query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query2", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.* $AppId" + }, + "storage": "hot" + }, + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.user.created $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_yellow" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 4, + "y": 2, + "width": 4, + "height": 2 + } + }, + { + "id": 1483094321953550, + "definition": { + "title": "Conversations with Copilot Usage", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @data.item.custom_attributes.copilot_used:true $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">=", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 8, + "y": 2, + "width": 4, + "height": 2 + } + } + ] + }, + "layout": { + "x": 0, + "y": 3, + "width": 12, + "height": 5 + } + }, + { + "id": 3369276352580868, + "definition": { + "title": "Conversation Status", + "background_color": "vivid_yellow", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 804864477250522, + "definition": { + "title": "Priority Conversations", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @data.item.priority:priority $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_red", + "custom_bg_color": "#ffcccc" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 0, + "y": 0, + "width": 4, + "height": 3 + } + }, + { + "id": 1684566877105766, + "definition": { + "title": "Conversations Replied by Admin", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.admin.replied $AppId" + }, + "storage": "hot" + } + ], + "formulas": [ + { + "formula": "query1" + } + ], + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "yaxis": { + "include_zero": true + }, + "type": "area" + } + }, + "layout": { + "x": 4, + "y": 0, + "width": 4, + "height": 3 + } + }, + { + "id": 3691821778471824, + "definition": { + "title": "Closed Conversations", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.admin.closed $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 8, + "y": 0, + "width": 4, + "height": 3 + } + }, + { + "id": 8005267547192310, + "definition": { + "title": "Snoozed/Unsnoozed Conversation Logs over Time", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "horizontal", + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Snoozed Conversations", + "formula": "query1" + }, + { + "alias": "Unsnoozed Conversations", + "formula": "query2" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.admin.snoozed $AppId" + }, + "storage": "hot" + }, + { + "data_source": "logs", + "name": "query2", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.admin.unsnoozed $AppId" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 0, + "y": 3, + "width": 12, + "height": 4 + } + } + ] + }, + "layout": { + "x": 0, + "y": 8, + "width": 12, + "height": 8 + } + }, + { + "id": 2302411052359286, + "definition": { + "title": "Conversation Rating & Remarks", + "background_color": "vivid_blue", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 6890963303419340, + "definition": { + "title": "Conversation Rating Distribution", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@data.item.conversation_rating.rating", + "limit": 5, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "text_formats": [ + [ + { + "match": { + "type": "is", + "value": "1" + }, + "palette": "black_on_light_red", + "replace": { + "type": "all", + "with": "★" + } + }, + { + "match": { + "type": "is", + "value": "2" + }, + "palette": "black_on_light_red", + "replace": { + "type": "all", + "with": "★ ★" + } + }, + { + "match": { + "type": "is", + "value": "3" + }, + "palette": "black_on_light_yellow", + "replace": { + "type": "all", + "with": "★ ★ ★" + } + }, + { + "match": { + "type": "is", + "value": "4" + }, + "palette": "black_on_light_green", + "replace": { + "type": "all", + "with": "★ ★ ★ ★" + } + }, + { + "match": { + "type": "is", + "value": "5" + }, + "palette": "black_on_light_green", + "replace": { + "type": "all", + "with": "★ ★ ★ ★ ★" + } + } + ] + ], + "sort": { + "order_by": [ + { + "type": "group", + "name": "@data.item.conversation_rating.rating", + "order": "asc" + } + ], + "count": 5 + }, + "formulas": [ + { + "cell_display_mode": "bar", + "alias": "count", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 0, + "y": 0, + "width": 6, + "height": 3 + } + }, + { + "id": 727075484298512, + "definition": { + "title": "Rated Conversations", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query2" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query2", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.rating.added $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 6, + "y": 0, + "width": 3, + "height": 3 + } + }, + { + "id": 4222323143179672, + "definition": { + "title": "Non-Rated Conversations", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1 - query2" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + }, + { + "data_source": "logs", + "name": "query2", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation @topic:conversation.rating.added $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_yellow" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 9, + "y": 0, + "width": 3, + "height": 3 + } + }, + { + "id": 2644610456165382, + "definition": { + "title": "Conversation Remarks", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@usr.email", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + }, + { + "facet": "@data.item.conversation_rating.remark", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + }, + { + "facet": "@data.item.conversation_rating.rating", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + }, + { + "facet": "@data.item.id", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "text_formats": [ + [], + [], + [ + { + "match": { + "type": "is", + "value": "1" + }, + "palette": "black_on_light_red", + "replace": { + "type": "all", + "with": "★" + } + }, + { + "match": { + "type": "is", + "value": "2" + }, + "palette": "black_on_light_red", + "replace": { + "type": "all", + "with": "★★" + } + }, + { + "match": { + "type": "is", + "value": "3" + }, + "palette": "black_on_light_yellow", + "replace": { + "type": "all", + "with": "★★★" + } + }, + { + "match": { + "type": "is", + "value": "4" + }, + "palette": "black_on_light_green", + "replace": { + "type": "all", + "with": "★★★★" + } + }, + { + "match": { + "type": "is", + "value": "5" + }, + "palette": "black_on_light_green", + "replace": { + "type": "all", + "with": "★★★★★" + } + } + ] + ], + "sort": { + "order_by": [ + { + "type": "group", + "name": "@data.item.conversation_rating.remark", + "order": "asc" + } + ], + "count": 10000 + }, + "formulas": [ + { + "cell_display_mode": "bar", + "alias": "count", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 0, + "y": 3, + "width": 12, + "height": 4 + } + } + ] + }, + "layout": { + "x": 0, + "y": 16, + "width": 12, + "height": 8 + } + }, + { + "id": 7011236923287130, + "definition": { + "title": "Conversation Breakdown", + "background_color": "vivid_orange", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 470995113993354, + "definition": { + "title": "Conversation by Author Type", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@data.item.source.author.type", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 0, + "y": 0, + "width": 6, + "height": 4 + } + }, + { + "id": 3347971102226882, + "definition": { + "title": "Conversation by Source Type", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@data.item.source.type", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 6, + "y": 0, + "width": 6, + "height": 4 + } + }, + { + "id": 5247675630366102, + "definition": { + "title": "Conversation Closed by Teammates", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@data.item.conversation_parts.conversation_parts.author.name", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + }, + { + "facet": "@data.item.conversation_parts.conversation_parts.author.type", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation @topic:conversation.admin.closed $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 100, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "formulas": [ + { + "cell_display_mode": "bar", + "alias": "count", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 4 + } + }, + { + "id": 8192531077964338, + "definition": { + "title": "Conversation by URL", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@data.item.first_contact_reply.url", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "formulas": [ + { + "cell_display_mode": "bar", + "alias": "Count", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 6, + "y": 4, + "width": 6, + "height": 4 + } + }, + { + "id": 3784662998260552, + "definition": { + "title": "Conversation by Delivery", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@data.item.source.delivered_as", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "automatic" + } + }, + "layout": { + "x": 0, + "y": 8, + "width": 5, + "height": 4 + } + }, + { + "id": 6224197028924524, + "definition": { + "title": "Conversation by Email", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.source.id" + }, + "group_by": [ + { + "facet": "@usr.email", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.source.id" + } + } + ], + "search": { + "query": "source:intercom service:conversation $AppId -@usr.email:\"\"" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 5, + "y": 8, + "width": 7, + "height": 4 + } + } + ] + }, + "layout": { + "x": 0, + "y": 24, + "width": 12, + "height": 13 + } + }, + { + "id": 1078813600796590, + "definition": { + "title": "Conversation Logs", + "background_color": "vivid_purple", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 1731470464403416, + "definition": { + "title": "Conversation Logs over Time", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Conversations", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:conversation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 4 + } + }, + { + "id": 1124979554619552, + "definition": { + "title": "Conversation Logs", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "response_format": "event_list", + "query": { + "data_source": "logs_stream", + "query_string": "source:intercom service:conversation $AppId ", + "indexes": [], + "storage": "hot", + "sort": { + "order": "desc", + "column": "timestamp" + } + }, + "columns": [ + { + "field": "status_line", + "width": "auto" + }, + { + "field": "timestamp", + "width": "auto" + }, + { + "field": "content", + "width": "auto" + } + ] + } + ], + "type": "list_stream" + }, + "layout": { + "x": 0, + "y": 4, + "width": 12, + "height": 4 + } + } + ] + }, + "layout": { + "x": 0, + "y": 37, + "width": 12, + "height": 9 + } + }, + { + "id": 638964396789664, + "definition": { + "title": "Monitors Summary", + "background_color": "vivid_green", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 4113001593727152, + "definition": { + "title": "Conversation Monitors Summary", + "type": "manage_status", + "display_format": "countsAndList", + "color_preference": "text", + "hide_zero_counts": true, + "show_status": true, + "last_triggered_format": "relative", + "query": "tag:(source:intercom AND service:conversation)", + "sort": "status,asc", + "count": 50, + "start": 0, + "summary_type": "monitors", + "show_priority": false, + "show_last_triggered": false + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 3 + } + } + ] + }, + "layout": { + "x": 0, + "y": 46, + "width": 12, + "height": 4 + } + } + ], + "template_variables": [ + { + "name": "AppId", + "prefix": "@app_id", + "available_values": [], + "default": "*" + } + ], + "layout_type": "ordered", + "notify_list": [], + "reflow_type": "fixed" +} \ No newline at end of file diff --git a/intercom/assets/dashboards/intercom_data_event.json b/intercom/assets/dashboards/intercom_data_event.json new file mode 100644 index 0000000000000..2804a58e4ed28 --- /dev/null +++ b/intercom/assets/dashboards/intercom_data_event.json @@ -0,0 +1,560 @@ +{ + "title": "Intercom Data Event", + "description": "This dashboard provides a detailed analysis of data events by tracking total data events, highlighting patterns through frequent and infrequent activities, and offering insights into trends with data events over time. Detailed data event logs offer an in-depth analysis of all recorded activities.", + "widgets": [ + { + "id": 7280427532172846, + "definition": { + "type": "image", + "url": "https://cdn.bfldr.com/OLAMIFTW/at/8j935ttmptgxs72twq8zk36f/Intercom_Logo_Lockup_Black.png?auto=webp&format=png", + "url_dark_theme": "https://cdn.bfldr.com/OLAMIFTW/at/tc9zfv2f3gc6bc8n9qh47gf/Intercom_Logo_Lockup_White.png?auto=webp&format=png", + "sizing": "contain", + "has_background": false, + "has_border": false, + "vertical_align": "center", + "horizontal_align": "center" + }, + "layout": { + "x": 0, + "y": 0, + "width": 5, + "height": 3 + } + }, + { + "id": 3618593347996828, + "definition": { + "type": "note", + "content": "**Overview**\n\nThis dashboard offers a detailed analysis of data events, tracking total data events, highlights patterns through frequent and infrequent activities and offers insights into trends with data events over time.\n\nFor more information, see the [Intercom Integration Documentation](https://docs.datadoghq.com/integrations/intercom/).\n\n**Tips**\n- Use the timeframe selector in the upper-right of the dashboard to change the default timeframe.\n- Clone this dashboard to rearrange, modify and add widgets and visualizations.", + "background_color": "white", + "font_size": "14", + "text_align": "left", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true + }, + "layout": { + "x": 5, + "y": 0, + "width": 7, + "height": 3 + } + }, + { + "id": 7581757942831184, + "definition": { + "title": "Total Data Events", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId" + }, + "storage": "hot" + } + ], + "response_format": "scalar" + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 0, + "y": 3, + "width": 4, + "height": 4 + } + }, + { + "id": 4619163694799708, + "definition": { + "title": "Data Event by Type", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.event_name", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "style": { + "palette": "datadog16" + }, + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 4, + "y": 3, + "width": 8, + "height": 4 + } + }, + { + "id": 5438970282930678, + "definition": { + "title": "Frequent Data Events", + "title_size": "16", + "title_align": "left", + "type": "toplist", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.event_name", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "formulas": [ + { + "formula": "query1" + } + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "style": { + "display": { + "type": "stacked", + "legend": "automatic" + } + } + }, + "layout": { + "x": 0, + "y": 7, + "width": 6, + "height": 4 + } + }, + { + "id": 3661933617242074, + "definition": { + "title": "Infrequent Data Events", + "title_size": "16", + "title_align": "left", + "type": "toplist", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.event_name", + "limit": 10, + "sort": { + "order": "asc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "formulas": [ + { + "formula": "query1" + } + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "asc" + } + ] + } + } + ], + "style": { + "display": { + "type": "stacked", + "legend": "automatic" + } + } + }, + "layout": { + "x": 6, + "y": 7, + "width": 6, + "height": 4 + } + }, + { + "id": 652963744042232, + "definition": { + "title": "Data Event by Intercom User Id", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@usr.id", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "style": { + "palette": "datadog16" + }, + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 0, + "y": 11, + "width": 6, + "height": 4 + } + }, + { + "id": 4264091848446710, + "definition": { + "title": "Data Event by Email", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@usr.email", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "style": { + "palette": "datadog16" + }, + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 6, + "y": 11, + "width": 6, + "height": 4 + } + }, + { + "id": 2703438335898176, + "definition": { + "title": "Data Events over Time", + "title_size": "16", + "title_align": "left", + "show_legend": false, + "legend_layout": "horizontal", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Data Events", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 0, + "y": 15, + "width": 12, + "height": 4 + } + }, + { + "id": 96110862861646, + "definition": { + "title": "Data Event Logs", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "response_format": "event_list", + "query": { + "data_source": "logs_stream", + "query_string": "source:intercom service:data_event $AppId $EventName $Email $IntercomUserId ", + "indexes": [], + "storage": "hot", + "sort": { + "order": "desc", + "column": "timestamp" + } + }, + "columns": [ + { + "field": "status_line", + "width": "auto" + }, + { + "field": "timestamp", + "width": "auto" + }, + { + "field": "content", + "width": "auto" + } + ] + } + ], + "type": "list_stream" + }, + "layout": { + "x": 0, + "y": 19, + "width": 12, + "height": 4 + } + } + ], + "template_variables": [ + { + "name": "AppId", + "prefix": "@app_id", + "available_values": [], + "default": "*" + }, + { + "name": "EventName", + "prefix": "@data.item.event_name", + "available_values": [], + "default": "*" + }, + { + "name": "Email", + "prefix": "@usr.email", + "available_values": [], + "default": "*" + }, + { + "name": "IntercomUserId", + "prefix": "@usr.id", + "available_values": [], + "default": "*" + } + ], + "layout_type": "ordered", + "notify_list": [], + "reflow_type": "fixed" +} \ No newline at end of file diff --git a/intercom/assets/dashboards/intercom_news_item.json b/intercom/assets/dashboards/intercom_news_item.json new file mode 100644 index 0000000000000..460f5c54ebf5c --- /dev/null +++ b/intercom/assets/dashboards/intercom_news_item.json @@ -0,0 +1,889 @@ +{ + "title": "Intercom News Item", + "description": "This dashboard provides a detailed overview of news item insights by tracking the total number of news items and categorizing them by location and publishing method. Additionally, it offers insights into trends in news items and interactions over time, along with detailed news item logs for thorough tracking and analysis.", + "widgets": [ + { + "id": 1783675717862112, + "definition": { + "type": "image", + "url": "https://cdn.bfldr.com/OLAMIFTW/at/8j935ttmptgxs72twq8zk36f/Intercom_Logo_Lockup_Black.png?auto=webp&format=png", + "url_dark_theme": "https://cdn.bfldr.com/OLAMIFTW/at/tc9zfv2f3gc6bc8n9qh47gf/Intercom_Logo_Lockup_White.png?auto=webp&format=png", + "sizing": "contain", + "has_background": false, + "has_border": false, + "vertical_align": "center", + "horizontal_align": "center" + }, + "layout": { + "x": 0, + "y": 0, + "width": 5, + "height": 3 + } + }, + { + "id": 1627132489943418, + "definition": { + "type": "note", + "content": "**Overview**\n\nThis dashboard provides a detailed overview of news item insights by tracking the total number of news items and categorizing them by location and publishing method. Additionally, it offers insights into trends in news items and interactions over time, along with detailed news item logs for thorough tracking and analysis.\n\nFor more information, see the [Intercom Integration Documentation](https://docs.datadoghq.com/integrations/intercom/).\n\n**Tips**\n- Use the timeframe selector in the upper-right of the dashboard to change the default timeframe.\n- Clone this dashboard to rearrange, modify and add widgets and visualizations.", + "background_color": "white", + "font_size": "14", + "text_align": "left", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true + }, + "layout": { + "x": 5, + "y": 0, + "width": 7, + "height": 3 + } + }, + { + "id": 6027608778808484, + "definition": { + "title": "News Item Overview", + "background_color": "vivid_purple", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 5473167149271250, + "definition": { + "title": "Total News Items", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + }, + "group_by": [], + "search": { + "query": "source:intercom @data.item.metadata.content_type:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "custom_bg", + "custom_bg_color": "#f0e0ff" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 0, + "y": 0, + "width": 4, + "height": 3 + } + }, + { + "id": 2606365243271366, + "definition": { + "title": "Live News Items", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + }, + "group_by": [], + "search": { + "query": "source:intercom @data.item.metadata.content_type:news_item @data.item.activity_type:ruleset_activation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_green", + "custom_bg_color": "#f1f0ff" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 4, + "y": 0, + "width": 4, + "height": 3 + } + }, + { + "id": 1007087671380612, + "definition": { + "title": "Draft News Items", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1 - query2" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + }, + "group_by": [], + "search": { + "query": "source:intercom @data.item.metadata.content_type:news_item $AppId" + }, + "storage": "hot" + }, + { + "data_source": "logs", + "name": "query2", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + }, + "group_by": [], + "search": { + "query": "source:intercom @data.item.metadata.content_type:news_item @data.item.activity_type:ruleset_activation $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">=", + "value": 0, + "palette": "black_on_light_yellow", + "custom_bg_color": "#f1f0ff" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 8, + "y": 0, + "width": 4, + "height": 3 + } + }, + { + "id": 860732551273898, + "definition": { + "title": "Published News Item by Email", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + }, + "group_by": [ + { + "facet": "@data.item.performed_by.email", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + } + } + ], + "search": { + "query": "source:intercom @data.item.metadata.content_type:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 0, + "y": 3, + "width": 12, + "height": 4 + } + }, + { + "id": 1307878171497668, + "definition": { + "title": "News Item by Location", + "title_size": "16", + "title_align": "left", + "type": "geomap", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + }, + "group_by": [ + { + "facet": "@network.client.geoip.country.iso_code", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.metadata.ruleset_id" + } + } + ], + "search": { + "query": "source:intercom @data.item.metadata.content_type:news_item $AppId" + }, + "storage": "hot" + } + ], + "formulas": [ + { + "formula": "query1" + } + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + } + } + ], + "style": { + "palette": "hostmap_blues", + "palette_flip": false + }, + "view": { + "focus": "WORLD" + } + }, + "layout": { + "x": 0, + "y": 7, + "width": 12, + "height": 4 + } + }, + { + "id": 3940324333359674, + "definition": { + "title": "News Item Logs over Time", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "News Item", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom @data.item.metadata.content_type:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 0, + "y": 11, + "width": 12, + "height": 4 + } + }, + { + "id": 5369653893271258, + "definition": { + "title": "News Item Logs", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "response_format": "event_list", + "query": { + "data_source": "logs_stream", + "query_string": "source:intercom @data.item.metadata.content_type:news_item $AppId ", + "indexes": [], + "storage": "hot", + "sort": { + "order": "desc", + "column": "timestamp" + } + }, + "columns": [ + { + "field": "status_line", + "width": "auto" + }, + { + "field": "timestamp", + "width": "auto" + }, + { + "field": "content", + "width": "auto" + } + ] + } + ], + "type": "list_stream" + }, + "layout": { + "x": 0, + "y": 15, + "width": 12, + "height": 4 + } + } + ] + }, + "layout": { + "x": 0, + "y": 3, + "width": 12, + "height": 20 + } + }, + { + "id": 8471934349083632, + "definition": { + "title": "News Item Interaction", + "background_color": "vivid_blue", + "show_title": true, + "type": "group", + "layout_type": "ordered", + "widgets": [ + { + "id": 8975227590888264, + "definition": { + "title": "News Item Interaction by Role", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@usr.id" + }, + "group_by": [ + { + "facet": "@data.item.contact.role", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@usr.id" + } + } + ], + "search": { + "query": "source:intercom service:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 0, + "y": 0, + "width": 6, + "height": 4 + } + }, + { + "id": 7770402847859244, + "definition": { + "title": "News Item Interaction by Activity", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.content_stat.stat_type", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 6, + "y": 0, + "width": 6, + "height": 4 + } + }, + { + "id": 1780541513789538, + "definition": { + "title": "News Item Interactions", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.content_stat.content_title", + "limit": 250, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 250, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "formulas": [ + { + "alias": "Interactions", + "cell_display_mode": "bar", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 0, + "y": 4, + "width": 6, + "height": 4 + } + }, + { + "id": 5870934611496592, + "definition": { + "title": "News Item Interaction by City", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [ + { + "facet": "@data.item.contact.location.city", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "count" + } + } + ], + "search": { + "query": "source:intercom service:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 6, + "y": 4, + "width": 6, + "height": 4 + } + }, + { + "id": 4166954436308394, + "definition": { + "title": "News Item Interactions Logs over Time", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "horizontal", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Interactions", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:news_item $AppId" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 0, + "y": 8, + "width": 12, + "height": 4 + } + } + ] + }, + "layout": { + "x": 0, + "y": 23, + "width": 12, + "height": 13 + } + }, + { + "id": 3601831444471050, + "definition": { + "title": "News Item Interaction Logs", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "response_format": "event_list", + "query": { + "data_source": "logs_stream", + "query_string": "source:intercom service:news_item $AppId ", + "indexes": [], + "storage": "hot", + "sort": { + "order": "desc", + "column": "timestamp" + } + }, + "columns": [ + { + "field": "status_line", + "width": "auto" + }, + { + "field": "timestamp", + "width": "auto" + }, + { + "field": "content", + "width": "auto" + } + ] + } + ], + "type": "list_stream" + }, + "layout": { + "x": 0, + "y": 0, + "width": 12, + "height": 4 + } + } + ], + "template_variables": [ + { + "name": "AppId", + "prefix": "@app_id", + "available_values": [], + "default": "*" + } + ], + "layout_type": "ordered", + "notify_list": [], + "reflow_type": "fixed" +} \ No newline at end of file diff --git a/intercom/assets/dashboards/intercom_ticket.json b/intercom/assets/dashboards/intercom_ticket.json new file mode 100644 index 0000000000000..10fbf8a4cbe2d --- /dev/null +++ b/intercom/assets/dashboards/intercom_ticket.json @@ -0,0 +1,844 @@ +{ + "title": "Intercom Ticket", + "description": "This dashboard provides a detailed overview of insights related to tickets, tracking total tickets and categorizing them by type and status. Additionally, it includes insights on Tickets by Teammate Assignee ID and Tickets by Team Assignee ID, detailed news item logs for thorough tracking and analysis.", + "widgets": [ + { + "id": 884200066134640, + "definition": { + "type": "image", + "url": "https://cdn.bfldr.com/OLAMIFTW/at/8j935ttmptgxs72twq8zk36f/Intercom_Logo_Lockup_Black.png?auto=webp&format=png", + "url_dark_theme": "https://cdn.bfldr.com/OLAMIFTW/at/tc9zfv2f3gc6bc8n9qh47gf/Intercom_Logo_Lockup_White.png?auto=webp&format=png", + "sizing": "contain", + "has_background": false, + "has_border": false, + "vertical_align": "center", + "horizontal_align": "center" + }, + "layout": { + "x": 0, + "y": 0, + "width": 5, + "height": 3 + } + }, + { + "id": 1695785703283444, + "definition": { + "type": "note", + "content": "**Overview**\n\nThis dashboard provides a detailed overview of insights related to tickets, tracking total tickets, shared tickets, and archived tickets, and categorizing them by type and state. Additionally, it includes insights on Tickets by Teammate Assignee ID and Tickets by Team Assignee ID.\n\nFor more information, see the [Intercom Integration Documentation](https://docs.datadoghq.com/integrations/intercom/).\n\n**Tips**\n- Use the timeframe selector in the upper-right corner of the dashboard to change the default timeframe.\n- Clone this dashboard to rearrange, modify, and add widgets and visualizations.", + "background_color": "white", + "font_size": "14", + "text_align": "left", + "vertical_align": "top", + "show_tick": false, + "tick_pos": "50%", + "tick_edge": "left", + "has_padding": true + }, + "layout": { + "x": 5, + "y": 0, + "width": 7, + "height": 3 + } + }, + { + "id": 3732668766316452, + "definition": { + "title": "Total Tickets", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "custom_bg", + "custom_bg_color": "#f1f0ff" + } + ], + "formulas": [ + { + "formula": "query1" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 0, + "y": 3, + "width": 3, + "height": 3 + } + }, + { + "id": 5144174302820554, + "definition": { + "title": "Shared Tickets", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "response_format": "scalar", + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:ticket @data.item.is_shared:true $AppId" + }, + "storage": "hot" + } + ], + "conditional_formats": [ + { + "comparator": ">", + "value": 0, + "palette": "black_on_light_yellow", + "custom_bg_color": "#f1f0ff" + } + ], + "formulas": [ + { + "formula": "query1" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 3, + "y": 3, + "width": 3, + "height": 3 + } + }, + { + "id": 5252111996283722, + "definition": { + "title": "Ticket by Type", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [ + { + "facet": "@data.item.ticket_type.name", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + } + ], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 6, + "y": 3, + "width": 6, + "height": 5 + } + }, + { + "id": 3464763428775536, + "definition": { + "title": "External Tickets", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:ticket @data.item.ticket_type.is_internal:false $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">=", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 0, + "y": 6, + "width": 3, + "height": 2 + } + }, + { + "id": 5347522276972314, + "definition": { + "title": "Internal Tickets", + "title_size": "16", + "title_align": "left", + "type": "query_value", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [], + "search": { + "query": "source:intercom service:ticket @data.item.ticket_type.is_internal:true $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "conditional_formats": [ + { + "comparator": ">=", + "value": 0, + "palette": "black_on_light_green" + } + ] + } + ], + "autoscale": true, + "precision": 2, + "timeseries_background": { + "type": "area" + } + }, + "layout": { + "x": 3, + "y": 6, + "width": 3, + "height": 2 + } + }, + { + "id": 5686552018887696, + "definition": { + "title": "Ticket by Category", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [ + { + "facet": "@data.item.category", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + } + ], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 0, + "y": 8, + "width": 6, + "height": 4 + } + }, + { + "id": 4793770661763816, + "definition": { + "title": "Ticket by State", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "formulas": [ + { + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [ + { + "facet": "@data.item.ticket_state", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + } + ], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 500, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "style": { + "palette": "datadog16" + } + } + ], + "type": "sunburst", + "legend": { + "type": "table" + } + }, + "layout": { + "x": 6, + "y": 8, + "width": 6, + "height": 4 + } + }, + { + "id": 3960146065435968, + "definition": { + "title": "Ticket by Teammate Assignee Id", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [ + { + "facet": "@usr.id", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + } + ], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "text_formats": [ + [ + { + "match": { + "type": "is", + "value": "0" + }, + "palette": "black_on_light_red", + "replace": { + "type": "all", + "with": "Unassigned" + } + } + ] + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "formulas": [ + { + "cell_display_mode": "bar", + "alias": "count", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 0, + "y": 12, + "width": 6, + "height": 4 + } + }, + { + "id": 1088341693647172, + "definition": { + "title": "Ticket by Team Assignee Id", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [ + { + "facet": "@data.item.team_assignee_id", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + } + ], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "text_formats": [ + [ + { + "match": { + "type": "is", + "value": "0" + }, + "replace": { + "type": "all", + "with": "Unassigned" + }, + "palette": "black_on_light_red" + } + ] + ], + "sort": { + "count": 10, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "formulas": [ + { + "cell_display_mode": "bar", + "alias": "count", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 6, + "y": 12, + "width": 6, + "height": 4 + } + }, + { + "id": 772377947467084, + "definition": { + "title": "Ticket Summary", + "title_size": "16", + "title_align": "left", + "type": "query_table", + "requests": [ + { + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + }, + "group_by": [ + { + "facet": "@data.item.ticket_id", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + }, + { + "facet": "@data.item.ticket_attributes._default_title_", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + }, + { + "facet": "@data.item.ticket_attributes._default_description_", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + }, + { + "facet": "@data.item.ticket_type.name", + "limit": 10, + "sort": { + "order": "desc", + "aggregation": "cardinality", + "metric": "@data.item.ticket_id" + } + } + ], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "response_format": "scalar", + "sort": { + "count": 10000, + "order_by": [ + { + "type": "formula", + "index": 0, + "order": "desc" + } + ] + }, + "formulas": [ + { + "cell_display_mode": "bar", + "alias": "count", + "formula": "query1" + } + ] + } + ], + "has_search_bar": "auto" + }, + "layout": { + "x": 0, + "y": 16, + "width": 12, + "height": 4 + } + }, + { + "id": 7425989071032864, + "definition": { + "title": "Ticket Logs over Time", + "title_size": "16", + "title_align": "left", + "show_legend": true, + "legend_layout": "auto", + "legend_columns": [ + "avg", + "min", + "max", + "value", + "sum" + ], + "type": "timeseries", + "requests": [ + { + "formulas": [ + { + "alias": "Tickets", + "formula": "query1" + } + ], + "queries": [ + { + "data_source": "logs", + "name": "query1", + "indexes": [ + "*" + ], + "compute": { + "aggregation": "count" + }, + "group_by": [], + "search": { + "query": "source:intercom service:ticket $AppId" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { + "palette": "dog_classic", + "order_by": "values", + "line_type": "solid", + "line_width": "normal" + }, + "display_type": "line" + } + ] + }, + "layout": { + "x": 0, + "y": 20, + "width": 12, + "height": 4 + } + }, + { + "id": 1126880796734506, + "definition": { + "title": "Ticket Logs", + "title_size": "16", + "title_align": "left", + "requests": [ + { + "response_format": "event_list", + "query": { + "data_source": "logs_stream", + "query_string": "source:intercom service:ticket $AppId ", + "indexes": [], + "storage": "hot", + "sort": { + "order": "desc", + "column": "timestamp" + } + }, + "columns": [ + { + "field": "status_line", + "width": "auto" + }, + { + "field": "timestamp", + "width": "auto" + }, + { + "field": "content", + "width": "auto" + } + ] + } + ], + "type": "list_stream" + }, + "layout": { + "x": 0, + "y": 24, + "width": 12, + "height": 4 + } + } + ], + "template_variables": [ + { + "name": "AppId", + "prefix": "@app_id", + "available_values": [], + "default": "*" + } + ], + "layout_type": "ordered", + "notify_list": [], + "reflow_type": "fixed" +} \ No newline at end of file diff --git a/intercom/assets/intercom_dark.svg b/intercom/assets/intercom_dark.svg new file mode 100644 index 0000000000000..e82c3f753a029 --- /dev/null +++ b/intercom/assets/intercom_dark.svg @@ -0,0 +1,20 @@ + + \ No newline at end of file diff --git a/intercom/assets/intercom_light.svg b/intercom/assets/intercom_light.svg new file mode 100644 index 0000000000000..425b6b67b18aa --- /dev/null +++ b/intercom/assets/intercom_light.svg @@ -0,0 +1,20 @@ + + \ No newline at end of file diff --git a/intercom/assets/logs/intercom.yaml b/intercom/assets/logs/intercom.yaml new file mode 100644 index 0000000000000..f987243032e7b --- /dev/null +++ b/intercom/assets/logs/intercom.yaml @@ -0,0 +1,291 @@ +id: intercom +metric_id: intercom +backend_only: false +facets: + - groups: + - User + name: User ID + path: usr.id + source: log + - groups: + - User + name: User Email + path: usr.email + source: log + - groups: + - User + name: User Name + path: usr.name + source: log + - groups: + - Geoip + name: City Name + path: network.client.geoip.city.name + source: log + - groups: + - Geoip + name: Continent Code + path: network.client.geoip.continent.code + source: log + - groups: + - Geoip + name: Continent Name + path: network.client.geoip.continent.name + source: log + - groups: + - Geoip + name: Country ISO Code + path: network.client.geoip.country.iso_code + source: log + - groups: + - Geoip + name: Country Name + path: network.client.geoip.country.name + source: log + - groups: + - Geoip + name: Subdivision ISO Code + path: network.client.geoip.subdivision.iso_code + source: log + - groups: + - Geoip + name: Subdivision Name + path: network.client.geoip.subdivision.name + source: log + - groups: + - Web Access + name: Client IP + path: network.client.ip + source: log +pipeline: + type: pipeline + name: Intercom + enabled: true + filter: + query: "source:intercom" + processors: + - name: Lookup for `data.item.type` to `service` + enabled: true + source: data.item.type + target: service + lookupTable: |- + admin_activity_log_event, activity + event, data_event + conversation, conversation + content_stat.news_item, news_item + ticket, ticket + ticket_ticket_part, ticket + type: lookup-processor + - type: service-remapper + name: Define `service` as the official service of the log + enabled: true + sources: + - service + - type: pipeline + name: "Conversation" + enabled: true + filter: + query: "service:conversation" + processors: + - type: arithmetic-processor + name: Convert `data.item.updated_at` from second to millisecond EPOCH UNIX + format and map to `updated_at_ms` + enabled: true + expression: data.item.updated_at*1000 + target: updated_at_ms + replaceMissing: false + - type: date-remapper + name: Define `updated_at_ms` as the official date of the log + enabled: true + sources: + - updated_at_ms + - type: attribute-remapper + name: Map `data.item.source.author.id` to `usr.id` + enabled: true + sources: + - data.item.source.author.id + sourceType: attribute + target: usr.id + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: attribute-remapper + name: Map `data.item.source.author.email` to `usr.email` + enabled: true + sources: + - data.item.source.author.email + sourceType: attribute + target: usr.email + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: attribute-remapper + name: Map `data.item.source.author.name` to `usr.name` + enabled: true + sources: + - data.item.source.author.name + sourceType: attribute + target: usr.name + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: attribute-remapper + name: Map `data.item.custom_attributes.Copilot used` to + `data.item.custom_attributes.copilot_used` + enabled: true + sources: + - data.item.custom_attributes.Copilot used + sourceType: attribute + target: data.item.custom_attributes.copilot_used + targetType: attribute + preserveSource: false + overrideOnConflict: false + - type: pipeline + name: News Item + enabled: true + filter: + query: "service:news_item" + processors: + - type: date-remapper + name: Define `data.item.contact.updated_at` as the official date of the log + enabled: true + sources: + - data.item.contact.updated_at + - type: attribute-remapper + name: Map `data.item.contact.id` to `usr.id` + enabled: true + sources: + - data.item.contact.id + sourceType: attribute + target: usr.id + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: pipeline + name: Data Event + enabled: true + filter: + query: "service:data_event" + processors: + - type: arithmetic-processor + name: Convert `data.item.created_at` from second to millisecond EPOCH UNIX + format and map to `created_at_ms` + enabled: true + expression: data.item.created_at*1000 + target: created_at_ms + replaceMissing: false + - type: date-remapper + name: Define `created_at_ms` as the official date of the log + enabled: true + sources: + - created_at_ms + - type: attribute-remapper + name: Map `data.item.intercom_user_id` to `usr.id` + enabled: true + sources: + - data.item.intercom_user_id + sourceType: attribute + target: usr.id + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: attribute-remapper + name: Map `data.item.email` to `usr.email` + enabled: true + sources: + - data.item.email + sourceType: attribute + target: usr.email + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: pipeline + name: Activity + enabled: true + filter: + query: "service:activity" + processors: + - type: arithmetic-processor + name: Convert `data.item.created_at` from second to millisecond EPOCH UNIX + format and map to `created_at_ms` + enabled: true + expression: data.item.created_at*1000 + target: created_at_ms + replaceMissing: false + - type: date-remapper + name: Define `created_at_ms` as the official date of the log + enabled: true + sources: + - created_at_ms + - type: attribute-remapper + name: Map `data.item.performed_by.id` to `usr.id` + enabled: true + sources: + - data.item.performed_by.id + sourceType: attribute + target: usr.id + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: attribute-remapper + name: Map `data.item.performed_by.email` to `usr.email` + enabled: true + sources: + - data.item.performed_by.email + sourceType: attribute + target: usr.email + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: attribute-remapper + name: Map `data.item.performed_by.ip` to `network.client.ip` + enabled: true + sources: + - data.item.performed_by.ip + sourceType: attribute + target: network.client.ip + targetType: attribute + preserveSource: true + overrideOnConflict: false + - type: geo-ip-parser + name: GeoIP Parser for `network.client.ip` + enabled: true + sources: + - network.client.ip + target: network.client.geoip + ip_processing_behavior: do-nothing + - type: pipeline + name: Ticket + enabled: true + filter: + query: "service:ticket" + processors: + - type: arithmetic-processor + name: Convert `data.item.ticket.updated_at` from second to millisecond EPOCH + UNIX format and map to `updated_at_ms` + enabled: true + expression: data.item.ticket.updated_at*1000 + target: updated_at_ms + replaceMissing: false + - type: arithmetic-processor + name: Convert `data.item.updated_at` from second to millisecond EPOCH UNIX + format and map to `updated_at_ms` + enabled: true + expression: data.item.updated_at*1000 + target: updated_at_ms + replaceMissing: false + - type: date-remapper + name: Define `updated_at_ms` as the official date of the log + enabled: true + sources: + - updated_at_ms + - type: attribute-remapper + name: Map `data.item.admin_assignee_id` to `usr.id` + enabled: true + sources: + - data.item.admin_assignee_id + sourceType: attribute + target: usr.id + targetType: attribute + preserveSource: true + overrideOnConflict: false diff --git a/intercom/assets/logs/intercom_tests.yaml b/intercom/assets/logs/intercom_tests.yaml new file mode 100644 index 0000000000000..169ffc32c3fd0 --- /dev/null +++ b/intercom/assets/logs/intercom_tests.yaml @@ -0,0 +1,2209 @@ +id: intercom +tests: + - sample: |- + { + "data" : { + "item" : { + "read" : true, + "topics" : { + "total_count" : 0, + "type" : "topic.list" + }, + "created_at" : 1726135184, + "conversation_parts" : { + "total_count" : 1, + "conversation_parts" : [ { + "updated_at" : 1726135185, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "1234567", + "type" : "bot", + "email" : "operator+abcdefgh@intercom.io" + }, + "created_at" : 1726135185, + "part_type" : "language_detection_details", + "id" : "123", + "notified_at" : 1726135185, + "type" : "conversation_part" + } ], + "type" : "conversation_part.list" + }, + "waiting_since" : 1726135184, + "source" : { + "redacted" : false, + "subject" : "", + "author" : { + "id" : "a3f9de4278b2c016e5d4f309", + "type" : "lead", + "email" : "" + }, + "id" : "1234567890", + "type" : "conversation", + "body" : "
Hello
", + "delivered_as" : "customer_initiated", + "url" : "http://localhost:3001/" + }, + "type" : "conversation", + "priority" : "not_priority", + "tags" : { + "type" : "tag.list" + }, + "custom_attributes" : { + "Copilot used" : false + }, + "teammates" : { + "type" : "admin.list" + }, + "updated_at" : 1726135185, + "ai_agent_participated" : false, + "first_contact_reply" : { + "created_at" : 1726135184, + "type" : "conversation", + "url" : "http://localhost:3001/" + }, + "id" : "73", + "state" : "open", + "linked_objects" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + }, + "contacts" : { + "type" : "contact.list", + "contacts" : [ { + "external_id" : "7a8e4d1b-9c23-4f8d-91b2-e3c4d5678f90", + "id" : "a3f9de4278b2c016e5d4f309", + "type" : "contact" + } ] + }, + "open" : true, + "statistics" : { + "last_contact_reply_at" : "2024-09-12T09:59:44.000Z", + "count_assignments" : 0, + "count_conversation_parts" : 2, + "first_contact_reply_at" : "2024-09-12T09:59:44.000Z", + "type" : "conversation_statistics", + "count_reopens" : 0 + } + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726135186, + "topic" : "conversation.user.created", + "created_at" : 1726135186, + "id" : "notif_7b3e81c1-6f92-4c8d-b345-9f5a2c1d8e12", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "conversation" + result: + custom: + app_id: "abcdefgh" + created_at: 1726135186 + data: + item: + ai_agent_participated: false + contacts: + contacts: + - + external_id: "7a8e4d1b-9c23-4f8d-91b2-e3c4d5678f90" + id: "a3f9de4278b2c016e5d4f309" + type: "contact" + type: "contact.list" + conversation_parts: + conversation_parts: + - + updated_at: 1726135185 + redacted: false + author: + name: "Fin" + id: "1234567" + type: "bot" + email: "operator+abcdefgh@intercom.io" + created_at: 1726135185 + part_type: "language_detection_details" + id: "123" + notified_at: 1726135185 + type: "conversation_part" + total_count: 1 + type: "conversation_part.list" + created_at: 1726135184 + custom_attributes: + copilot_used: false + first_contact_reply: + created_at: 1726135184 + type: "conversation" + url: "http://localhost:3001/" + id: "73" + linked_objects: + has_more: false + total_count: 0 + type: "list" + open: true + priority: "not_priority" + read: true + source: + author: + email: "" + id: "a3f9de4278b2c016e5d4f309" + type: "lead" + body: "Hello
" + delivered_as: "customer_initiated" + id: "1234567890" + redacted: false + subject: "" + type: "conversation" + url: "http://localhost:3001/" + state: "open" + statistics: + count_assignments: 0 + count_conversation_parts: 2 + count_reopens: 0 + first_contact_reply_at: "2024-09-12T09:59:44.000Z" + last_contact_reply_at: "2024-09-12T09:59:44.000Z" + type: "conversation_statistics" + tags: + type: "tag.list" + teammates: + type: "admin.list" + topics: + total_count: 0 + type: "topic.list" + type: "conversation" + updated_at: 1726135185 + waiting_since: 1726135184 + type: "notification_event_data" + delivered_at: 0 + delivery_attempts: 1 + delivery_status: "pending" + first_sent_at: 1726135186 + id: "notif_7b3e81c1-6f92-4c8d-b345-9f5a2c1d8e12" + service: "conversation" + topic: "conversation.user.created" + type: "notification_event" + updated_at_ms: 1.726135185E12 + usr: + email: "" + id: "a3f9de4278b2c016e5d4f309" + message: |- + { + "data" : { + "item" : { + "read" : true, + "topics" : { + "total_count" : 0, + "type" : "topic.list" + }, + "created_at" : 1726135184, + "conversation_parts" : { + "total_count" : 1, + "conversation_parts" : [ { + "updated_at" : 1726135185, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "1234567", + "type" : "bot", + "email" : "operator+abcdefgh@intercom.io" + }, + "created_at" : 1726135185, + "part_type" : "language_detection_details", + "id" : "123", + "notified_at" : 1726135185, + "type" : "conversation_part" + } ], + "type" : "conversation_part.list" + }, + "waiting_since" : 1726135184, + "source" : { + "redacted" : false, + "subject" : "", + "author" : { + "id" : "a3f9de4278b2c016e5d4f309", + "type" : "lead", + "email" : "" + }, + "id" : "1234567890", + "type" : "conversation", + "body" : "Hello
", + "delivered_as" : "customer_initiated", + "url" : "http://localhost:3001/" + }, + "type" : "conversation", + "priority" : "not_priority", + "tags" : { + "type" : "tag.list" + }, + "custom_attributes" : { + "Copilot used" : false + }, + "teammates" : { + "type" : "admin.list" + }, + "updated_at" : 1726135185, + "ai_agent_participated" : false, + "first_contact_reply" : { + "created_at" : 1726135184, + "type" : "conversation", + "url" : "http://localhost:3001/" + }, + "id" : "73", + "state" : "open", + "linked_objects" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + }, + "contacts" : { + "type" : "contact.list", + "contacts" : [ { + "external_id" : "7a8e4d1b-9c23-4f8d-91b2-e3c4d5678f90", + "id" : "a3f9de4278b2c016e5d4f309", + "type" : "contact" + } ] + }, + "open" : true, + "statistics" : { + "last_contact_reply_at" : "2024-09-12T09:59:44.000Z", + "count_assignments" : 0, + "count_conversation_parts" : 2, + "first_contact_reply_at" : "2024-09-12T09:59:44.000Z", + "type" : "conversation_statistics", + "count_reopens" : 0 + } + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726135186, + "topic" : "conversation.user.created", + "created_at" : 1726135186, + "id" : "notif_7b3e81c1-6f92-4c8d-b345-9f5a2c1d8e12", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "conversation" + tags: + - "source:LOGS_SOURCE" + timestamp: 1726135185000 + - sample: >- + { + "data" : { + "item" : { + "metadata" : { + "update_by_name" : "ABC", + "auto_changed" : false, + "reassign_conversations" : false, + "away_mode" : false, + "source" : "admin update from web - Admin id: 1234567", + "update_by" : 1234567 + }, + "performed_by" : { + "ip" : "185.64.148.0", + "id" : "1234567", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "activity_type" : "admin_away_mode_change", + "created_at" : 1726135744, + "activity_description" : "ABC turned their away mode off and did not reassign their conversations.", + "id" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890", + "type" : "admin_activity_log_event" + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726135744, + "topic" : "admin.activity_log_event.created", + "created_at" : 1726135744, + "threat_intel" : { + "indicators_matched" : [ "IP" ], + "results" : [ { + "indicator" : "185.64.148.0", + "additional_data" : { + "tunnels" : [ { + "anonymous" : false, + "type" : "PROXY", + "operator" : "XYZ_PROXY" + } ], + "as" : { + "number" : 55256, + "organization" : "XYZ Inc" + }, + "risks" : [ "CALLBACK_PROXY" ], + "infrastructure" : "DATACENTER", + "organization" : "XYZ Inc.", + "client" : { + "types" : [ "MOBILE", "DESKTOP" ], + "count" : 4, + "concentration" : { + "country" : "IN", + "density" : 1, + "city" : "Gurgaon", + "geohash" : "ttnccg", + "state" : "Haryana", + "skew" : 28 + }, + "proxies" : [ "LUMINATI_PROXY" ], + "countries" : 1 + }, + "location" : { + "country" : "IN", + "city" : "Delhi", + "state" : "National Capital Territory of Delhi" + } + }, + "source" : { + "name" : "spur", + "url" : "https://spur.us" + }, + "type" : "IP", + "category" : "corp_vpn", + "intention" : "benign" + } ] + }, + "id" : "notif_3a7c4d12-56e7-4b8d-9f4c-d8e6f1234567", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending", + "network" : { + "ip" : { + "attributes" : [ { + "ip" : "185.64.148.0", + "source" : [ "@data.item.performed_by.ip" ] + } ], + "list" : [ "185.64.148.0" ] + } + } + } + service: "activity" + result: + custom: + app_id: "abcdefgh" + created_at: 1726135744 + created_at_ms: 1.726135744E12 + data: + item: + activity_description: "ABC turned their away mode off and did not reassign their conversations." + activity_type: "admin_away_mode_change" + created_at: 1726135744 + id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" + metadata: + auto_changed: false + away_mode: false + reassign_conversations: false + source: "admin update from web - Admin id: 1234567" + update_by: 1234567 + update_by_name: "ABC" + performed_by: + email: "abc@xyz.com" + id: "1234567" + ip: "185.64.148.0" + type: "admin" + type: "admin_activity_log_event" + type: "notification_event_data" + delivered_at: 0 + delivery_attempts: 1 + delivery_status: "pending" + first_sent_at: 1726135744 + id: "notif_3a7c4d12-56e7-4b8d-9f4c-d8e6f1234567" + network: + client: + geoip: + city: + name: "Paris" + continent: + code: "EU" + name: "Europe" + country: + iso_code: "FR" + name: "France" + ipAddress: "185.64.148.0" + location: + latitude: 48.90654 + longitude: 2.33339 + subdivision: + iso_code: "FR-IDF" + name: "Île-de-France" + timezone: "Europe/Paris" + ip: "185.64.148.0" + ip: + attributes: + - + ip: "185.64.148.0" + source: + - "@data.item.performed_by.ip" + list: + - "185.64.148.0" + service: "activity" + threat_intel: + indicators_matched: + - "IP" + results: + - + indicator: "185.64.148.0" + additional_data: + tunnels: + - + anonymous: false + type: "PROXY" + operator: "XYZ_PROXY" + as: + number: 55256 + organization: "XYZ Inc" + risks: + - "CALLBACK_PROXY" + infrastructure: "DATACENTER" + organization: "XYZ Inc." + client: + types: + - "MOBILE" + - "DESKTOP" + count: 4 + concentration: + country: "IN" + density: 1 + city: "Gurgaon" + geohash: "ttnccg" + state: "Haryana" + skew: 28 + proxies: + - "LUMINATI_PROXY" + countries: 1 + location: + country: "IN" + city: "Delhi" + state: "National Capital Territory of Delhi" + source: + name: "spur" + url: "https://spur.us" + type: "IP" + category: "corp_vpn" + intention: "benign" + topic: "admin.activity_log_event.created" + type: "notification_event" + usr: + email: "abc@xyz.com" + id: "1234567" + message: |- + { + "data" : { + "item" : { + "metadata" : { + "update_by_name" : "ABC", + "auto_changed" : false, + "reassign_conversations" : false, + "away_mode" : false, + "source" : "admin update from web - Admin id: 1234567", + "update_by" : 1234567 + }, + "performed_by" : { + "ip" : "185.64.148.0", + "id" : "1234567", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "activity_type" : "admin_away_mode_change", + "created_at" : 1726135744, + "activity_description" : "ABC turned their away mode off and did not reassign their conversations.", + "id" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890", + "type" : "admin_activity_log_event" + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726135744, + "topic" : "admin.activity_log_event.created", + "created_at" : 1726135744, + "threat_intel" : { + "indicators_matched" : [ "IP" ], + "results" : [ { + "indicator" : "185.64.148.0", + "additional_data" : { + "tunnels" : [ { + "anonymous" : false, + "type" : "PROXY", + "operator" : "XYZ_PROXY" + } ], + "as" : { + "number" : 55256, + "organization" : "XYZ Inc" + }, + "risks" : [ "CALLBACK_PROXY" ], + "infrastructure" : "DATACENTER", + "organization" : "XYZ Inc.", + "client" : { + "types" : [ "MOBILE", "DESKTOP" ], + "count" : 4, + "concentration" : { + "country" : "IN", + "density" : 1, + "city" : "Gurgaon", + "geohash" : "ttnccg", + "state" : "Haryana", + "skew" : 28 + }, + "proxies" : [ "LUMINATI_PROXY" ], + "countries" : 1 + }, + "location" : { + "country" : "IN", + "city" : "Delhi", + "state" : "National Capital Territory of Delhi" + } + }, + "source" : { + "name" : "spur", + "url" : "https://spur.us" + }, + "type" : "IP", + "category" : "corp_vpn", + "intention" : "benign" + } ] + }, + "id" : "notif_3a7c4d12-56e7-4b8d-9f4c-d8e6f1234567", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending", + "network" : { + "ip" : { + "attributes" : [ { + "ip" : "185.64.148.0", + "source" : [ "@data.item.performed_by.ip" ] + } ], + "list" : [ "185.64.148.0" ] + } + } + } + service: "activity" + tags: + - "source:LOGS_SOURCE" + timestamp: 1726135744000 + - sample: >- + { + "data" : { + "item" : { + "contact" : { + "role" : "lead", + "notes" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/notes" + }, + "created_at" : "2024-09-12T09:59:31.936+00:00", + "external_id" : "7a8e4d1b-9c23-4f8d-91b2-e3c4d5678f90", + "type" : "contact", + "workspace_id" : "abcdefgh", + "companies" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/companies" + }, + "unsubscribed_from_emails" : false, + "updated_at" : "2024-09-12T09:59:51.852+00:00", + "last_replied_at" : "2024-09-12T09:59:44.000+00:00", + "browser" : "chrome", + "id" : "a3f9de4278b2c016e5d4f309", + "browser_version" : "128.0.0.0", + "browser_language" : "en", + "email" : "", + "opted_out_subscription_types" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/subscriptions" + }, + "has_hard_bounced" : false, + "os" : "Windows 10", + "unsubscribed_from_sms" : false, + "last_contacted_at" : "2024-09-12T09:59:50.000+00:00", + "avatar" : "https://static.intercomassets.com/app/pseudonym_avatars_2019/yellow-windmill.png", + "tags" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/tags" + }, + "sms_consent" : false, + "social_profiles" : { + "type" : "list" + }, + "marked_email_as_spam" : false, + "location" : { + "country" : "India", + "country_code" : "IND", + "city" : "Delhi", + "continent_code" : "AS", + "type" : "location", + "region" : "National Capital Territory of Delhi" + }, + "last_seen_at" : "2024-09-12T09:59:43.853+00:00", + "opted_in_subscription_types" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/subscriptions" + } + }, + "created_at" : "2024-09-12T10:11:27.000Z", + "type" : "content_stat.news_item", + "content_stat" : { + "content_title" : "Demo", + "stat_type" : "reaction", + "content_type" : "news_item", + "content_id" : 12345, + "ruleset_id" : 12345678, + "ruleset_version_id" : -1, + "receipt_id" : 70, + "id" : 123456789, + "tags" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + } + } + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726135905, + "topic" : "content_stat.news_item", + "created_at" : 1726135905, + "id" : "notif_8d2a1e3f-4b67-4c89-a0cd-ff65e2b9a7c4", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "news_item" + result: + custom: + app_id: "abcdefgh" + created_at: 1726135905 + data: + item: + contact: + avatar: "https://static.intercomassets.com/app/pseudonym_avatars_2019/yellow-windmill.png" + browser: "chrome" + browser_language: "en" + browser_version: "128.0.0.0" + companies: + has_more: false + total_count: 0 + type: "list" + url: "/contacts/a3f9de4278b2c016e5d4f309/companies" + created_at: "2024-09-12T09:59:31.936+00:00" + email: "" + external_id: "7a8e4d1b-9c23-4f8d-91b2-e3c4d5678f90" + has_hard_bounced: false + id: "a3f9de4278b2c016e5d4f309" + last_contacted_at: "2024-09-12T09:59:50.000+00:00" + last_replied_at: "2024-09-12T09:59:44.000+00:00" + last_seen_at: "2024-09-12T09:59:43.853+00:00" + location: + city: "Delhi" + continent_code: "AS" + country: "India" + country_code: "IND" + region: "National Capital Territory of Delhi" + type: "location" + marked_email_as_spam: false + notes: + has_more: false + total_count: 0 + type: "list" + url: "/contacts/a3f9de4278b2c016e5d4f309/notes" + opted_in_subscription_types: + has_more: false + total_count: 0 + type: "list" + url: "/contacts/a3f9de4278b2c016e5d4f309/subscriptions" + opted_out_subscription_types: + has_more: false + total_count: 0 + type: "list" + url: "/contacts/a3f9de4278b2c016e5d4f309/subscriptions" + os: "Windows 10" + role: "lead" + sms_consent: false + social_profiles: + type: "list" + tags: + has_more: false + total_count: 0 + type: "list" + url: "/contacts/a3f9de4278b2c016e5d4f309/tags" + type: "contact" + unsubscribed_from_emails: false + unsubscribed_from_sms: false + updated_at: "2024-09-12T09:59:51.852+00:00" + workspace_id: "abcdefgh" + content_stat: + content_id: 12345 + content_title: "Demo" + content_type: "news_item" + id: 123456789 + receipt_id: 70 + ruleset_id: 12345678 + ruleset_version_id: -1 + stat_type: "reaction" + tags: + has_more: false + total_count: 0 + type: "list" + created_at: "2024-09-12T10:11:27.000Z" + type: "content_stat.news_item" + type: "notification_event_data" + delivered_at: 0 + delivery_attempts: 1 + delivery_status: "pending" + first_sent_at: 1726135905 + id: "notif_8d2a1e3f-4b67-4c89-a0cd-ff65e2b9a7c4" + service: "news_item" + topic: "content_stat.news_item" + type: "notification_event" + usr: + id: "a3f9de4278b2c016e5d4f309" + message: |- + { + "data" : { + "item" : { + "contact" : { + "role" : "lead", + "notes" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/notes" + }, + "created_at" : "2024-09-12T09:59:31.936+00:00", + "external_id" : "7a8e4d1b-9c23-4f8d-91b2-e3c4d5678f90", + "type" : "contact", + "workspace_id" : "abcdefgh", + "companies" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/companies" + }, + "unsubscribed_from_emails" : false, + "updated_at" : "2024-09-12T09:59:51.852+00:00", + "last_replied_at" : "2024-09-12T09:59:44.000+00:00", + "browser" : "chrome", + "id" : "a3f9de4278b2c016e5d4f309", + "browser_version" : "128.0.0.0", + "browser_language" : "en", + "email" : "", + "opted_out_subscription_types" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/subscriptions" + }, + "has_hard_bounced" : false, + "os" : "Windows 10", + "unsubscribed_from_sms" : false, + "last_contacted_at" : "2024-09-12T09:59:50.000+00:00", + "avatar" : "https://static.intercomassets.com/app/pseudonym_avatars_2019/yellow-windmill.png", + "tags" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/tags" + }, + "sms_consent" : false, + "social_profiles" : { + "type" : "list" + }, + "marked_email_as_spam" : false, + "location" : { + "country" : "India", + "country_code" : "IND", + "city" : "Delhi", + "continent_code" : "AS", + "type" : "location", + "region" : "National Capital Territory of Delhi" + }, + "last_seen_at" : "2024-09-12T09:59:43.853+00:00", + "opted_in_subscription_types" : { + "total_count" : 0, + "has_more" : false, + "type" : "list", + "url" : "/contacts/a3f9de4278b2c016e5d4f309/subscriptions" + } + }, + "created_at" : "2024-09-12T10:11:27.000Z", + "type" : "content_stat.news_item", + "content_stat" : { + "content_title" : "Demo", + "stat_type" : "reaction", + "content_type" : "news_item", + "content_id" : 12345, + "ruleset_id" : 12345678, + "ruleset_version_id" : -1, + "receipt_id" : 70, + "id" : 123456789, + "tags" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + } + } + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726135905, + "topic" : "content_stat.news_item", + "created_at" : 1726135905, + "id" : "notif_8d2a1e3f-4b67-4c89-a0cd-ff65e2b9a7c4", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "news_item" + tags: + - "source:LOGS_SOURCE" + timestamp: 1726135191852 + - sample: |- + { + "data" : { + "item" : { + "metadata" : { + "description" : "Plan purchased successfully" + }, + "user_id" : "123123", + "event_name" : "updated-plan", + "created_at" : 1726136086, + "intercom_user_id" : "4b2d8f15a1c7e92d30f4b6c1", + "id" : "b7f9c2d3-81af-21bf-c5d6-7e8f9a1b2c3d", + "type" : "event", + "email" : "demo@abc.in" + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726136103, + "topic" : "event.created", + "created_at" : 1726136103, + "id" : "notif_7a2e8f3d-bc9c-4a7e-9bcd-6f1d2e8b3a4f", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "data_event" + result: + custom: + app_id: "abcdefgh" + created_at: 1726136103 + created_at_ms: 1.726136086E12 + data: + item: + created_at: 1726136086 + email: "demo@abc.in" + event_name: "updated-plan" + id: "b7f9c2d3-81af-21bf-c5d6-7e8f9a1b2c3d" + intercom_user_id: "4b2d8f15a1c7e92d30f4b6c1" + metadata: + description: "Plan purchased successfully" + type: "event" + user_id: "123123" + type: "notification_event_data" + delivered_at: 0 + delivery_attempts: 1 + delivery_status: "pending" + first_sent_at: 1726136103 + id: "notif_7a2e8f3d-bc9c-4a7e-9bcd-6f1d2e8b3a4f" + service: "data_event" + topic: "event.created" + type: "notification_event" + usr: + email: "demo@abc.in" + id: "4b2d8f15a1c7e92d30f4b6c1" + message: |- + { + "data" : { + "item" : { + "metadata" : { + "description" : "Plan purchased successfully" + }, + "user_id" : "123123", + "event_name" : "updated-plan", + "created_at" : 1726136086, + "intercom_user_id" : "4b2d8f15a1c7e92d30f4b6c1", + "id" : "b7f9c2d3-81af-21bf-c5d6-7e8f9a1b2c3d", + "type" : "event", + "email" : "demo@abc.in" + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726136103, + "topic" : "event.created", + "created_at" : 1726136103, + "id" : "notif_7a2e8f3d-bc9c-4a7e-9bcd-6f1d2e8b3a4f", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "data_event" + tags: + - "source:LOGS_SOURCE" + timestamp: 1726136086000 + - sample: >- + { + "data" : { + "item" : { + "ticket_state" : "submitted", + "ticket_type" : { + "workspace_id" : "abcdefgh", + "archived" : false, + "is_internal" : false, + "updated_at" : 1724911006, + "ticket_type_attributes" : { + "data" : [ { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "_default_title_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 0 + }, { + "input_options" : { + "multiline" : true + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "_default_description_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 1 + }, { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : false, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "Platforms", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 2 + }, { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : false, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "Root cause", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 3 + } ], + "type" : "list" + }, + "name" : "Support Request", + "icon" : "🎟", + "description" : "When a customer query can't be instantly resolved, convert to support request ticket to ensure the right details are captured and allow customers to keep track of progress.", + "created_at" : 1724911006, + "id" : "1", + "type" : "ticket_type", + "category" : "Customer" + }, + "ticket_parts" : { + "ticket_parts" : [ { + "updated_at" : 1725600373, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "1234567", + "type" : "bot", + "email" : "operator+abcdefgh@intercom.io" + }, + "created_at" : 1725600373, + "part_type" : "language_detection_details", + "id" : "324", + "type" : "ticket_part" + }, { + "updated_at" : 1725600378, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "1234567", + "type" : "bot", + "email" : "operator+abcdefgh@intercom.io" + }, + "created_at" : 1725600378, + "part_type" : "comment", + "id" : "325", + "type" : "ticket_part", + "body" : "Hi there! How can I assist you today?
" + }, { + "updated_at" : 1725600405, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "1234567", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1725600405, + "part_type" : "assignment", + "id" : "326", + "type" : "ticket_part", + "body" : "Two
", + "assigned_to" : { + "id" : "1234567", + "type" : "admin" + } + }, { + "ticket_state" : "submitted", + "previous_ticket_state" : "submitted", + "updated_at" : 1726136230, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "1234567", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726136230, + "part_type" : "ticket_state_updated_by_admin", + "id" : "561", + "type" : "ticket_part" + } ], + "total_count" : 4, + "type" : "ticket_part.list" + }, + "created_at" : 1725600372, + "type" : "ticket", + "ticket_id" : "14", + "ticket_state_external_label" : "Submitted", + "admin_assignee_id" : "1234567", + "team_assignee_id" : "0", + "updated_at" : 1726136230, + "is_shared" : true, + "ticket_state_internal_label" : "Submitted", + "id" : "20", + "ticket_attributes" : { + "_default_description_" : "Support request for assistance with customer interaction. Limited information provided, further details needed to proceed with ticket resolution.", + "_default_title_" : "Assistance Request for Customer Interaction" + }, + "linked_objects" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + }, + "category" : "Customer", + "contacts" : { + "type" : "contact.list", + "contacts" : [ { + "external_id" : "f7a1b9c2-8d34-4e5f-91a6-3d9e7b8c6f2d", + "id" : "4b3c7a9d8e1f4b3d6a7c9e0f", + "type" : "contact" + } ] + }, + "open" : true + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726136231, + "topic" : "ticket.created", + "created_at" : 1726136231, + "id" : "notif_7b4d1c3e-2f8a-49c7-bd5e-6e9f2a8c1b3d", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "ticket" + result: + custom: + app_id: "abcdefgh" + created_at: 1726136231 + data: + item: + admin_assignee_id: "1234567" + category: "Customer" + contacts: + contacts: + - + external_id: "f7a1b9c2-8d34-4e5f-91a6-3d9e7b8c6f2d" + id: "4b3c7a9d8e1f4b3d6a7c9e0f" + type: "contact" + type: "contact.list" + created_at: 1725600372 + id: "20" + is_shared: true + linked_objects: + has_more: false + total_count: 0 + type: "list" + open: true + team_assignee_id: "0" + ticket_attributes: + _default_description_: "Support request for assistance with customer interaction. Limited information provided, further details needed to proceed with ticket resolution." + _default_title_: "Assistance Request for Customer Interaction" + ticket_id: "14" + ticket_parts: + ticket_parts: + - + updated_at: 1725600373 + redacted: false + author: + name: "Fin" + id: "1234567" + type: "bot" + email: "operator+abcdefgh@intercom.io" + created_at: 1725600373 + part_type: "language_detection_details" + id: "324" + type: "ticket_part" + - + updated_at: 1725600378 + redacted: false + author: + name: "Fin" + id: "1234567" + type: "bot" + email: "operator+abcdefgh@intercom.io" + created_at: 1725600378 + part_type: "comment" + id: "325" + type: "ticket_part" + body: "Hi there! How can I assist you today?
" + - + updated_at: 1725600405 + redacted: false + author: + name: "ABC" + id: "1234567" + type: "admin" + email: "abc@xyz.com" + created_at: 1725600405 + part_type: "assignment" + id: "326" + type: "ticket_part" + body: "Two
" + assigned_to: + id: "1234567" + type: "admin" + - + ticket_state: "submitted" + previous_ticket_state: "submitted" + updated_at: 1726136230 + redacted: false + author: + name: "ABC" + id: "1234567" + type: "admin" + email: "abc@xyz.com" + created_at: 1726136230 + part_type: "ticket_state_updated_by_admin" + id: "561" + type: "ticket_part" + total_count: 4 + type: "ticket_part.list" + ticket_state: "submitted" + ticket_state_external_label: "Submitted" + ticket_state_internal_label: "Submitted" + ticket_type: + archived: false + category: "Customer" + created_at: 1724911006 + description: "When a customer query can't be instantly resolved, convert to support request ticket to ensure the right details are captured and allow customers to keep track of progress." + icon: "🎟" + id: "1" + is_internal: false + name: "Support Request" + ticket_type_attributes: + data: + - + input_options: + multiline: false + description: "" + created_at: 1724911006 + type: "ticket_type_attribute" + visible_on_create: true + workspace_id: "abcdefgh" + visible_to_contacts: true + archived: false + default: true + ticket_type_id: 1 + updated_at: 1724911006 + name: "_default_title_" + data_type: "string" + required_to_create_for_contacts: false + id: "1234567" + required_to_create: false + order: 0 + - + input_options: + multiline: true + description: "" + created_at: 1724911006 + type: "ticket_type_attribute" + visible_on_create: true + workspace_id: "abcdefgh" + visible_to_contacts: true + archived: false + default: true + ticket_type_id: 1 + updated_at: 1724911006 + name: "_default_description_" + data_type: "string" + required_to_create_for_contacts: false + id: "1234567" + required_to_create: false + order: 1 + - + input_options: + multiline: false + description: "" + created_at: 1724911006 + type: "ticket_type_attribute" + visible_on_create: true + workspace_id: "abcdefgh" + visible_to_contacts: true + archived: false + default: false + ticket_type_id: 1 + updated_at: 1724911006 + name: "Platforms" + data_type: "string" + required_to_create_for_contacts: false + id: "1234567" + required_to_create: false + order: 2 + - + input_options: + multiline: false + description: "" + created_at: 1724911006 + type: "ticket_type_attribute" + visible_on_create: true + workspace_id: "abcdefgh" + visible_to_contacts: true + archived: false + default: false + ticket_type_id: 1 + updated_at: 1724911006 + name: "Root cause" + data_type: "string" + required_to_create_for_contacts: false + id: "1234567" + required_to_create: false + order: 3 + type: "list" + type: "ticket_type" + updated_at: 1724911006 + workspace_id: "abcdefgh" + type: "ticket" + updated_at: 1726136230 + type: "notification_event_data" + delivered_at: 0 + delivery_attempts: 1 + delivery_status: "pending" + first_sent_at: 1726136231 + id: "notif_7b4d1c3e-2f8a-49c7-bd5e-6e9f2a8c1b3d" + service: "ticket" + topic: "ticket.created" + type: "notification_event" + updated_at_ms: 1.72613623E12 + usr: + id: "1234567" + message: |- + { + "data" : { + "item" : { + "ticket_state" : "submitted", + "ticket_type" : { + "workspace_id" : "abcdefgh", + "archived" : false, + "is_internal" : false, + "updated_at" : 1724911006, + "ticket_type_attributes" : { + "data" : [ { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "_default_title_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 0 + }, { + "input_options" : { + "multiline" : true + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "_default_description_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 1 + }, { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : false, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "Platforms", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 2 + }, { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1724911006, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "abcdefgh", + "visible_to_contacts" : true, + "archived" : false, + "default" : false, + "ticket_type_id" : 1, + "updated_at" : 1724911006, + "name" : "Root cause", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "1234567", + "required_to_create" : false, + "order" : 3 + } ], + "type" : "list" + }, + "name" : "Support Request", + "icon" : "🎟", + "description" : "When a customer query can't be instantly resolved, convert to support request ticket to ensure the right details are captured and allow customers to keep track of progress.", + "created_at" : 1724911006, + "id" : "1", + "type" : "ticket_type", + "category" : "Customer" + }, + "ticket_parts" : { + "ticket_parts" : [ { + "updated_at" : 1725600373, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "1234567", + "type" : "bot", + "email" : "operator+abcdefgh@intercom.io" + }, + "created_at" : 1725600373, + "part_type" : "language_detection_details", + "id" : "324", + "type" : "ticket_part" + }, { + "updated_at" : 1725600378, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "1234567", + "type" : "bot", + "email" : "operator+abcdefgh@intercom.io" + }, + "created_at" : 1725600378, + "part_type" : "comment", + "id" : "325", + "type" : "ticket_part", + "body" : "Hi there! How can I assist you today?
" + }, { + "updated_at" : 1725600405, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "1234567", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1725600405, + "part_type" : "assignment", + "id" : "326", + "type" : "ticket_part", + "body" : "Two
", + "assigned_to" : { + "id" : "1234567", + "type" : "admin" + } + }, { + "ticket_state" : "submitted", + "previous_ticket_state" : "submitted", + "updated_at" : 1726136230, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "1234567", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726136230, + "part_type" : "ticket_state_updated_by_admin", + "id" : "561", + "type" : "ticket_part" + } ], + "total_count" : 4, + "type" : "ticket_part.list" + }, + "created_at" : 1725600372, + "type" : "ticket", + "ticket_id" : "14", + "ticket_state_external_label" : "Submitted", + "admin_assignee_id" : "1234567", + "team_assignee_id" : "0", + "updated_at" : 1726136230, + "is_shared" : true, + "ticket_state_internal_label" : "Submitted", + "id" : "20", + "ticket_attributes" : { + "_default_description_" : "Support request for assistance with customer interaction. Limited information provided, further details needed to proceed with ticket resolution.", + "_default_title_" : "Assistance Request for Customer Interaction" + }, + "linked_objects" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + }, + "category" : "Customer", + "contacts" : { + "type" : "contact.list", + "contacts" : [ { + "external_id" : "f7a1b9c2-8d34-4e5f-91a6-3d9e7b8c6f2d", + "id" : "4b3c7a9d8e1f4b3d6a7c9e0f", + "type" : "contact" + } ] + }, + "open" : true + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "first_sent_at" : 1726136231, + "topic" : "ticket.created", + "created_at" : 1726136231, + "id" : "notif_7b4d1c3e-2f8a-49c7-bd5e-6e9f2a8c1b3d", + "type" : "notification_event", + "app_id" : "abcdefgh", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "ticket" + tags: + - "source:LOGS_SOURCE" + timestamp: 1726136230000 + - sample: |- + { + "data" : { + "item" : { + "ticket" : { + "ticket_state" : "submitted", + "ticket_type" : { + "workspace_id" : "fq6rl0h", + "archived" : false, + "is_internal" : false, + "updated_at" : 1726469971, + "ticket_type_attributes" : { + "data" : [ { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1726469971, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "fq6rl0h", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 5, + "updated_at" : 1726469971, + "name" : "_default_title_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "5181691", + "required_to_create" : false, + "order" : 0 + }, { + "input_options" : { + "multiline" : true + }, + "description" : "", + "created_at" : 1726469971, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "fq6rl0h", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 5, + "updated_at" : 1726469971, + "name" : "_default_description_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "5181692", + "required_to_create" : false, + "order" : 1 + } ], + "type" : "list" + }, + "name" : "Demo ticket type", + "icon" : "📈", + "description" : "", + "created_at" : 1726469971, + "id" : "5", + "type" : "ticket_type", + "category" : "Customer" + }, + "ticket_parts" : { + "ticket_parts" : [ { + "updated_at" : 1726488973, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "774209", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488973, + "part_type" : "language_detection_details", + "id" : "142", + "type" : "ticket_part" + }, { + "updated_at" : 1726488976, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "7742909", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488976, + "part_type" : "channel_and_reply_time_expectation", + "id" : "143", + "type" : "ticket_part", + "body" : "Crest will be back tomorrow.
" + }, { + "updated_at" : 1726488977, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "774209", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488977, + "part_type" : "comment", + "id" : "144", + "type" : "ticket_part", + "body" : "Give the team a way to reach you:
" + }, { + "updated_at" : 1726488977, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "7742909", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488977, + "part_type" : "attribute_collector", + "id" : "145", + "type" : "ticket_part" + }, { + "ticket_state" : "submitted", + "previous_ticket_state" : "submitted", + "updated_at" : 1726488984, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "772908", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726488984, + "part_type" : "ticket_state_updated_by_admin", + "id" : "146", + "type" : "ticket_part" + }, { + "updated_at" : 1726488990, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "774208", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726488990, + "part_type" : "assignment", + "id" : "147", + "type" : "ticket_part", + "assigned_to" : { + "id" : "774208", + "type" : "admin" + } + } ], + "total_count" : 6, + "type" : "ticket_part.list" + }, + "created_at" : 1726488972, + "type" : "ticket", + "ticket_id" : "20", + "ticket_state_external_label" : "Submitted", + "admin_assignee_id" : "774208", + "team_assignee_id" : "0", + "updated_at" : 1726488990, + "is_shared" : true, + "ticket_state_internal_label" : "Submitted", + "id" : "21", + "linked_objects" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + }, + "category" : "Customer", + "contacts" : { + "type" : "contact.list", + "contacts" : [ { + "external_id" : "b601551-5c33-4ab3-ab1a-3ab383596b13", + "id" : "66e82187d198b34128a84ac", + "type" : "contact" + } ] + }, + "open" : true + }, + "type" : "ticket_ticket_part", + "ticket_part" : { + "updated_at" : 1726488990, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "774208", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726488990, + "part_type" : "assignment", + "id" : "147", + "type" : "ticket_part", + "assigned_to" : { + "id" : "772908", + "type" : "admin" + } + } + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "service" : "ticket", + "first_sent_at" : 1726488992, + "topic" : "ticket.admin.assigned", + "created_at" : 1726488992, + "id" : "notif_6d5cdb7-2613-4dfc-8afb-646d0d79ab72", + "updated_at_ms" : 1726488990000, + "type" : "notification_event", + "app_id" : "fq6rl0h", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "ticket" + result: + custom: + app_id: "fq6rl0h" + created_at: 1726488992 + data: + item: + ticket: + admin_assignee_id: "774208" + category: "Customer" + contacts: + contacts: + - + external_id: "b601551-5c33-4ab3-ab1a-3ab383596b13" + id: "66e82187d198b34128a84ac" + type: "contact" + type: "contact.list" + created_at: 1726488972 + id: "21" + is_shared: true + linked_objects: + has_more: false + total_count: 0 + type: "list" + open: true + team_assignee_id: "0" + ticket_id: "20" + ticket_parts: + ticket_parts: + - + updated_at: 1726488973 + redacted: false + author: + name: "Fin" + id: "774209" + type: "bot" + email: "operator+fq6rl0h@intercom.io" + created_at: 1726488973 + part_type: "language_detection_details" + id: "142" + type: "ticket_part" + - + updated_at: 1726488976 + redacted: false + author: + name: "Fin" + id: "7742909" + type: "bot" + email: "operator+fq6rl0h@intercom.io" + created_at: 1726488976 + part_type: "channel_and_reply_time_expectation" + id: "143" + type: "ticket_part" + body: "Crest will be back tomorrow.
" + - + updated_at: 1726488977 + redacted: false + author: + name: "Fin" + id: "774209" + type: "bot" + email: "operator+fq6rl0h@intercom.io" + created_at: 1726488977 + part_type: "comment" + id: "144" + type: "ticket_part" + body: "Give the team a way to reach you:
" + - + updated_at: 1726488977 + redacted: false + author: + name: "Fin" + id: "7742909" + type: "bot" + email: "operator+fq6rl0h@intercom.io" + created_at: 1726488977 + part_type: "attribute_collector" + id: "145" + type: "ticket_part" + - + ticket_state: "submitted" + previous_ticket_state: "submitted" + updated_at: 1726488984 + redacted: false + author: + name: "ABC" + id: "772908" + type: "admin" + email: "abc@xyz.com" + created_at: 1726488984 + part_type: "ticket_state_updated_by_admin" + id: "146" + type: "ticket_part" + - + updated_at: 1726488990 + redacted: false + author: + name: "ABC" + id: "774208" + type: "admin" + email: "abc@xyz.com" + created_at: 1726488990 + part_type: "assignment" + id: "147" + type: "ticket_part" + assigned_to: + id: "774208" + type: "admin" + total_count: 6 + type: "ticket_part.list" + ticket_state: "submitted" + ticket_state_external_label: "Submitted" + ticket_state_internal_label: "Submitted" + ticket_type: + archived: false + category: "Customer" + created_at: 1726469971 + description: "" + icon: "📈" + id: "5" + is_internal: false + name: "Demo ticket type" + ticket_type_attributes: + data: + - + input_options: + multiline: false + description: "" + created_at: 1726469971 + type: "ticket_type_attribute" + visible_on_create: true + workspace_id: "fq6rl0h" + visible_to_contacts: true + archived: false + default: true + ticket_type_id: 5 + updated_at: 1726469971 + name: "_default_title_" + data_type: "string" + required_to_create_for_contacts: false + id: "5181691" + required_to_create: false + order: 0 + - + input_options: + multiline: true + description: "" + created_at: 1726469971 + type: "ticket_type_attribute" + visible_on_create: true + workspace_id: "fq6rl0h" + visible_to_contacts: true + archived: false + default: true + ticket_type_id: 5 + updated_at: 1726469971 + name: "_default_description_" + data_type: "string" + required_to_create_for_contacts: false + id: "5181692" + required_to_create: false + order: 1 + type: "list" + type: "ticket_type" + updated_at: 1726469971 + workspace_id: "fq6rl0h" + type: "ticket" + updated_at: 1726488990 + ticket_part: + assigned_to: + id: "772908" + type: "admin" + author: + email: "abc@xyz.com" + id: "774208" + name: "ABC" + type: "admin" + created_at: 1726488990 + id: "147" + part_type: "assignment" + redacted: false + type: "ticket_part" + updated_at: 1726488990 + type: "ticket_ticket_part" + type: "notification_event_data" + delivered_at: 0 + delivery_attempts: 1 + delivery_status: "pending" + first_sent_at: 1726488992 + id: "notif_6d5cdb7-2613-4dfc-8afb-646d0d79ab72" + service: "ticket" + topic: "ticket.admin.assigned" + type: "notification_event" + updated_at_ms: 1.72648899E12 + message: |- + { + "data" : { + "item" : { + "ticket" : { + "ticket_state" : "submitted", + "ticket_type" : { + "workspace_id" : "fq6rl0h", + "archived" : false, + "is_internal" : false, + "updated_at" : 1726469971, + "ticket_type_attributes" : { + "data" : [ { + "input_options" : { + "multiline" : false + }, + "description" : "", + "created_at" : 1726469971, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "fq6rl0h", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 5, + "updated_at" : 1726469971, + "name" : "_default_title_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "5181691", + "required_to_create" : false, + "order" : 0 + }, { + "input_options" : { + "multiline" : true + }, + "description" : "", + "created_at" : 1726469971, + "type" : "ticket_type_attribute", + "visible_on_create" : true, + "workspace_id" : "fq6rl0h", + "visible_to_contacts" : true, + "archived" : false, + "default" : true, + "ticket_type_id" : 5, + "updated_at" : 1726469971, + "name" : "_default_description_", + "data_type" : "string", + "required_to_create_for_contacts" : false, + "id" : "5181692", + "required_to_create" : false, + "order" : 1 + } ], + "type" : "list" + }, + "name" : "Demo ticket type", + "icon" : "📈", + "description" : "", + "created_at" : 1726469971, + "id" : "5", + "type" : "ticket_type", + "category" : "Customer" + }, + "ticket_parts" : { + "ticket_parts" : [ { + "updated_at" : 1726488973, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "774209", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488973, + "part_type" : "language_detection_details", + "id" : "142", + "type" : "ticket_part" + }, { + "updated_at" : 1726488976, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "7742909", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488976, + "part_type" : "channel_and_reply_time_expectation", + "id" : "143", + "type" : "ticket_part", + "body" : "Crest will be back tomorrow.
" + }, { + "updated_at" : 1726488977, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "774209", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488977, + "part_type" : "comment", + "id" : "144", + "type" : "ticket_part", + "body" : "Give the team a way to reach you:
" + }, { + "updated_at" : 1726488977, + "redacted" : false, + "author" : { + "name" : "Fin", + "id" : "7742909", + "type" : "bot", + "email" : "operator+fq6rl0h@intercom.io" + }, + "created_at" : 1726488977, + "part_type" : "attribute_collector", + "id" : "145", + "type" : "ticket_part" + }, { + "ticket_state" : "submitted", + "previous_ticket_state" : "submitted", + "updated_at" : 1726488984, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "772908", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726488984, + "part_type" : "ticket_state_updated_by_admin", + "id" : "146", + "type" : "ticket_part" + }, { + "updated_at" : 1726488990, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "774208", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726488990, + "part_type" : "assignment", + "id" : "147", + "type" : "ticket_part", + "assigned_to" : { + "id" : "774208", + "type" : "admin" + } + } ], + "total_count" : 6, + "type" : "ticket_part.list" + }, + "created_at" : 1726488972, + "type" : "ticket", + "ticket_id" : "20", + "ticket_state_external_label" : "Submitted", + "admin_assignee_id" : "774208", + "team_assignee_id" : "0", + "updated_at" : 1726488990, + "is_shared" : true, + "ticket_state_internal_label" : "Submitted", + "id" : "21", + "linked_objects" : { + "total_count" : 0, + "has_more" : false, + "type" : "list" + }, + "category" : "Customer", + "contacts" : { + "type" : "contact.list", + "contacts" : [ { + "external_id" : "b601551-5c33-4ab3-ab1a-3ab383596b13", + "id" : "66e82187d198b34128a84ac", + "type" : "contact" + } ] + }, + "open" : true + }, + "type" : "ticket_ticket_part", + "ticket_part" : { + "updated_at" : 1726488990, + "redacted" : false, + "author" : { + "name" : "ABC", + "id" : "774208", + "type" : "admin", + "email" : "abc@xyz.com" + }, + "created_at" : 1726488990, + "part_type" : "assignment", + "id" : "147", + "type" : "ticket_part", + "assigned_to" : { + "id" : "772908", + "type" : "admin" + } + } + }, + "type" : "notification_event_data" + }, + "delivery_attempts" : 1, + "service" : "ticket", + "first_sent_at" : 1726488992, + "topic" : "ticket.admin.assigned", + "created_at" : 1726488992, + "id" : "notif_6d5cdb7-2613-4dfc-8afb-646d0d79ab72", + "updated_at_ms" : 1726488990000, + "type" : "notification_event", + "app_id" : "fq6rl0h", + "delivered_at" : 0, + "delivery_status" : "pending" + } + service: "ticket" + tags: + - "source:LOGS_SOURCE" + timestamp: 1726488990000 \ No newline at end of file diff --git a/intercom/assets/monitors/large_number_of_low_rated_conversations.json b/intercom/assets/monitors/large_number_of_low_rated_conversations.json new file mode 100644 index 0000000000000..3f96def7b83dd --- /dev/null +++ b/intercom/assets/monitors/large_number_of_low_rated_conversations.json @@ -0,0 +1,36 @@ +{ + "version": 2, + "created_at": "2024-09-18", + "last_updated_at": "2024-09-18", + "title": "Large Number of Low Rated Conversations", + "description": "This monitor tracks and alerts when a large number of conversations receive low ratings.", + "definition": { + "id": 153714191, + "name": "Large Number of Low Rated Conversations", + "type": "log alert", + "query": "logs(\"source:intercom service:conversation @data.item.conversation_rating.rating:1\").index(\"*\").rollup(\"cardinality\", \"@data.item.source.id\").last(\"1d\") >= 5", + "message": "{{#is_alert}}\nA significant number of Intercom conversations have received low ratings. The total number of conversations given a one-star rating is {{value}}.\nPlease take the necessary steps to manage your Intercom account accordingly.\n{{/is_alert}}", + "tags": [ + "source:intercom", + "service:conversation" + ], + "options": { + "thresholds": { + "critical": 5 + }, + "enable_logs_sample": false, + "notify_audit": false, + "on_missing_data": "default", + "include_tags": true, + "groupby_simple_monitor": false, + "silenced": {} + }, + "priority": null, + "restriction_policy": { + "bindings": [] + } + }, + "tags": [ + "integration:intercom" + ] +} \ No newline at end of file diff --git a/intercom/assets/service_checks.json b/intercom/assets/service_checks.json new file mode 100644 index 0000000000000..fe51488c7066f --- /dev/null +++ b/intercom/assets/service_checks.json @@ -0,0 +1 @@ +[] diff --git a/intercom/images/intercom_activity.png b/intercom/images/intercom_activity.png new file mode 100644 index 0000000000000..ced43dd8d50be Binary files /dev/null and b/intercom/images/intercom_activity.png differ diff --git a/intercom/images/intercom_conversation_1.png b/intercom/images/intercom_conversation_1.png new file mode 100644 index 0000000000000..79165bbfa886e Binary files /dev/null and b/intercom/images/intercom_conversation_1.png differ diff --git a/intercom/images/intercom_conversation_2.png b/intercom/images/intercom_conversation_2.png new file mode 100644 index 0000000000000..4eedc2c4555a0 Binary files /dev/null and b/intercom/images/intercom_conversation_2.png differ diff --git a/intercom/images/intercom_data_event.png b/intercom/images/intercom_data_event.png new file mode 100644 index 0000000000000..38bfae4683ad9 Binary files /dev/null and b/intercom/images/intercom_data_event.png differ diff --git a/intercom/images/intercom_news_item.png b/intercom/images/intercom_news_item.png new file mode 100644 index 0000000000000..876f902271789 Binary files /dev/null and b/intercom/images/intercom_news_item.png differ diff --git a/intercom/images/intercom_ticket.png b/intercom/images/intercom_ticket.png new file mode 100644 index 0000000000000..2d9945393f47c Binary files /dev/null and b/intercom/images/intercom_ticket.png differ diff --git a/intercom/manifest.json b/intercom/manifest.json new file mode 100644 index 0000000000000..1cc5d7e40f439 --- /dev/null +++ b/intercom/manifest.json @@ -0,0 +1,84 @@ +{ + "manifest_version": "2.0.0", + "app_uuid": "cacc2ad1-f88b-4306-af8e-90c76e0478a0", + "app_id": "intercom", + "display_on_public_website": false, + "tile": { + "overview": "README.md#Overview", + "configuration": "README.md#Setup", + "support": "README.md#Support", + "changelog": "CHANGELOG.md", + "description": "Gain insights into Intercom Admin activities, Data Events, Conversations, News Items, and Ticket data.", + "title": "Intercom", + "media": [ + { + "media_type": "image", + "caption": "Intercom Activity", + "image_url": "images/intercom_activity.png" + }, + { + "media_type": "image", + "caption": "Intercom Data Event", + "image_url": "images/intercom_data_event.png" + }, + { + "media_type": "image", + "caption": "Intercom Conversation", + "image_url": "images/intercom_conversation_1.png" + }, + { + "media_type": "image", + "caption": "Intercom Conversation", + "image_url": "images/intercom_conversation_2.png" + }, + { + "media_type": "image", + "caption": "Intercom News Item", + "image_url": "images/intercom_news_item.png" + }, + { + "media_type": "image", + "caption": "Intercom Ticket", + "image_url": "images/intercom_ticket.png" + } + ], + "classifier_tags": [ + "Category::Log Collection", + "Category::Collaboration", + "Submitted Data Type::Logs", + "Offering::Integration" + ] + }, + "assets": { + "integration": { + "auto_install": false, + "source_type_id": 26100804, + "source_type_name": "Intercom", + "events": { + "creates_events": false + }, + "service_checks": { + "metadata_path": "assets/service_checks.json" + } + }, + "dashboards": { + "Intercom Conversation": "assets/dashboards/intercom_conversation.json", + "Intercom News Item": "assets/dashboards/intercom_news_item.json", + "Intercom Activity": "assets/dashboards/intercom_activity.json", + "Intercom Data Event": "assets/dashboards/intercom_data_event.json", + "Intercom Ticket": "assets/dashboards/intercom_ticket.json" + }, + "monitors": { + "Large Number of Low Rated Conversations": "assets/monitors/large_number_of_low_rated_conversations.json" + }, + "logs": { + "source": "intercom" + } + }, + "author": { + "support_email": "help@datadoghq.com", + "name": "Datadog", + "homepage": "https://www.datadoghq.com", + "sales_email": "info@datadoghq.com" + } +}