Skip to main content
Monitoring & Collection/Profiling

CreateBaseline

Create a new performance baseline from a profiling session.

POST/api/v1/profiling/baselines

Operation ID

CreateBaseline

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • label
    StringRequired

    Human-readable label for the new baseline.

    Example: v1.2.0-release

  • sessionId
    StringRequired

    Session identifier to use as the source of this baseline.

    Example: sess-abc123

  • profileType
    StringRequired

    Profile type this baseline represents.

    Example: cpu

  • description
    StringRequired

    Optional description providing context for this baseline.

    Example: Post-deploy baseline for v1.2.0

  • topFunctions
    ListRequired

    Top functions captured from the source session.

    Example: (nested array)

    • funcName
      String

      Fully-qualified function name including package path.

      Example: runtime.gcBgMarkWorker

    • package
      String

      Go package that contains this function.

      Example: runtime

    • selfPct
      Long

      Percentage of samples attributed solely to this function.

      Example: 12.5

    • cumulativePct
      Long

      Percentage of samples including callees of this function.

      Example: 18.3

    • sampleCount
      String

      Absolute number of profiling samples collected for this function.

      Example: 4200

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • baselineId
    String

    Unique identifier of this baseline record.

    Example: bl-20240101

  • baselineLabel
    String

    Human-readable label identifying this baseline.

    Example: v1.2.0-release

  • profileType
    String

    Profile type this baseline was captured from.

    Example: cpu

  • sessionId
    String

    Profiling session identifier used to create this baseline.

    Example: sess-abc123

  • description
    String

    Optional description providing context for this baseline.

    Example: Post-deploy baseline for v1.2.0

  • topFunctions
    List

    Top functions recorded at the time of baseline creation.

    Example: (nested array)

    • funcName
      String

      Fully-qualified function name including package path.

      Example: runtime.gcBgMarkWorker

    • package
      String

      Go package that contains this function.

      Example: runtime

    • selfPct
      Long

      Percentage of samples attributed solely to this function.

      Example: 12.5

    • cumulativePct
      Long

      Percentage of samples including callees of this function.

      Example: 18.3

    • sampleCount
      String

      Absolute number of profiling samples collected for this function.

      Example: 4200

  • createdAt
    String

    Timestamp when this baseline was created.

    Example: 2026-01-15T08:00:00Z

  • isLatest
    Boolean

    Whether this is the most recently created baseline for its type.

    Example: true

  • tags
    List

    User-defined tags for categorizing this baseline.

    Example: item1,item2