earliest

earliest 함수는 마이크로초 해상도로 레코드 집합에서 가장 빠른 타임스탬프를 반환합니다.

구문 매개변수 데이터 유형 반환 유형
earliest(timestamp) TIMESTAMP TIMESTAMP

코드 샘플

  • hostname에서 일치하는 모든 이벤트에 대해 metadata.event_timestamp 중 가장 빠른 시간을 start 변수에 저장합니다.

    $hostname = principal.hostname
    match:
      $hostname
    outcome:
      $start = earliest(metadata.event_timestamp)