Zum Hauptinhalt springen

Get all data for a given strace

GET/projects/{projectId}/straces/{straceId}/
v2
GET
pageinsights-get-strace-data

Request

  • straceIdstring (uuid)
    required

    ID of the strace to get the data for.

  • projectIdstring (uuid)
    required

    ID of the project the strace belongs to.

Responses

application/json

OK

  • executedAtstring (date-time)
    required
  • idstring (uuid)
    required
  • resultone of 2 alternatives
    required
    • Alternativeobject
      • errorMessagestring
        required
    • Alternativeobject
      • actualUrlstring
        required
      • dbQueriesarray of object
        required
        • Array[
        • *object
          • querystring
            required

            The whole DB query.

          • statsobject
            required
            • kernelMsnumber
              required

              Elapsed kernel space time in milliseconds.

            • occurrencesinteger
              required

              The number of times this group occurred.

            • syscallCountinteger
              required

              Syscall count.

            • userspaceMsnumber
              required

              Elapsed user space time in milliseconds.

          • warnLevelstring (one of: NO, WARN, SEVERE)
            required

            Alerts when the time, syscall count or occurrence count of this group are abnormal.

        • ]
    • dbStatsobject
      required
      • kernelMsnumber
        required

        Elapsed kernel space time in milliseconds.

      • occurrencesinteger
        required

        The number of times this group occurred.

      • syscallCountinteger
        required

        Syscall count.

      • userspaceMsnumber
        required

        Elapsed user space time in milliseconds.

    • fileOpsarray of object
      required
      • Array[
      • *object
        • filenamestring
        • filepathstring
        • statsobject
          required
          • kernelMsnumber
            required

            Elapsed kernel space time in milliseconds.

          • occurrencesinteger
            required

            The number of times this group occurred.

          • syscallCountinteger
            required

            Syscall count.

          • userspaceMsnumber
            required

            Elapsed user space time in milliseconds.

        • warnLevelstring (one of: NO, WARN, SEVERE)
          required

          Alerts when the time, syscall count or occurrence count of this group are abnormal.

      • ]
  • fileOpsStatsobject
    required
    • kernelMsnumber
      required

      Elapsed kernel space time in milliseconds.

    • occurrencesinteger
      required

      The number of times this group occurred.

    • syscallCountinteger
      required

      Syscall count.

    • userspaceMsnumber
      required

      Elapsed user space time in milliseconds.

  • miscStatsobject
    required
    • kernelMsnumber
      required

      Elapsed kernel space time in milliseconds.

    • occurrencesinteger
      required

      The number of times this group occurred.

    • syscallCountinteger
      required

      Syscall count.

    • userspaceMsnumber
      required

      Elapsed user space time in milliseconds.

  • networkingOpsarray of object
    required
    • Array[
    • *object
      • connectionTypestring (one of: UNKNOWN, PRIVATE, EXTERNAL)
        required
      • descriptionstring
        required

        A short description of the network connection to provide additional context.

      • ipstring
        required

        IP address to which a connection was established.

      • portinteger
        required

        Port to which a connection was established.

      • statsobject
        required
        • kernelMsnumber
          required

          Elapsed kernel space time in milliseconds.

        • occurrencesinteger
          required

          The number of times this group occurred.

        • syscallCountinteger
          required

          Syscall count.

        • userspaceMsnumber
          required

          Elapsed user space time in milliseconds.

      • warnLevelstring (one of: NO, WARN, SEVERE)
        required

        Alerts when the time, syscall count or occurrence count of this group are abnormal.

    • ]
  • networkingStatsobject
    required
    • kernelMsnumber
      required

      Elapsed kernel space time in milliseconds.

    • occurrencesinteger
      required

      The number of times this group occurred.

    • syscallCountinteger
      required

      Syscall count.

    • userspaceMsnumber
      required

      Elapsed user space time in milliseconds.

  • slowdownFactornumber
    required

    Shows how much slower the websites TTFB was when it got traced (1.0 = 100% = same TTFB).

  • ttfbMsinteger
    required

    Time to first byte in milliseconds while tracing the website.

  • Usage examples

    $ curl \
    --fail \
    --location \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/straces/f0f86186-0a5a-45b2-aa33-502777496347