글로벌 설명: 테스트 절차의 결과를 표현하기 위한 데이터 모델입니다.
버전: 0.0.1
[*] 속성에 유형이 없는 것은 여러 유형 또는 다른 형식/패턴을 가질 수 있기 때문입니다.
address[object]: 우편 주소 . Model: https://schema.org/addressaddressCountry[string]: 국가. 예를 들어, 스페인 . Model: https://schema.org/addressCountryaddressLocality[string]: 도로명 주소가 있는 지역 및 해당 지역에 속한 지역 . Model: https://schema.org/addressLocalityaddressRegion[string]: 해당 지역이 위치한 지역과 해당 국가의 지역 . Model: https://schema.org/addressRegiondistrict[string]: 지구는 일부 국가에서는 지방 정부에서 관리하는 행정 구역의 일종입니다.postOfficeBoxNumber[string]: 사서함 주소의 우체국 사서함 번호입니다. 예: 03578 . Model: https://schema.org/postOfficeBoxNumberpostalCode[string]: 우편 번호입니다. 예: 24004 . Model: https://schema.org/https://schema.org/postalCodestreetAddress[string]: 거리 주소 . Model: https://schema.org/streetAddressstreetNr[string]: 공공 도로의 특정 건물을 식별하는 번호
alternateName[string]: 이 항목의 대체 이름areaServed[string]: 서비스 또는 제공 품목이 제공되는 지리적 영역 . Model: https://schema.org/Textcomponent[uri]: 테스트할 소프트웨어 또는 구성 요소에 해당하는 NGSI 엔티티의 식별자 형식dataProvider[string]: 조화된 데이터 엔티티의 공급자를 식별하는 일련의 문자dateCreated[date-time]: 엔티티 생성 타임스탬프. 이는 일반적으로 스토리지 플랫폼에서 할당합니다.dateModified[date-time]: 엔티티의 마지막 수정 타임스탬프입니다. 이는 일반적으로 스토리지 플랫폼에서 할당합니다.description[string]: 이 항목에 대한 설명elapsedTime[number]: 테스트 실행 시작 이후 경과된 시간입니다. 테스트 실행 기간을 밀리초 단위로 측정합니다. . Model: https://schema.org/Numberid[*]: 엔티티의 고유 식별자location[*]: 항목에 대한 지오숀 참조입니다. 포인트, 라인 문자열, 다각형, 멀티포인트, 멀티라인 문자열 또는 멀티폴리곤일 수 있습니다.name[string]: 이 항목의 이름owner[array]: 소유자의 고유 ID를 참조하는 JSON 인코딩된 문자 시퀀스가 포함된 목록입니다.seeAlso[*]: 항목에 대한 추가 리소스를 가리키는 URL 목록source[string]: 엔티티 데이터의 원본 소스를 URL로 제공하는 문자 시퀀스입니다. 소스 공급자의 정규화된 도메인 이름 또는 소스 개체에 대한 URL을 사용하는 것이 좋습니다.status[string]: 테스트 실행의 전반적인 상태입니다: OK, 모든 테스트가 통과됨; NOK, 실패한 테스트가 최소 몇 개 있음; POK, 일부 테스트가 선택 사항으로 표시되어 실패했을 가능성이 있으므로 전체 상태는 NOK가 아니라 POK입니다. . Model: https://schema.org/Texttests[array]: 각 테스트의 실행 상태 . Model: https://schema.org/Texttimestamp[number]: EPOCH 타임스탬프는 테스트 실행 시작 시점에 해당하는 밀리초 단위의 측정값입니다. . Model: https://schema.org/Numbertype[string]: NGSI 엔티티 유형. ITTests여야 합니다.
필수 속성
idtype
알파벳순으로 정렬(자세한 내용을 보려면 클릭)
full yaml details
ITTests:
description: This is the data model for representing the result of testing procedures.
properties:
address:
description: The mailing address
properties:
addressCountry:
description: 'The country. For example, Spain'
type: string
x-ngsi:
model: https://schema.org/addressCountry
type: Property
addressLocality:
description: 'The locality in which the street address is, and which is in the region'
type: string
x-ngsi:
model: https://schema.org/addressLocality
type: Property
addressRegion:
description: 'The region in which the locality is, and which is in the country'
type: string
x-ngsi:
model: https://schema.org/addressRegion
type: Property
district:
description: 'A district is a type of administrative division that, in some countries, is managed by the local government'
type: string
x-ngsi:
type: Property
postOfficeBoxNumber:
description: 'The post office box number for PO box addresses. For example, 03578'
type: string
x-ngsi:
model: https://schema.org/postOfficeBoxNumber
type: Property
postalCode:
description: 'The postal code. For example, 24004'
type: string
x-ngsi:
model: https://schema.org/https://schema.org/postalCode
type: Property
streetAddress:
description: The street address
type: string
x-ngsi:
model: https://schema.org/streetAddress
type: Property
streetNr:
description: Number identifying a specific property on a public street
type: string
x-ngsi:
type: Property
type: object
x-ngsi:
model: https://schema.org/address
type: Property
alternateName:
description: An alternative name for this item
type: string
x-ngsi:
type: Property
areaServed:
description: The geographic area where a service or offered item is provided
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
component:
description: Identifier format of any NGSI entity corresponding to the Software or component to be tested
format: uri
type: string
x-ngsi:
type: Relationship
dataProvider:
description: A sequence of characters identifying the provider of the harmonised data entity
type: string
x-ngsi:
type: Property
dateCreated:
description: Entity creation timestamp. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
dateModified:
description: Timestamp of the last modification of the entity. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
description:
description: A description of this item
type: string
x-ngsi:
type: Property
elapsedTime:
description: Elapsed time since the beginning of the execution of the tests. It measures in milliseconds the duration of the execution of the tests
minimum: 0
multipleOf: 1
type: number
x-ngsi:
model: https://schema.org/Number
type: Property
id:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
location:
description: 'Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon'
oneOf:
- description: Geojson reference to the item. Point
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
type: number
minItems: 2
type: array
type:
enum:
- Point
type: string
required:
- type
- coordinates
title: GeoJSON Point
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. LineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type:
enum:
- LineString
type: string
required:
- type
- coordinates
title: GeoJSON LineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. Polygon
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type:
enum:
- Polygon
type: string
required:
- type
- coordinates
title: GeoJSON Polygon
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiPoint
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
type: array
type:
enum:
- MultiPoint
type: string
required:
- type
- coordinates
title: GeoJSON MultiPoint
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type: array
type:
enum:
- MultiLineString
type: string
required:
- type
- coordinates
title: GeoJSON MultiLineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type: array
type:
enum:
- MultiPolygon
type: string
required:
- type
- coordinates
title: GeoJSON MultiPolygon
type: object
x-ngsi:
type: GeoProperty
x-ngsi:
type: GeoProperty
name:
description: The name of this item
type: string
x-ngsi:
type: Property
owner:
description: A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)
items:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
type: array
x-ngsi:
type: Property
seeAlso:
description: list of uri pointing to additional resources about the item
oneOf:
- items:
format: uri
type: string
minItems: 1
type: array
- format: uri
type: string
x-ngsi:
type: Property
source:
description: 'A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object'
type: string
x-ngsi:
type: Property
status:
description: 'Overall status of the execution of the tests: OK, all the tests passed; NOK, there is at least some tests that failed; POK, it is possible that some tests are marked as optionals, therefore it they fails the overall status is not NOK but POK'
enum:
- OK
- NOK
- POK
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
tests:
description: Status of the execution of each of the tests
items:
properties:
name:
description: The name or identification to the test executed
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
result:
description: 'The result of the execution of the test. it could be:OK, the test passed; NOK, the test failed; N/A, the test was not executed due to it was not applicable for the corresponding software or component; DISMISS, the test could not be executed due to a previous error in other test'
enum:
- OK
- NOK
- NA
- DISMISS
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
required:
- name
- result
type: object
type: array
x-ngsi:
model: https://schema.org/Text
type: Property
timestamp:
description: EPOCH timestamp measures in milliseconds corresponding to the starting point of the execution of the tests
minimum: 0
multipleOf: 1
type: number
x-ngsi:
model: https://schema.org/Number
type: Property
type:
description: NGSI Entity type. It has to be ITTests
enum:
- ITTests
type: string
x-ngsi:
type: Property
required:
- id
- type
type: object
x-derived-from: ""
x-disclaimer: 'Redistribution and use in source and binary forms, with or without modification, are permitted provided that the license conditions are met. Copyleft (c) 2022 Contributors to Smart Data Models Program'
x-license-url: https://github.com/smart-data-models/dataModel.IT/blob/master/ITTests/LICENSE.md
x-model-schema: https://smart-data-models.github.io/dataModel.IT/Tests/schema.json
x-model-tags: ""
x-version: 0.0.1 다음은 키-값으로 JSON-LD 형식의 ITTests의 예입니다. 이는 옵션=키값을 사용할 때 NGSI-v2와 호환되며 개별 엔티티의 컨텍스트 데이터를 반환합니다.
show/hide example
{
"id": "urn:ngsi-ld:Tests:Tempest:23278568",
"type": "ITTests",
"status": "OK",
"timestamp": 1645543927345,
"elapsedTime": 1344875,
"component": "urn:ngsi-ld:CloudRegion:Noida",
"tests": [
{
"name": "test_allocate_ip",
"result": "OK"
},
{
"name": "test_allocate_ip",
"result": "OK"
},
{
"name": "test_object_storage",
"result": "NA"
},
{
"name": "test_associate_io",
"result": "DISMISS"
}
]
} 다음은 정규화된 JSON-LD 형식의 ITTests의 예입니다. 이는 옵션을 사용하지 않을 때 NGSI-v2와 호환되며 개별 엔티티의 컨텍스트 데이터를 반환합니다.
show/hide example
{
"id": "urn:ngsi-ld:Tests:Tempest:23278568",
"type": "ITTests",
"status": {
"type": "Text",
"value": "OK"
},
"timestamp": {
"type": "Number",
"value": 1645543927345
},
"elapsedTime": {
"type": "Number",
"value": 1344875
},
"component": {
"type": "Text",
"value": "urn:ngsi-ld:CloudRegion:Noida"
},
"tests": {
"type": "StructuredValue",
"value": [
{
"name": "test_allocate_ip",
"result": "OK"
},
{
"name": "test_object_storage",
"result": "NA"
},
{
"name": "test_associate_ip",
"result": "DISMISS"
},
{
"name": "test_deploy_server",
"result": "NOK"
}
]
}
} 다음은 키 값으로 JSON-LD 형식의 ITTests의 예입니다. 이는 옵션=키값을 사용할 때 NGSI-LD와 호환되며 개별 엔티티의 컨텍스트 데이터를 반환합니다.
show/hide example
{
"id": "urn:ngsi-ld:Tests:Tempest:23278568",
"type": "ITTests",
"status": "OK",
"timestamp": 1645543927345,
"elapsedTime": 1344875,
"component": "urn:ngsi-ld:CloudRegion:Noida",
"tests": [
{
"name": "test_allocate_ip",
"result": "OK"
},
{
"name": "test_allocate_ip",
"result": "OK"
},
{
"name": "test_object_storage",
"result": "NA"
},
{
"name": "test_associate_io",
"result": "DISMISS"
}
],
"@context": [
"https://smart-data-models.github.com/dataModel.IT/context.jsonld",
"https://raw.githubusercontent.com/smart-data-models/dataModel.IT/master/context.jsonld"
]
} 다음은 정규화된 JSON-LD 형식의 ITTests의 예입니다. 이는 옵션을 사용하지 않을 때 NGSI-LD와 호환되며 개별 엔티티의 컨텍스트 데이터를 반환합니다.
show/hide example
{
"id": "urn:ngsi-ld:Tests:Tempest:23278568",
"type": "ITTests",
"status": {
"type": "Property",
"value": "OK"
},
"timestamp": {
"type": "Property",
"value": 1645543927345
},
"elapsedTime": {
"type": "Property",
"value": 1344875
},
"component": {
"type": "Relationship",
"value": "urn:ngsi-ld:CloudRegion:Noida"
},
"tests": {
"type": "Property",
"value": [
{
"name": "test_allocate_ip",
"result": "OK"
},
{
"name": "test_object_storage",
"result": "NA"
},
{
"name": "test_associate_ip",
"result": "DISMISS"
},
{
"name": "test_deploy_server",
"result": "NOK"
}
]
},
"@context": [
"https://smart-data-models.github.com/dataModel.IT/context.jsonld",
"https://raw.githubusercontent.com/smart-data-models/dataModel.IT/master/context.jsonld"
]
} FAQ 10을 참조하여 규모 단위를 다루는 방법에 대한 답변을 확인하세요.
