Saltar al contenido

List project measurement summary row rows

Módulo Projects

GET/project-measurement-summaryprojectMeasurementSummary.list

Gate 8 measurement against the gate 1 objectives, per project and metric, in the metric's base unit. Totals cover measured figures only, with the unmeasured count beside them; with nothing measured the figure is null (Unmeasured), never zero. Returns a cursor page of project measurement summary row rows the caller may see. The default order is `project_id`, then `metric_code` ascending. Supports sparse fieldsets and the filter grammar.

  • Requiere la capacidad projects.gate.read.
  • Alcances de OAuth: projects.
  • Paginación por cursor: se aplican limit, cursor, fields, sort y filter.
  • Estados de error: 400, 401, 429. Los errores son detalles de problema RFC 9457.

Parámetros de ruta y de consulta

projectMeasurementSummary.list: Parámetros de ruta y de consulta
CampoTipoObligatorioDescripción
limitLimitNoPage size. Default 50, maximum 200.Restricciones: range 1 to 200
cursorCursorNoOpaque cursor from `next_cursor` of the previous page.Restricciones: length 1 to any
fieldsFieldsNoSparse fieldset: a comma-separated list of top-level fields to return. `id` is always returned.Restricciones: pattern ^[a-z_][a-z0-9_]*(,[a-z_][a-z0-9_]*)*$
sortSortNoSort keys, comma-separated; a leading `-` sorts descending. Without `sort`, the documented default order applies (coded lists sort in numeric code order).Restricciones: pattern ^-?[a-z_][a-z0-9_]*(,-?[a-z_][a-z0-9_]*)*$
filterFilterNoFilter grammar `filter[field][op]=value`. Operators: eq, ne, lt, lte, gt, gte, in (comma-separated values), is_null (true or false) and contains. Conditions combine with AND.

Respuesta 200: una página de ProjectMeasurementSummary

projectMeasurementSummary.list: ProjectMeasurementSummary
CampoTipoObligatorioDescripción
project_idstring (uuid)SíIdentifier of the project.
metric_codestringSíMetric (app.measurement_metrics).Restricciones: pattern ^[a-z][a-z0-9_]*$
family"Sustainability" | "Audience" | "Earned Media" | "Sentiment"SíFamily of the figure.
dimension"Mass" | "Volume" | "Energy" | "Emissions" | "Count" | "Percent"SíDimension of the figure.
base_unit_codestringSíUnit of target_base and measured_base.Restricciones: pattern ^[a-z][a-z0-9_]*$
aggregation"Sum" | "Latest"SíHow figures combine.
objective_idstring (uuid) | nullSíIdentifier of the live gate 1 objective for the metric.
direction"At Least" | "At Most" | nullSíDirection of the objective.
target_valuenumber | nullSíTarget as set, in target_unit_code.
target_unit_codestring | nullSíUnit the target was set in.Restricciones: pattern ^[a-z][a-z0-9_]*$
target_basenumber | nullSíTarget in the base unit.
measured_countintegerSíFigures with a value.Restricciones: range 0 to any
unmeasured_countintegerSíFigures recorded as not measured; never counted as zero.Restricciones: range 0 to any
measured_basenumber | nullSíTotal (Sum) or latest figure (Latest) in the base unit; null when nothing was measured.
last_measured_onstring (date) | nullSíDay of the most recent measured figure.
outcome"Met" | "Not Met" | "Incomplete" | "Unmeasured" | nullSíMet, Not Met, Incomplete (unmeasured figures leave the objective undecided) or Unmeasured; null without an objective.
{
  "data": [
    {
      "project_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
      "metric_code": "waste_generated",
      "family": "Sustainability",
      "dimension": "Mass",
      "base_unit_code": "kg",
      "aggregation": "Sum",
      "objective_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
      "direction": "At Most",
      "target_value": 2,
      "target_unit_code": "kg",
      "target_base": 2000,
      "measured_count": 2,
      "unmeasured_count": 1,
      "measured_base": 1953.59237,
      "last_measured_on": "2026-10-08",
      "outcome": "Met"
    }
  ],
  "next_cursor": null
}

Ejemplos de código

curl -X GET "$XOS_BASE_URL/project-measurement-summary" \
  -H "Authorization: Bearer $XOS_API_KEY"
for await (const row of xos.projectMeasurementSummary.listAll()) {
  console.log(row);
}
for row in xos.project_measurement_summary.list_all():
    print(row)
xos project-measurement-summary list --all