Amazon Neptune · Arazzo Workflow

Amazon Neptune Property Graph Statistics Refresh

Version 1.0.0

Trigger a property graph statistics refresh and read back the updated graph summary counts.

1 workflow 1 source API 1 provider
View Spec View on GitHub DatabaseGraph DatabaseGremlinNeptuneProperty GraphRDFSPARQLArazzoWorkflows

Provider

amazon-neptune

Workflows

propertygraph-statistics-refresh
Refresh property graph statistics and read the updated counts.
Checks engine health, refreshes property graph statistics, and reads back the graph statistics counts.
3 steps inputs: mode outputs: engineStatus, numEdges, numNodes
1
checkEngine
getEngineStatus
Confirm the Neptune engine is available before managing statistics.
2
refreshStats
managePropertygraphStatistics
Trigger a property graph statistics operation using the supplied mode (refresh by default).
3
readStats
getPropertygraphStatistics
Read back the property graph statistics payload and report the node, edge, and label counts.

Source API Descriptions

Arazzo Workflow Specification

amazon-neptune-propertygraph-statistics-refresh-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Neptune Property Graph Statistics Refresh
  summary: Trigger a property graph statistics refresh and read back the updated graph summary counts.
  description: >-
    Keeps the DFE statistics that drive Neptune query planning current. The
    workflow confirms the engine is healthy, triggers a refresh of the property
    graph statistics, and then reads back the statistics payload to report the
    node, edge, and label counts. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: neptuneDataApi
  url: ../openapi/amazon-neptune-data-openapi.yml
  type: openapi
workflows:
- workflowId: propertygraph-statistics-refresh
  summary: Refresh property graph statistics and read the updated counts.
  description: >-
    Checks engine health, refreshes property graph statistics, and reads back
    the graph statistics counts.
  inputs:
    type: object
    properties:
      mode:
        type: string
        description: >-
          The statistics management mode (refresh, enableAutoCompute, or
          disableAutoCompute).
  steps:
  - stepId: checkEngine
    description: >-
      Confirm the Neptune engine is available before managing statistics.
    operationId: getEngineStatus
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      engineStatus: $response.body#/status
  - stepId: refreshStats
    description: >-
      Trigger a property graph statistics operation using the supplied mode
      (refresh by default).
    operationId: managePropertygraphStatistics
    requestBody:
      contentType: application/json
      payload:
        mode: $inputs.mode
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      manageStatus: $statusCode
  - stepId: readStats
    description: >-
      Read back the property graph statistics payload and report the node,
      edge, and label counts.
    operationId: getPropertygraphStatistics
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      numNodes: $response.body#/payload/graphStatistics/numNodes
      numEdges: $response.body#/payload/graphStatistics/numEdges
      numNodeLabels: $response.body#/payload/graphStatistics/numNodeLabels
  outputs:
    engineStatus: $steps.checkEngine.outputs.engineStatus
    numNodes: $steps.readStats.outputs.numNodes
    numEdges: $steps.readStats.outputs.numEdges