Hi All,
trying to generate the Change failure rate in compass for the specific component using GitHub Actions cicd, i was able to find the componentID using graphql api but to generate CFR i need to pass the metricSourceID. getting the metricSourceID using graphql api getting below error .
Hi, @Sridhar Ravula !
You can find the built-in metric definition identifiers available in the documentation: https://developer.atlassian.com/cloud/compass/forge-graphql-toolkit/Enumerations/BuiltinMetricDefinitions/
This may be the one that you were looking for:
ari:cloud:compass::metric-definition/builtin/change-failure-rate-28d
Alternatively, a query such as the following should work for you, if the given component already has that metric added to it:
query GetMetricDefinitionId { compass { component( id: "ari:cloud:compass:...:component/.../...") { ... on CompassComponent { id name metricSources { ... on CompassComponentMetricSourcesConnection { edges { node { metricDefinition { id } } } } } } } }}
@Enrique Serrano Valle thank you, one more question
is the above query is for connect to metric or posting the metrics ?
by default this metric not enabled for the component right ? if i want to enable using graphql the above query works ?
It looks like you're new here. Sign in or register to get started.