@@ -44874,6 +44874,39 @@ components:
4487444874 example: "/api/v2/scorecard/rules?page%5Blimit%5D=2&page%5Boffset%5D=2&page%5Bsize%5D=2"
4487544875 type: string
4487644876 type: object
44877+ ListScorecardScoresMeta:
44878+ description: Pagination metadata for scores.
44879+ properties:
44880+ count:
44881+ description: The number of results returned in this page.
44882+ format: int64
44883+ type: integer
44884+ limit:
44885+ description: The page limit.
44886+ format: int64
44887+ type: integer
44888+ offset:
44889+ description: The page offset.
44890+ format: int64
44891+ type: integer
44892+ total:
44893+ description: The total number of results.
44894+ format: int64
44895+ type: integer
44896+ type: object
44897+ ListScorecardScoresResponse:
44898+ description: A list of scorecard scores for a given aggregation type.
44899+ properties:
44900+ data:
44901+ description: Array of score objects.
44902+ items:
44903+ $ref: "#/components/schemas/ScorecardScoreData"
44904+ type: array
44905+ links:
44906+ $ref: "#/components/schemas/ListRulesResponseLinks"
44907+ meta:
44908+ $ref: "#/components/schemas/ListScorecardScoresMeta"
44909+ type: object
4487744910 ListScorecardsResponse:
4487844911 description: Response containing a list of scorecards.
4487944912 properties:
@@ -66381,6 +66414,119 @@ components:
6638166414 type: string
6638266415 x-enum-varnames:
6638366416 - SCORECARD
66417+ ScorecardScoreAttributes:
66418+ description: Attributes of a scorecard score.
66419+ properties:
66420+ aggregation:
66421+ $ref: "#/components/schemas/ScorecardScoresAggregation"
66422+ denominator:
66423+ description: The denominator used to compute the score ratio.
66424+ format: int64
66425+ type: integer
66426+ level:
66427+ description: The maturity level of the associated rule.
66428+ format: int64
66429+ type: integer
66430+ numerator:
66431+ description: The numerator used to compute the score ratio.
66432+ format: int64
66433+ type: integer
66434+ score:
66435+ description: The computed score ratio (numerator/denominator), from 0 to 1.
66436+ format: double
66437+ type: number
66438+ total_entities:
66439+ description: The total number of entities evaluated.
66440+ format: int64
66441+ type: integer
66442+ total_fail:
66443+ description: The number of rules that failed.
66444+ format: int64
66445+ type: integer
66446+ total_no_data:
66447+ description: The number of rules with no data.
66448+ format: int64
66449+ type: integer
66450+ total_pass:
66451+ description: The number of rules that passed.
66452+ format: int64
66453+ type: integer
66454+ total_skip:
66455+ description: The number of rules that were skipped.
66456+ format: int64
66457+ type: integer
66458+ type: object
66459+ ScorecardScoreData:
66460+ description: A scorecard score object for a single entity, rule, scorecard, service, or team.
66461+ properties:
66462+ attributes:
66463+ $ref: "#/components/schemas/ScorecardScoreAttributes"
66464+ id:
66465+ description: The ID of the entity or resource being scored.
66466+ example: ""
66467+ type: string
66468+ relationships:
66469+ $ref: "#/components/schemas/ScorecardScoreRelationships"
66470+ type:
66471+ $ref: "#/components/schemas/ScorecardScoreDataType"
66472+ required:
66473+ - id
66474+ - type
66475+ type: object
66476+ ScorecardScoreDataType:
66477+ default: score
66478+ description: The JSON:API resource type.
66479+ enum: [score]
66480+ example: score
66481+ type: string
66482+ x-enum-varnames:
66483+ - SCORE
66484+ ScorecardScoreRelationshipData:
66485+ description: A relationship data object for a score.
66486+ properties:
66487+ id:
66488+ description: The ID of the related resource.
66489+ example: ""
66490+ type: string
66491+ type:
66492+ description: The type of the related resource.
66493+ example: ""
66494+ type: string
66495+ required:
66496+ - id
66497+ - type
66498+ type: object
66499+ ScorecardScoreRelationshipItem:
66500+ description: A relationship item for a score.
66501+ properties:
66502+ data:
66503+ $ref: "#/components/schemas/ScorecardScoreRelationshipData"
66504+ type: object
66505+ ScorecardScoreRelationships:
66506+ description: Relationships for a scorecard score, depending on the aggregation type.
66507+ properties:
66508+ entity:
66509+ $ref: "#/components/schemas/ScorecardScoreRelationshipItem"
66510+ rule:
66511+ $ref: "#/components/schemas/ScorecardScoreRelationshipItem"
66512+ scorecard:
66513+ $ref: "#/components/schemas/ScorecardScoreRelationshipItem"
66514+ service:
66515+ $ref: "#/components/schemas/ScorecardScoreRelationshipItem"
66516+ team:
66517+ $ref: "#/components/schemas/ScorecardScoreRelationshipItem"
66518+ type: object
66519+ ScorecardScoresAggregation:
66520+ description: Dimension to group scores by.
66521+ enum: [by-entity, by-rule, by-scorecard, by-team, by-kind]
66522+ example: by-entity
66523+ type: string
66524+ x-enum-varnames:
66525+ - BY_ENTITY
66526+ - BY_RULE
66527+ - BY_SCORECARD
66528+ - BY_TEAM
66529+ - BY_KIND
6638466530 ScorecardType:
6638566531 default: scorecard
6638666532 description: The JSON:API type for scorecard.
@@ -135894,6 +136040,121 @@ paths:
135894136040 summary: List all scorecards
135895136041 tags:
135896136042 - Scorecards
136043+ /api/v2/scorecard/scores/{aggregation}:
136044+ get:
136045+ description: Returns a list of scorecard scores for each aggregation type, with score breakdowns.
136046+ operationId: ListScorecardScores
136047+ parameters:
136048+ - description: The type of scores being requested.
136049+ in: path
136050+ name: aggregation
136051+ required: true
136052+ schema:
136053+ $ref: "#/components/schemas/ScorecardScoresAggregation"
136054+ - description: Filter scores by rule ID(s), comma-separated.
136055+ in: query
136056+ name: filter[rule][id]
136057+ required: false
136058+ schema:
136059+ type: string
136060+ - description: Filter scores by rule name.
136061+ in: query
136062+ name: filter[rule][name]
136063+ required: false
136064+ schema:
136065+ type: string
136066+ - description: Filter scores by rule level(s), comma-separated.
136067+ in: query
136068+ name: filter[rule][level]
136069+ required: false
136070+ schema:
136071+ type: string
136072+ - description: Filter scores by scorecard ID(s), comma-separated.
136073+ in: query
136074+ name: filter[rule][scorecard_id]
136075+ required: false
136076+ schema:
136077+ type: string
136078+ - description: Filter scores to show only custom rules.
136079+ in: query
136080+ name: filter[rule][is_custom]
136081+ required: false
136082+ schema:
136083+ type: boolean
136084+ - description: Filter scores to show only enabled rules.
136085+ in: query
136086+ name: filter[rule][is_enabled]
136087+ required: false
136088+ schema:
136089+ type: boolean
136090+ - description: "Sort scores by field. Use a hyphen prefix for descending order. Options: score, numerator, denominator, total_pass, total_fail, total_skip, total_no_data."
136091+ in: query
136092+ name: sort
136093+ required: false
136094+ schema:
136095+ type: string
136096+ - description: Offset for pagination.
136097+ in: query
136098+ name: page[offset]
136099+ required: false
136100+ schema:
136101+ default: 0
136102+ type: integer
136103+ - description: Number of scores to return. Max is 1000.
136104+ in: query
136105+ name: page[limit]
136106+ required: false
136107+ schema:
136108+ default: 100
136109+ type: integer
136110+ responses:
136111+ "200":
136112+ content:
136113+ application/json:
136114+ examples:
136115+ default:
136116+ value:
136117+ data:
136118+ - attributes:
136119+ aggregation: by-entity
136120+ denominator: 4
136121+ numerator: 3
136122+ score: 0.75
136123+ total_fail: 1
136124+ total_no_data: 0
136125+ total_pass: 3
136126+ total_skip: 0
136127+ id: service:my-service
136128+ relationships:
136129+ entity:
136130+ data:
136131+ id: service:my-service
136132+ type: entity
136133+ type: score
136134+ links:
136135+ next: /api/v2/scorecard/scores/by-entity?page[offset]=100&page[limit]=100
136136+ meta:
136137+ count: 1
136138+ limit: 100
136139+ offset: 0
136140+ total: 42
136141+ schema:
136142+ $ref: "#/components/schemas/ListScorecardScoresResponse"
136143+ description: OK
136144+ "400":
136145+ $ref: "#/components/responses/BadRequestResponse"
136146+ "403":
136147+ $ref: "#/components/responses/ForbiddenResponse"
136148+ "429":
136149+ $ref: "#/components/responses/TooManyRequestsResponse"
136150+ security:
136151+ - apiKeyAuth: []
136152+ appKeyAuth: []
136153+ - AuthZ:
136154+ - apm_service_catalog_read
136155+ summary: List all scores
136156+ tags:
136157+ - Scorecards
135897136158 /api/v2/seats/users:
135898136159 delete:
135899136160 description: |-
0 commit comments