---
sourceDocument: 호주 API 참조
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/api-reference

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 API 참조

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# 결과 - 범위, 전역

# 결과 - 범위, 전역 {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 03월 12일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 3분

Findings API는 검사에서 인스턴스 스캔 결과를 생성하는 방법을 처리하는 메서드를 제공합니다.

이 API는 (com.glide.instance_scan) 플러그인에 인스턴스 스캔 포함되어 있으며 `sn_instance_scan` 네임스페이스에서 실행됩니다. 자세한 내용은 [인스턴스 스캔](https://www.servicenow.com/docs/access?context=hs-landing-page&version=australia&pubname=australia-platform-administration&ft:locale=en-US)을 참조하십시오.

인스턴스 스캔에서는 인스턴스의 스캔 범위 내에서 각 기록에 대해 검사가 실행되어 결과를 생성합니다. 각 결과에는 문제 기록 및 위반한 검사에 대한 정보가 있습니다. 찾기 메서드는 사용자에게 전달된 엔진 객체의 일부로 검사에 인스턴스 스캔 사용됩니다. 검사 양식의 스크립트 필드에 코드를 추가합니다.  
참조 :

* [검사 시작하기](https://www.servicenow.com/docs/access?context=hs-intro-health-check&version=australia&pubname=australia-platform-administration&ft:locale=en-US)
* [정보](https://www.servicenow.com/docs/access?context=hs-findings&version=australia&pubname=australia-platform-administration&ft:locale=en-US)
{#FindingsAPI__ul_hlw_q5y_spb}

## 결과 - increment() {#ariaid-title2}

현재 찾기의 수를 늘립니다.
검사가 스캔에서 분석하는 각 기록에 대해 찾은 결과 카운트는 0부터 시작합니다. 호출되면 이 메서드는 찾기 횟수를 증가시킵니다. 카운트는 현재 기록에 대해 찾기가 생성될 것임을 나타냅니다.

이 메서드를 여러 번 호출하여 이 결과에 현재 기록에서 검사 위반이 여러 번 발생했음을 나타낼 수 있습니다.
{#Findings-increment__table_ckd_hxt_4pb__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 1. 매개변수]

{#Findings-increment__table_ckd_hxt_4pb} {#Findings-increment__table_dkd_hxt_4pb__entry__2}

| 유형 | 설명 |
|-|-|
| 없음 |   |
[표 2. 반환]

{#Findings-increment__table_dkd_hxt_4pb}  
다음 예제는 테이블 유형 검사에서 실패한 상태의 기록 수를 계산하는 방법을 보여줍니다. 자세한 내용은 [테이블 유형 검사 생성](https://www.servicenow.com/docs/access?context=hs-create-table-health-check&version=australia&pubname=australia-platform-administration&ft:locale=en-US)을 참조하세요.

    (function(engine) {
      if (current.getValue("state") == "failed") {
        engine.finding.increment();
      }
    })(engine);

## 결과 - incrementWithNode(객체 노드) {#ariaid-title3}

현재 발견 결과가 Linter 검사에서 가져온 경우 이 메서드는 현재 발견 횟수를 늘리고 동시에 Linter 노드 객체를 발견 결과에 전달합니다.
[린터 검사 양식](https://www.servicenow.com/docs/access?context=hc-linter-check&version=australia&pubname=australia-platform-administration&ft:locale=en-US)의 스크립트 필드에서 이 방법을 사용합니다. 이 방법은 현재 찾기의 상세 정보 열에 있는 라인 번호와 같은 지정된 노드에 대한 정보를 저장합니다.  
참조 :

* [고급 린터 검사 스크립트](https://www.servicenow.com/docs/access?context=hs-linter-check-scripts&version=australia&pubname=australia-platform-administration&ft:locale=en-US)
* [LinterCheckAstNode API](https://servicenow-prod.fluidtopics.net/znNCetw5QrW0fOURdbmV9g#LinterCheckAstNodeAPIBoth "LinterCheckAstNode API는 린터 검사에서 AST(추상 구문 트리) 노드 세부 정보를 가져오는 메서드를 제공합니다.")
{#Findings-incrementWithNode_O__ul_nxz_f5y_spb}
{#Findings-incrementWithNode_O__table_ckd_hxt_4pb__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 노드 | 객체 | 린터 검사의 노드 객체입니다. |
[표 3. 매개변수]

{#Findings-incrementWithNode_O__table_ckd_hxt_4pb} {#Findings-incrementWithNode_O__table_dkd_hxt_4pb__entry__2}

| 유형 | 설명 |
|-|-|
| 없음 |   |
[표 4. 반환]

{#Findings-incrementWithNode_O__table_dkd_hxt_4pb}  
다음 예제는 린터 검사에서 린터 유형 노드를 증가시키는 방법을 보여줍니다. 린터 검사 메서드 사용에 대한 자세한 내용은 [LinterCheckAstNode API](https://servicenow-prod.fluidtopics.net/znNCetw5QrW0fOURdbmV9g#LinterCheckAstNodeAPIBoth "LinterCheckAstNode API는 린터 검사에서 AST(추상 구문 트리) 노드 세부 정보를 가져오는 메서드를 제공합니다.")를 참조하세요.

    (function(engine) {
      engine.rootNode.visit(function(node) {
        if (node.getTypeName() === "NAME" &&
            node.getNameIdentifier() === "soughtFunction" &&
            node.getParent().getTypeName() === "CALL") {
          engine.finding.incrementWithNode(node);
        } 
      });
    })(engine);

## 결과 - setCurrentSource(GlideRecord 소스) {#ariaid-title4}

제공된 GlideRecord를 기반으로 현재 찾기의 소스를 설정합니다.
스크립트만 검사의 스크립트 필드에서 이 방법을 사용합니다. 이 방법은 스캔 중에 소스를 현재 기록으로 자동 설정하기 때문에 다른 검사에는 사용되지 않습니다. 자세한 내용은 [스크립트만 검사 생성](https://www.servicenow.com/docs/access?context=hs-create-script-health-check&version=australia&pubname=australia-platform-administration&ft:locale=en-US)을 참조하세요.
{#Findings-setCurrentSource_O__table_ckd_hxt_4pb__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 소스 | GlideRecord | 현재 찾기에 대한 소스 기록으로 설정할 기록입니다. 이 값은 스캔 결과 \[scan_finding\] 테이블의 소스 필드에 참조로 추가됩니다. |
[표 5. 매개변수]

{#Findings-setCurrentSource_O__table_ckd_hxt_4pb} {#Findings-setCurrentSource_O__table_dkd_hxt_4pb__entry__2}

| 유형 | 설명 |
|-|-|
| 없음 |   |
[표 6. 반환]

{#Findings-setCurrentSource_O__table_dkd_hxt_4pb}  
다음 예는 스크립트 전용 검사에서 현재 소스를 인시던트 기록으로 설정하는 방법을 보여줍니다. 자세한 내용은 [스크립트만 검사 생성](https://www.servicenow.com/docs/access?context=hs-create-script-health-check&version=australia&pubname=australia-platform-administration&ft:locale=en-US)을 참조하세요.

    (function(engine) {
      var gr = new GlideRecord('incident');
      gr.get('2f99f330730210100a5310c92bf6a798');
      engine.finding.setCurrentSource(gr);
      engine.finding.increment();
    })(engine);


