You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Select your transport with a defined url endpoint
transport = AIOHTTPTransport(url="https://api.newrelic.com/graphql", headers={'API-Key': apiKey})
# Create a GraphQL client using the defined transport
async with Client(transport=transport, fetch_schema_from_transport=True) as client:
# Provide a GraphQL query
query = gql(
"""
{{
actor {{
entity(guid: "{entityGuid}") {{
nrdbQuery(nrql: "SELECT percentile(duration, 95) * 1000 as response_duration from Transaction where transactionType = 'Web' and transactionSubType = 'SpringController' SINCE 15 minutes AGO") {{