NODEDC_DESIGN_GUIDELINE/registry/data-product-consumer-polic...

240 lines
7.4 KiB
JSON

{
"$schema": "https://nodedc.ru/schemas/foundry-data-product-consumer-policies-v1.json",
"schemaVersion": "nodedc.foundry.data-product-consumer-policies/v1",
"policies": [
{
"id": "map-moving-object-current-v1",
"version": "1.0.0",
"dataProductId": "fleet.positions.current.v1",
"productVersion": "1.0.0",
"staleAfterMs": 60000,
"terminalStatuses": [
"inactive",
"no-position",
"no_position"
],
"removeMode": "canonical-tombstone-or-snapshot-rebase"
},
{
"id": "map-moving-object-current-v2",
"version": "2.0.0",
"dataProductId": "fleet.positions.current.v2",
"productVersion": "2.0.0",
"staleAfterMs": 60000,
"terminalStatuses": [
"inactive",
"no-position",
"no_position"
],
"removeMode": "canonical-tombstone-or-snapshot-rebase"
},
{
"id": "map-moving-object-current-v4",
"version": "4.0.0",
"dataProductId": "fleet.positions.current.v4",
"productVersion": "4.0.0",
"staleAfterMs": null,
"terminalStatuses": [
"inactive"
],
"statusContract": {
"attribute": "signal_state",
"allowedValues": [
"active",
"inactive"
],
"missing": "reject",
"freshness": "none"
},
"removeMode": "canonical-tombstone-or-snapshot-rebase"
},
{
"id": "map-moving-object-current-v5",
"version": "5.0.0",
"dataProductId": "fleet.positions.current.v5",
"productVersion": "5.0.0",
"staleAfterMs": null,
"terminalStatuses": [
"inactive"
],
"statusContract": {
"attribute": "signal_state",
"allowedValues": [
"active",
"inactive"
],
"missing": "reject",
"freshness": "none"
},
"removeMode": "canonical-tombstone-or-snapshot-rebase"
},
{
"id": "map-moving-object-unit-profile-current-v1",
"version": "1.0.0",
"dataProductId": "fleet.units.profile.current.v1",
"productVersion": "1.0.0",
"freshness": "none",
"staleAfterMs": null,
"terminalStatuses": [],
"consumerContract": {
"ontologyRevision": "ontology.map.moving_object.v3",
"deliveryMode": "snapshot+patch",
"semanticTypes": [
"map.moving_object"
],
"fieldProjection": [
"corrected_engine_hours_factor",
"corrected_mileage_factor",
"display_name",
"filter_by_satellite_count_enabled",
"filter_by_satellite_count_value",
"filter_emissions",
"hardware_manufacturer_name",
"hardware_port",
"hardware_type_class",
"hardware_type_name",
"limit_acceleration",
"lost_connection_enabled",
"lost_connection_time_value",
"maximum_permissible_speed",
"maximum_valid_height",
"maximum_valid_speed",
"mileage_by_ignition",
"minimum_movement_speed",
"minimum_movement_time",
"minimum_parking_time",
"minimum_stop_time",
"minimum_trip_distance",
"minimum_valid_height",
"speed_parameter",
"trip_detection_type",
"unit_type_class",
"unit_type_name",
"use_odometer"
],
"fieldTypes": {
"corrected_engine_hours_factor": "number",
"corrected_mileage_factor": "number",
"display_name": "string",
"filter_by_satellite_count_enabled": "boolean",
"filter_by_satellite_count_value": "number",
"filter_emissions": "number",
"hardware_manufacturer_name": "string",
"hardware_port": "number",
"hardware_type_class": "string",
"hardware_type_name": "string",
"limit_acceleration": "number",
"lost_connection_enabled": "boolean",
"lost_connection_time_value": "number",
"maximum_permissible_speed": "number",
"maximum_valid_height": "number",
"maximum_valid_speed": "number",
"mileage_by_ignition": "boolean",
"minimum_movement_speed": "number",
"minimum_movement_time": "number",
"minimum_parking_time": "number",
"minimum_stop_time": "number",
"minimum_trip_distance": "number",
"minimum_valid_height": "number",
"speed_parameter": "string",
"trip_detection_type": "string",
"unit_type_class": "string",
"unit_type_name": "string",
"use_odometer": "boolean"
},
"geometryTypes": [],
"subjectIdentity": "semantic-type+source-id",
"snapshotMode": "atomic-replace",
"patchMode": "atomic"
},
"removeMode": "canonical-tombstone-or-snapshot-rebase"
},
{
"id": "map-moving-object-unit-contacts-current-v1",
"version": "1.0.0",
"dataProductId": "fleet.units.contacts.current.v1",
"productVersion": "1.0.0",
"dataClass": "restricted",
"freshness": "none",
"staleAfterMs": null,
"terminalStatuses": [],
"consumerContract": {
"ontologyRevision": "ontology.map.moving_object.v3",
"deliveryMode": "snapshot+patch",
"semanticTypes": [
"map.moving_object"
],
"fieldProjection": [
"device_imei",
"device_phone_primary",
"device_phone_secondary",
"display_name",
"provider_creator_login"
],
"fieldTypes": {
"device_imei": "string",
"device_phone_primary": "string",
"device_phone_secondary": "string",
"display_name": "string",
"provider_creator_login": "string"
},
"geometryTypes": [],
"subjectIdentity": "semantic-type+source-id",
"snapshotMode": "atomic-replace",
"patchMode": "atomic"
},
"removeMode": "canonical-tombstone-or-snapshot-rebase"
},
{
"id": "map-zone-current-v1",
"version": "1.0.0",
"dataProductId": "map.zones.current.v1",
"productVersion": "1.0.0",
"freshness": "none",
"staleAfterMs": null,
"terminalStatuses": [],
"removeMode": "canonical-tombstone-or-snapshot-rebase"
},
{
"id": "map-zone-current-v2",
"version": "2.0.0",
"dataProductId": "map.zones.current.v2",
"productVersion": "2.0.0",
"freshness": "none",
"staleAfterMs": null,
"terminalStatuses": [],
"consumerContract": {
"ontologyRevision": "ontology.map.zone.v1",
"deliveryMode": "snapshot+patch",
"semanticTypes": [
"map.zone"
],
"fieldProjection": [
"display_name",
"geometry_kind",
"max_speed_kph",
"schedule_timezone",
"applies_to_couriers",
"applies_to_kicksharing"
],
"fieldTypes": {
"display_name": "string",
"geometry_kind": "string",
"max_speed_kph": "number",
"schedule_timezone": "string",
"applies_to_couriers": "boolean",
"applies_to_kicksharing": "boolean"
},
"geometryTypes": [
"Polygon",
"MultiPolygon"
],
"subjectIdentity": "semantic-type+source-id",
"snapshotMode": "atomic-replace",
"patchMode": "atomic"
},
"removeMode": "canonical-tombstone-or-snapshot-rebase"
}
]
}