Hey there :wave: is there any documentation for wh...
# pactflow
j
Hey there 👋 is there any documentation for what the
/metrics
endpoint response in the Pactflow api represents? I’m curious about the values returned by fields like
verificationResults
and
providerContractSelfVerifications
and would like to know what the numbers actually mean, as they don’t seem to line up with what my assumptions would be
m
Copy code
"verificationResults": { <- regular pact provider verification
    "count": 11, <- total number of provider verifications
    "successCount": 7, <- ...of successful ones
    "failureCount": 4, <- ...of failed ones
    "distinctCount": 11,
    "first": "2019-11-10T22:40:22+00:00", <- first time a verification happened
    "last": "2023-07-27T04:56:38+00:00" <- last time one happened
  },
Now, this data is only reliable for all time, if it hasn’t been cleaned
PactFlow does clean tenant data, so old data can be removed that would make these numbers unreliable. OSS Pact Broker has cleaning also https://docs.pact.io/pact_broker/administration/maintenance
providerContractSelfVerifications
these are, I think, effectively the number of provider contract publications with self verification results. I’m also confused by this number in my tenant, because it differs from the
providerContractPublications
item, which seems unusual. It could be another artifact of the cleaning process.
I’ll follow up Monday with the team
We have insights and reporting as something on our backlog to significantly improve in PactFlow, because of the limitations of the above (and to be honest, they are fairly crude metrics)
j
Thanks for the clarification Matt simple smile yeah if cleaning can modify the metrics that probably means we can’t rely on them too much Looking forward to seeing what you’ve got planned 😄
👍 1