Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note

THIS IS A REPRESENTATIVE QUERY FOR OUR FULLY FUNCTIONAL API. IT WILL NOT WORK UNTIL WE HAVE FULLY LAUNCHED THE API.

Single Session

Code Block
query {
  viewer {
    organization {
      scenarioSessions {
        # INSERT everything below the `... on ScenarioSession` line vvquery {
  node(id: "ljmnV58GM_c4AEHHiZy0qiSoP9HN3CnK7dbuPMNxx_M=") {
    ... on ScenarioSession {
      startedAt
      finishedAt
      duration
      idleDuration
      numberOfStepsPossible
      numberOfStepsViewed
      percentOfStepsViewed
      state
      externalData # NOTE: this is where the data passed from the System of Record can be found
      scenarioRelease {
        author
        publishedAt
        scenario {
          author {
            id
            name
          }
          description
          name
          origin_group {
            name
          }
          published_at
        }
        type
        version
      }
      events {
        nodes {
          attachments {
            author
            fileContentType
            fileDownloadCount
            fileFingerprint
            fileName
            fileSize
            fileUpdatedAt
            fileURL
            fileURLExpiresAt
            name
            organization
            owner
            type          }
          deviceLocation {
            altitude
            device {
              identifier
              model
              organization
              os
            }
            isSindowsExe
            latitude
            longitude
            platform
            protocol
            version
          }
        }
      }
      steps {
        scenario_step {
          name
          orderIndex
          scenarioSequence {
            name          
          }
        }
      }
    }
  }
}

...