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
}
}
}
}
}
}
}
}
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.