@@ -14485,6 +14485,10 @@ components:
14485
14485
description: Entity definition in raw JSON or YAML representation.
14486
14486
example: "apiVersion: v3\nkind: service\nmetadata:\n name: myservice\n"
14487
14487
type: string
14488
+ EntityReference:
14489
+ description: The unique reference for an IDP entity.
14490
+ example: service:my-service
14491
+ type: string
14488
14492
EntityRelationships:
14489
14493
description: Entity relationships.
14490
14494
properties:
@@ -34444,6 +34448,8 @@ components:
34444
34448
description: If enabled, the rule is calculated as part of the score.
34445
34449
example: true
34446
34450
type: boolean
34451
+ level:
34452
+ $ref: '#/components/schemas/RuleLevel'
34447
34453
modified_at:
34448
34454
description: Time of the last rule outcome modification.
34449
34455
format: date-time
@@ -34464,6 +34470,13 @@ components:
34464
34470
description: The unique ID for a scorecard rule.
34465
34471
example: q8MQxk8TCqrHnWkx
34466
34472
type: string
34473
+ RuleLevel:
34474
+ description: The maturity level of the rule (1, 2, or 3).
34475
+ example: 2
34476
+ format: int32
34477
+ maximum: 3
34478
+ minimum: 1
34479
+ type: integer
34467
34480
RuleName:
34468
34481
description: Name of the notification rule.
34469
34482
example: Rule 1
@@ -43835,6 +43848,57 @@ components:
43835
43848
id:
43836
43849
$ref: '#/components/schemas/ApiID'
43837
43850
type: object
43851
+ UpdateOutcomesAsyncAttributes:
43852
+ description: The JSON:API attributes for a batched set of scorecard outcomes.
43853
+ properties:
43854
+ results:
43855
+ description: Set of scorecard outcomes to update asynchronously.
43856
+ items:
43857
+ $ref: '#/components/schemas/UpdateOutcomesAsyncRequestItem'
43858
+ type: array
43859
+ type: object
43860
+ UpdateOutcomesAsyncRequest:
43861
+ description: Scorecard outcomes batch request.
43862
+ properties:
43863
+ data:
43864
+ $ref: '#/components/schemas/UpdateOutcomesAsyncRequestData'
43865
+ type: object
43866
+ UpdateOutcomesAsyncRequestData:
43867
+ description: Scorecard outcomes batch request data.
43868
+ properties:
43869
+ attributes:
43870
+ $ref: '#/components/schemas/UpdateOutcomesAsyncAttributes'
43871
+ type:
43872
+ $ref: '#/components/schemas/UpdateOutcomesAsyncType'
43873
+ type: object
43874
+ UpdateOutcomesAsyncRequestItem:
43875
+ description: Scorecard outcome for a single entity and rule.
43876
+ properties:
43877
+ entity_reference:
43878
+ $ref: '#/components/schemas/EntityReference'
43879
+ remarks:
43880
+ description: Any remarks regarding the scorecard rule's evaluation. Supports
43881
+ HTML hyperlinks.
43882
+ example: 'See: <a href="https://app.datadoghq.com/services">Services</a>'
43883
+ type: string
43884
+ rule_id:
43885
+ $ref: '#/components/schemas/RuleId'
43886
+ state:
43887
+ $ref: '#/components/schemas/State'
43888
+ required:
43889
+ - rule_id
43890
+ - entity_reference
43891
+ - state
43892
+ type: object
43893
+ UpdateOutcomesAsyncType:
43894
+ default: batched-outcome
43895
+ description: The JSON:API type for scorecard outcomes.
43896
+ enum:
43897
+ - batched-outcome
43898
+ example: batched-outcome
43899
+ type: string
43900
+ x-enum-varnames:
43901
+ - BATCHED_OUTCOME
43838
43902
UpdateResourceEvaluationFiltersRequest:
43839
43903
description: Request object to update a resource filter.
43840
43904
properties:
@@ -61882,6 +61946,39 @@ paths:
61882
61946
resultsPath: data
61883
61947
x-unstable: '**Note**: This endpoint is in public beta.
61884
61948
61949
+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
61950
+ post:
61951
+ description: Updates multiple scorecard rule outcomes in a single batched request.
61952
+ operationId: UpdateScorecardOutcomesAsync
61953
+ requestBody:
61954
+ content:
61955
+ application/json:
61956
+ schema:
61957
+ $ref: '#/components/schemas/UpdateOutcomesAsyncRequest'
61958
+ description: Set of scorecard outcomes.
61959
+ required: true
61960
+ responses:
61961
+ '202':
61962
+ description: Accepted
61963
+ '400':
61964
+ $ref: '#/components/responses/BadRequestResponse'
61965
+ '403':
61966
+ $ref: '#/components/responses/ForbiddenResponse'
61967
+ '409':
61968
+ $ref: '#/components/responses/ConflictResponse'
61969
+ '429':
61970
+ $ref: '#/components/responses/TooManyRequestsResponse'
61971
+ security:
61972
+ - apiKeyAuth: []
61973
+ appKeyAuth: []
61974
+ - AuthZ:
61975
+ - apm_service_catalog_write
61976
+ summary: Update Scorecard outcomes asynchronously
61977
+ tags:
61978
+ - Service Scorecards
61979
+ x-codegen-request-body-name: body
61980
+ x-unstable: '**Note**: This endpoint is in public beta.
61981
+
61885
61982
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
61886
61983
/api/v2/scorecard/outcomes/batch:
61887
61984
post:
0 commit comments