"
+ }
+ },
+ "request": {
+ "json_curl": {},
+ "json": {},
+ "html": ""
+ }
+ }
+}
\ No newline at end of file
diff --git a/data/api/v2/full_spec.yaml b/data/api/v2/full_spec.yaml
index e718c686a0e..d9e2432243c 100644
--- a/data/api/v2/full_spec.yaml
+++ b/data/api/v2/full_spec.yaml
@@ -40863,6 +40863,306 @@ components:
- id
- type
type: object
+ GovernanceInsightAttributes:
+ description: The attributes of a governance insight.
+ properties:
+ audit_query:
+ $ref: "#/components/schemas/GovernanceInsightAuditQuery"
+ nullable: true
+ best_practice:
+ description: The identifier of the best practice this insight is associated with, if any.
+ example: ""
+ type: string
+ deep_link:
+ description: A relative link to the product surface where the insight can be acted upon.
+ example: ""
+ type: string
+ description:
+ description: A human-readable description of what the insight measures.
+ example: "Number of users who have used the Dashboard in the last 30 days"
+ type: string
+ display_name:
+ description: Human-readable name of the insight.
+ example: "Active Dashboards"
+ type: string
+ event_query:
+ $ref: "#/components/schemas/GovernanceInsightEventQuery"
+ nullable: true
+ metric_query:
+ $ref: "#/components/schemas/GovernanceInsightMetricQuery"
+ nullable: true
+ old_value:
+ description: |-
+ The value of the insight over the previous comparison window. `null` when values were
+ not requested or could not be computed.
+ example: 3274
+ format: double
+ nullable: true
+ type: number
+ percentage_query:
+ $ref: "#/components/schemas/GovernanceInsightPercentageQuery"
+ nullable: true
+ product:
+ description: The product the insight belongs to.
+ example: "Usage"
+ type: string
+ query_config:
+ $ref: "#/components/schemas/GovernanceInsightQueryConfig"
+ nullable: true
+ sort_order:
+ description: The relative order in which the insight should be displayed.
+ example: 1
+ format: int64
+ type: integer
+ state:
+ description: |-
+ The state of the insight. A `critical` insight receives extra UI treatment to draw
+ attention to it.
+ example: "critical"
+ type: string
+ sub_product:
+ description: The sub-product the insight belongs to, if any.
+ example: "Indexes"
+ type: string
+ time_range:
+ description: The time range the insight value is computed over, if applicable.
+ example: "month"
+ type: string
+ unit_name:
+ description: The unit that the insight's value is measured in.
+ example: "active dashboards"
+ type: string
+ usage_query:
+ $ref: "#/components/schemas/GovernanceInsightUsageQuery"
+ nullable: true
+ value:
+ description: The current value of the insight. `null` when values were not requested or could not be computed.
+ example: 3601
+ format: double
+ nullable: true
+ type: number
+ required:
+ - display_name
+ - product
+ - best_practice
+ - sub_product
+ - unit_name
+ - description
+ - time_range
+ - state
+ - deep_link
+ - value
+ - old_value
+ - metric_query
+ - event_query
+ - usage_query
+ - audit_query
+ - percentage_query
+ type: object
+ GovernanceInsightAuditCompute:
+ description: The aggregation applied to an audit log query.
+ properties:
+ aggregation:
+ description: The aggregation function to apply.
+ example: "cardinality"
+ type: string
+ interval:
+ description: The aggregation time window, in milliseconds.
+ example: 86400000
+ format: int64
+ type: integer
+ metric:
+ description: The metric or attribute to aggregate.
+ example: "@usr.id"
+ type: string
+ rollup:
+ description: An optional secondary aggregation applied to the audit query result.
+ example: ""
+ type: string
+ required:
+ - aggregation
+ - metric
+ - interval
+ type: object
+ GovernanceInsightAuditQuery:
+ description: An audit log query used to compute an insight value.
+ properties:
+ compute:
+ $ref: "#/components/schemas/GovernanceInsightAuditCompute"
+ indexes:
+ description: The audit log indexes the query runs against.
+ example:
+ - "main"
+ items:
+ description: An audit log index name.
+ type: string
+ type: array
+ query:
+ description: The audit log search query string.
+ example: "@evt.name:Dashboard"
+ type: string
+ source:
+ description: The data source the query runs against.
+ example: "audit"
+ type: string
+ required:
+ - source
+ - query
+ - indexes
+ - compute
+ type: object
+ GovernanceInsightData:
+ description: A governance insight resource.
+ properties:
+ attributes:
+ $ref: "#/components/schemas/GovernanceInsightAttributes"
+ id:
+ description: The unique identifier of the insight.
+ example: "498ee21f-8037-48b8-a961-a488692902f4"
+ type: string
+ type:
+ $ref: "#/components/schemas/GovernanceInsightResourceType"
+ required:
+ - id
+ - type
+ - attributes
+ type: object
+ GovernanceInsightEventCompute:
+ description: The aggregation applied to an event query.
+ properties:
+ aggregation:
+ description: The aggregation function to apply.
+ example: "count"
+ type: string
+ interval:
+ description: The aggregation time window, in milliseconds.
+ example: 86400000
+ format: int64
+ type: integer
+ required:
+ - aggregation
+ - interval
+ type: object
+ GovernanceInsightEventQuery:
+ description: An event query used to compute an insight value.
+ properties:
+ compute:
+ $ref: "#/components/schemas/GovernanceInsightEventCompute"
+ nullable: true
+ indexes:
+ description: The event indexes the query runs against.
+ example:
+ - "main"
+ items:
+ description: An event index name.
+ type: string
+ type: array
+ query:
+ description: The event search query string.
+ example: "source:cloudtrail"
+ type: string
+ required:
+ - query
+ - indexes
+ type: object
+ GovernanceInsightMetricQuery:
+ description: A metric query used to compute an insight value.
+ properties:
+ query:
+ description: The query string.
+ example: "avg:system.cpu.user{*}"
+ type: string
+ reducer:
+ description: How the query result series is reduced to a single value.
+ example: "avg"
+ type: string
+ source:
+ description: The data source the query runs against.
+ example: "metrics"
+ type: string
+ required:
+ - source
+ - query
+ - reducer
+ type: object
+ GovernanceInsightPercentageQuery:
+ description: A percentage query that computes an insight value as a ratio of two metric queries.
+ properties:
+ denominator_query:
+ $ref: "#/components/schemas/GovernanceInsightMetricQuery"
+ numerator_query:
+ $ref: "#/components/schemas/GovernanceInsightMetricQuery"
+ required:
+ - numerator_query
+ - denominator_query
+ type: object
+ GovernanceInsightQueryConfig:
+ description: Query execution context that allows the frontend to execute insight queries directly.
+ properties:
+ chart_type:
+ description: The chart type the frontend should use to render the insight.
+ example: "line"
+ type: string
+ comparison_shift:
+ description: The window used for the previous value comparison, for example `week` or `month`.
+ example: "month"
+ type: string
+ default_value:
+ description: The default value to display when no data is available.
+ example: 0
+ format: int64
+ type: integer
+ directionality:
+ description: |-
+ Whether an increase in the value is good, bad, or neutral. One of `neutral`,
+ `increase_better`, or `decrease_better`.
+ example: "neutral"
+ type: string
+ effective_time_window_days:
+ description: The number of days the insight value is computed over.
+ example: 30
+ format: int64
+ type: integer
+ required:
+ - effective_time_window_days
+ - comparison_shift
+ type: object
+ GovernanceInsightResourceType:
+ description: JSON:API resource type for a governance insight.
+ enum:
+ - insight
+ example: "insight"
+ type: string
+ x-enum-varnames:
+ - INSIGHT
+ GovernanceInsightUsageQuery:
+ description: A usage query used to compute an insight value.
+ properties:
+ query:
+ description: The usage query string.
+ example: "logs_indexed_events"
+ type: string
+ reducer:
+ description: How the query result series is reduced to a single value.
+ example: "sum"
+ type: string
+ required:
+ - query
+ - reducer
+ type: object
+ GovernanceInsightsDataArray:
+ description: An array of governance insight resources.
+ items:
+ $ref: "#/components/schemas/GovernanceInsightData"
+ type: array
+ GovernanceInsightsResponse:
+ description: A list of governance insights.
+ properties:
+ data:
+ $ref: "#/components/schemas/GovernanceInsightsDataArray"
+ required:
+ - data
+ type: object
GreyNoiseAPIKey:
description: The definition of the `GreyNoiseAPIKey` object.
properties:
@@ -132530,6 +132830,122 @@ paths:
operator: OR
permissions:
- user_access_read
+ /api/v2/governance/insights:
+ get:
+ description: |-
+ Retrieve the list of governance insights available to the organization. By default, only
+ insight metadata is returned; pass `withValues=true` to also compute and include each
+ insight's current and previous values. Insights can be filtered by product.
+ operationId: ListGovernanceInsights
+ parameters:
+ - description: |-
+ Whether to compute and include the current and previous value of each insight.
+ Defaults to `false`, in which case only insight metadata is returned.
+ example: true
+ in: query
+ name: withValues
+ required: false
+ schema:
+ type: boolean
+ - description: |-
+ The UUID of the organization to compute insights for. Defaults to the organization of
+ the authenticated user. Used to retrieve insights for a child organization from a
+ parent organization.
+ example: "11111111-2222-3333-4444-555555555555"
+ in: query
+ name: orgUuid
+ required: false
+ schema:
+ type: string
+ - description: |-
+ Restrict the results to insights belonging to the given products. May be repeated to
+ filter by multiple products. Matching is case-insensitive.
+ example:
+ - "Usage"
+ - "Logs Settings"
+ in: query
+ name: filter[product]
+ required: false
+ schema:
+ items:
+ type: string
+ type: array
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ default:
+ value:
+ data:
+ - attributes:
+ audit_query:
+ best_practice: ""
+ deep_link: ""
+ description: ""
+ display_name: "Active Dashboards"
+ event_query:
+ metric_query:
+ old_value: 3274
+ percentage_query:
+ product: "Usage"
+ state: ""
+ sub_product: ""
+ time_range: ""
+ unit_name: "active dashboards"
+ usage_query:
+ value: 3601
+ id: "498ee21f-8037-48b8-a961-a488692902f4"
+ type: "insight"
+ - attributes:
+ audit_query:
+ best_practice: ""
+ deep_link: ""
+ description: "Number of users who have used the Dashboard in the last 30 days"
+ display_name: "Active Users"
+ event_query:
+ metric_query:
+ old_value: 1173
+ percentage_query:
+ product: "Usage"
+ state: ""
+ sub_product: ""
+ time_range: "month"
+ unit_name: "active users"
+ usage_query:
+ value: 1291
+ id: "a3248d1b-5578-4345-a34e-fe9657300f22"
+ type: "insight"
+ schema:
+ $ref: "#/components/schemas/GovernanceInsightsResponse"
+ description: OK
+ "400":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Bad Request
+ "401":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Unauthorized
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/JSONAPIErrorResponse"
+ description: Forbidden
+ "429":
+ $ref: "#/components/responses/TooManyRequestsResponse"
+ summary: List governance insights
+ tags:
+ - Governance Insights
+ x-menu-order: 1
+ x-unstable: |-
+ **Note**: This endpoint is in preview and is subject to change.
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/hamr:
get:
description: |-
@@ -192356,6 +192772,12 @@ tags:
description: For more information about the Datadog Google Chat integration, see the integration page.
url: https://docs.datadoghq.com/integrations/google-hangouts-chat/
name: Google Chat Integration
+ - description: |-
+ Governance Insights surface key usage, configuration, and best-practice signals for an
+ organization within the Governance Console. Each insight reports a current value (and,
+ optionally, a previous value for comparison) along with the query used to compute it, so
+ that the Console can render trends and highlight areas that need attention.
+ name: Governance Insights
- description: |-
Configure High Availability Multi-Region (HAMR) connections between Datadog organizations.
HAMR provides disaster recovery capabilities by maintaining synchronized data between primary
diff --git a/data/api/v2/translate_actions.json b/data/api/v2/translate_actions.json
index d5cc774f12f..4b9811bcdfc 100644
--- a/data/api/v2/translate_actions.json
+++ b/data/api/v2/translate_actions.json
@@ -1932,6 +1932,10 @@
"description": "Returns organizations across regions for the authenticated user. The `user_handle` query parameter must match the authenticated user's handle.",
"summary": "List global orgs"
},
+ "ListGovernanceInsights": {
+ "description": "Retrieve the list of governance insights available to the organization. By default, only\ninsight metadata is returned; pass `withValues=true` to also compute and include each\ninsight's current and previous values. Insights can be filtered by product.",
+ "summary": "List governance insights"
+ },
"GetHamrOrgConnection": {
"description": "Retrieve the High Availability Multi-Region (HAMR) organization connection details for the authenticated organization.\nThis endpoint returns information about the HAMR connection configuration, including the target organization,\ndatacenter, status, and whether this is the primary or secondary organization in the HAMR relationship.",
"summary": "Get HAMR organization connection"
diff --git a/data/api/v2/translate_tags.json b/data/api/v2/translate_tags.json
index b3868a62e1b..1c256dbf033 100644
--- a/data/api/v2/translate_tags.json
+++ b/data/api/v2/translate_tags.json
@@ -223,6 +223,10 @@
"name": "Google Chat Integration",
"description": "Configure your [Datadog Google Chat integration](https://docs.datadoghq.com/integrations/google-hangouts-chat/)\ndirectly through the Datadog API."
},
+ "governance-insights": {
+ "name": "Governance Insights",
+ "description": "Governance Insights surface key usage, configuration, and best-practice signals for an\norganization within the Governance Console. Each insight reports a current value (and,\noptionally, a previous value for comparison) along with the query used to compute it, so\nthat the Console can render trends and highlight areas that need attention."
+ },
"high-availability-multiregion": {
"name": "High Availability MultiRegion",
"description": "Configure High Availability Multi-Region (HAMR) connections between Datadog organizations.\nHAMR provides disaster recovery capabilities by maintaining synchronized data between primary\nand secondary organizations across different datacenters."