> ## Documentation Index
> Fetch the complete documentation index at: https://docs.niadra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Intercalação

> Listas intercaladas de dois rankings de uma ferramenta: a qual deles o engajamento deu crédito, impressão a impressão, com o teste do sinal.



## OpenAPI

````yaml openapi/pt/cell.json GET /v1/measure/interleaving
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-2
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/measure/interleaving:
    get:
      tags:
        - signals
      summary: Intercalação
      description: >-
        Listas intercaladas de dois rankings de uma ferramenta: a qual deles o
        engajamento deu crédito, com o teste do sinal.


        **Autenticação.** Token de pessoa do Console com o papel `analysis` (ou
        admin), ou chave de fonte com o escopo `admin`. Só responde num espaço
        com a funcionalidade `measurement` ligada (o documento `features`); num
        espaço sem ela, 404.
      operationId: interleaving_v1_measure_interleaving_get
      parameters:
        - in: query
          name: since
          required: true
          schema:
            format: date
            title: Since
            type: string
        - in: query
          name: until
          required: true
          schema:
            format: date
            title: Until
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InterleavingReport'
          description: Resposta de sucesso.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    InterleavingReport:
      additionalProperties: false
      description: >-
        Listas intercaladas de dois rankings de uma ferramenta (sorteio por
        times, semeado pelo turno): a qual ranking o engajamento da pessoa deu
        crédito, impressão a impressão, por dia e no período.
      properties:
        rows:
          items:
            $ref: '#/components/schemas/InterleavingRow'
          title: Rows
          type: array
        since:
          format: date
          title: Since
          type: string
        totals:
          items:
            $ref: '#/components/schemas/InterleavingTotal'
          title: Totals
          type: array
        until:
          format: date
          title: Until
          type: string
      required:
        - since
        - until
        - rows
        - totals
      title: InterleavingReport
      type: object
    Problem:
      additionalProperties: false
      description: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    InterleavingRow:
      additionalProperties: false
      properties:
        day:
          format: date
          title: Day
          type: string
        experiment:
          maxLength: 256
          minLength: 1
          title: Experiment
          type: string
        impressions:
          title: Impressions
          type: integer
        ties:
          description: Impressões com engajamento igual, ou nenhum.
          title: Ties
          type: integer
        tool:
          maxLength: 256
          minLength: 1
          title: Tool
          type: string
        wins_a:
          description: >-
            Impressões cujo engajamento foi para os itens que o ranking `a`
            contribuiu.
          title: Wins A
          type: integer
        wins_b:
          title: Wins B
          type: integer
      required:
        - day
        - experiment
        - tool
        - impressions
        - wins_a
        - wins_b
        - ties
      title: InterleavingRow
      type: object
    InterleavingTotal:
      additionalProperties: false
      properties:
        experiment:
          maxLength: 256
          minLength: 1
          title: Experiment
          type: string
        impressions:
          title: Impressions
          type: integer
        p_value:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            O teste do sinal bilateral sobre as impressões decididas; ausente
            antes de alguma ser decidida.
          title: P Value
        ties:
          title: Ties
          type: integer
        tool:
          maxLength: 256
          minLength: 1
          title: Tool
          type: string
        wins_a:
          title: Wins A
          type: integer
        wins_b:
          title: Wins B
          type: integer
      required:
        - experiment
        - tool
        - impressions
        - wins_a
        - wins_b
        - ties
        - p_value
      title: InterleavingTotal
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````