你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Azure Data Manager for Agriculture(预览版)作为事件网格源
本文提供 Azure Data Manager for Agriculture(预览版)事件的属性和架构。 有关事件架构的简介,请参阅 Azure 事件网格事件架构和云事件架构。
可用事件类型
事件名称 |
描述 |
Microsoft.AgFoodPlatform.PartyChanged |
创建/更新/删除 Party 时发布。 |
Microsoft.AgFoodPlatform.FarmChanged.V2 |
创建/更新/删除 Farm 时发布。 |
Microsoft.AgFoodPlatform.FieldChanged.V2 |
创建/更新/删除 Field 时发布。 |
Microsoft.AgFoodPlatform.SeasonChanged |
创建/更新/删除 Season 时发布。 |
Microsoft.AgFoodPlatform.SeasonalFieldChanged.V2 |
创建/更新/删除 Seasonal Field 时发布。 |
Microsoft.AgFoodPlatform.BoundaryChanged.V2 |
创建/更新/删除 Boundary 时发布。 |
Microsoft.AgFoodPlatform.CropChanged |
创建/更新/删除 Crop 时发布。 |
Microsoft.AgFoodPlatform.CropProductChanged |
创建/更新/删除 Crop Product 时发布。 |
Microsoft.AgFoodPlatform.AttachmentChanged.V2 |
创建/更新/删除 Attachment 时发布。 |
Microsoft.AgFoodPlatform.ManagementZoneChanged.V2 |
创建/更新/删除 Management Zone 时发布。 |
Microsoft.AgFoodPlatform.ZoneChanged.V2 |
创建/更新/删除 Zone 时发布。 |
事件名称 |
描述 |
Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged.V2 |
卫星数据引入作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
事件名称 |
描述 |
Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged.V2 |
天气数据引入作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
Microsoft.AgFoodPlatform.WeatherDataRefresherJobStatusChanged.V2 |
天气数据刷新程序作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
事件名称 |
描述 |
Microsoft.AgFoodPlatform.ApplicationDataChanged.V2 |
创建/更新/删除 Application Data 时发布。 |
Microsoft.AgFoodPlatform.HarvestDataChanged.V2 |
创建/更新/删除 Harvesting Data 时发布。 |
Microsoft.AgFoodPlatform.TillageDataChanged.V2 |
创建/更新/删除 Tillage Data 时发布。 |
Microsoft.AgFoodPlatform.PlantingDataChanged.V2 |
创建/更新/删除 Planting Data 时发布。 |
Microsoft.AgFoodPlatform.ImageProcessingRasterizeJobStatusChanged.V2 |
图像处理光栅化作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged.V2 |
农场经营数据引入作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
事件名称 |
描述 |
Microsoft.AgFoodPlatform.SensorMappingChanged.V2 |
创建/更新/删除 Sensor Mapping 时发布。 |
Microsoft.AgFoodPlatform.SensorPartnerIntegrationChanged.V2 |
创建/更新/删除 Sensor Partner Integration 时发布。 |
Microsoft.AgFoodPlatform.DeviceDataModelChanged |
创建/更新/删除 Device Data Model 时发布。 |
Microsoft.AgFoodPlatform.DeviceChanged |
创建/更新/删除 Device 时发布。 |
Microsoft.AgFoodPlatform.SensorDataModelChanged |
创建/更新/删除 Sensor Data Model 时发布。 |
Microsoft.AgFoodPlatform.SensorChanged |
创建/更新/删除 Sensor 时发布。 |
事件名称 |
描述 |
Microsoft.AgFoodPlatform.PrescriptionChanged.V2 |
创建/更新/删除 Prescription 时发布。 |
Microsoft.AgFoodPlatform.PrescriptionMapChanged.V2 |
创建/更新/删除 Prescription Map 时发布。 |
Microsoft.AgFoodPlatform.PlantTissueAnalysisChanged.V2 |
创建/更新/删除 Plant Tissue Analysis 数据时发布。 |
Microsoft.AgFoodPlatform.NutrientAnalysisChanged.V2 |
创建/更新/删除 Nutrient Analysis 数据时发布。 |
Microsoft.AgFoodPlatform.InsightChanged.V2 |
创建/更新/删除 Insight 时发布。 |
Microsoft.AgFoodPlatform.InsightAttachmentChanged.V2 |
创建/更新/删除 Insight Attachment 时发布。 |
事件名称 |
描述 |
Microsoft.AgFoodPlatform.BiomassModelJobStatusChanged.V2 |
生物量模型作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
Microsoft.AgFoodPlatform.SoilMoistureModelJobStatusChanged.V2 |
土壤水分模型作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
Microsoft.AgFoodPlatform.SensorPlacementModelJobStatusChanged.V2 |
传感器放置模型作业的状态发生更改(例如作业创建、进行中或完成)时发布。 |
示例事件
以下示例显示了 Microsoft.AgFoodPlatform.PartyChanged 的架构:
[
{
"data": {
"actionType": "Deleted",
"modifiedDateTime": "2022-10-17T18:43:37Z",
"eTag": "0000000000-0000-0000-0000-0000000000000",
"properties": {
"key1": "value1",
"key2": 123.45
},
"id": "<YOUR-PARTY-ID>",
"createdDateTime": "2022-10-17T18:43:30Z"
},
"id": "000000000-0000-0000-0000-0000000000000",
"source": "/subscriptions/{SUBSCRIPTION-ID}/resourceGroups/{RESOURCE-GROUP-NAME}/providers/Microsoft.AgFoodPlatform/farmBeats/{YOUR-RESOURCE-NAME}",
"subject": "/parties/<YOUR-PARTY-ID>",
"type": "Microsoft.AgFoodPlatform.PartyChanged",
"specversion":"1.0",
"time": "2022-10-17T18:43:37.3306735Z"
}
]
以下示例显示了 Microsoft.AgFoodPlatform.PartyChanged 的架构:
[
{
"data": {
"actionType": "Deleted",
"modifiedDateTime": "2022-10-17T18:43:37Z",
"eTag": "0000000-0000-0000-0000-000000000000",
"properties": {
"key1": "value1",
"key2": 123.45
},
"id": "<YOUR-PARTY-ID>",
"createdDateTime": "2022-10-17T18:43:30Z"
},
"id": "0000000-0000-0000-0000-00000000000",
"topic": "/subscriptions/{SUBSCRIPTION-ID}/resourceGroups/{RESOURCE-GROUP-NAME}/providers/Microsoft.AgFoodPlatform/farmBeats/{YOUR-RESOURCE-NAME}",
"subject": "/parties/<YOUR-PARTY-ID>",
"eventType": "Microsoft.AgFoodPlatform.PartyChanged",
"dataVersion": "1.0",
"metadataVersion": "1",
"eventTime": "2022-10-17T18:43:37.3306735Z"
}
]
事件属性
事件具有以下顶级数据:
属性 |
类型 |
说明 |
source |
string |
事件源的完整资源路径。 此字段不可写入。 事件网格提供此值。 |
subject |
string |
事件主题的发布者定义路径。 |
type |
string |
此事件源的一个注册事件类型。 |
time |
string |
基于提供程序 UTC 时间的事件生成时间。 |
id |
string |
事件的唯一标识符。 |
data |
对象 |
应用配置事件数据。 |
specversion |
字符串 |
CloudEvents 架构规范版本。 |
事件具有以下顶级数据:
属性 |
类型 |
说明 |
topic |
string |
事件源的完整资源路径。 此字段不可写入。 事件网格提供此值。 |
subject |
string |
事件主题的发布者定义路径。 |
eventType |
string |
此事件源的一个注册事件类型。 |
eventTime |
string |
基于提供程序 UTC 时间的事件生成时间。 |
id |
string |
事件的唯一标识符。 |
data |
对象 |
应用配置事件数据。 |
dataVersion |
string |
数据对象的架构版本。 发布者定义架构版本。 |
metadataVersion |
string |
事件元数据的架构版本。 事件网格定义顶级属性的架构。 事件网格提供此值。 |
数据对象具有以下常见属性:
属性 |
类型 |
描述 |
id |
字符串 |
资源的唯一 ID。 |
actionType |
字符串 |
指示触发事件发布的更改。 适用的值为“已创建”、“已更新”和“已删除”。 |
properties |
对象 |
它包含用户定义的键值对。 |
modifiedDateTime |
字符串 |
指示上次修改事件的时间。 |
createdDateTime |
字符串 |
指示创建资源的时间。 |
状态 |
字符串 |
包含用户定义的对象状态。 |
eTag |
String |
实现乐观并发。 |
description |
字符串 |
资源的文本说明。 |
name |
字符串 |
用于标识资源的名称。 |
属性 |
类型 |
描述 |
id |
字符串 |
作业的唯一 ID。 |
name |
string |
用户定义的作业名称。 |
状态 |
string |
作业可以处于各种状态。 |
isCancellationRequested |
boolean |
请求取消作业时设置的标记。 |
description |
字符串 |
作业的文本说明。 |
partyId |
string |
为其创建作业的当事方 ID。 |
message |
string |
用于捕获更多作业详细信息的状态消息。 |
lastActionDateTime |
日期时间 |
对作业执行的上一个操作的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
createdDateTime |
日期时间 |
创建资源的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
properties |
对象 |
它包含用户定义的键值对。 |
后续步骤