Skip to content

Events

Message contracts v1.0

DataCreated

  • Description: Emitted by the Time series service to indicate that a new time series dataset has been created.
  • Sample:

    {
      "specversion": "1.0",
      "customerid": "f0b919d1-80c2-49e4-9e27-31e4e9b9fdfa",
      "projectid": "98da827b-407c-418d-8064-6c27b5417bfb", 
      "userid": "6131709d-3181-4372-8bef-e33498e09333", 
      "resourceid": "849eea20-ab7e-434a-a7bb-1a5e63e8ca03",
      "type": "dhi.waterdata.events.datacreatedevent",
      "source": "/dhi/platform/timeseries",
      "id": "05705269-4529-4e5a-9780-a54492c0d645",
      "time": "2021-04-26T08:39:02.5923813Z",
      "subject": "Data created",
      "dataschema": "https://schemas.mike-cloud.com/platform/timeseries/v1/datacreatedevent", 
      "datacontenttype": "application/json",
      "data": {
        "Dataset": {
          "$type": "DHI.WaterData.Events.DatasetCreatedData, DHI.WaterData.Events",
          "Id": "849eea20-ab7e-434a-a7bb-1a5e63e8ca03",
          "Name": "Test Dataset",
          "Size": 88, 
          "DatasetType": "Timeseries", 
          "DatasetFormat" : "TS", 
          "Metadata": null,
          "Properties": null
        },
        "CustomerGuid": "f0b919d1-80c2-49e4-9e27-31e4e9b9fdfa",
        "ProjectId": "98da827b-407c-418d-8064-6c27b5417bfb",
        "UserId": "6131709d-3181-4372-8bef-e33498e09333"
      },
      "offset": "17182746240"
    }
    

    Note:
    ResourceId represents the ID of the created time series data.

DatasetUpdated

  • Description: Emitted by the GIS service to indicate that an existing GIS dataset has been updated by adding/removing attributes, adding/updating/removing features or updating feature attributes. Also emitted by the Multidimensional service to indicate that an existing Multidimensional dataset has been updated.
  • Sample:

    {
      "specversion": "1.0",
      "customerid": "f0b919d1-80c2-49e4-9e27-31e4e9b9fdfa",
      "projectid": "98da827b-407c-418d-8064-6c27b5417bfb", 
      "userid": "6131709d-3181-4372-8bef-e33498e09333",
      "resourceid": "f4077488-599e-4a57-afa7-74e11f0d96db",
      "type": "dhi.waterdata.events.datasetupdatedvent",
      "source": "/dhi/platform/gis",
      "id": "5f72e57a-2cee-4d25-9b2c-1222550cd355",
      "time": "2021-04-26T08:39:02.5923813Z",
      "subject": "Dataset updated",
      "dataschema": "https://schemas.mike-cloud.com/platform/gis/v1/datasetupdatedevent", 
      "datacontenttype": "application/json",
      "data": {
        "DatasetId": "f4077488-599e-4a57-afa7-74e11f0d96db",
        "Extent": "POLYGON ((200000 6000000, 200000 6200000, 230000 6200000, 230000 6000000, 200000 6000000))", 
        "SizeKB": 1,
        "CustomerGuid": "f0b919d1-80c2-49e4-9e27-31e4e9b9fdfa",
        "ProjectId": "98da827b-407c-418d-8064-6c27b5417bfb",  
        "UserId": "6131709d-3181-4372-8bef-e33498e09333"
      },
      "offset": "17182746240"
    }
    

    Note:
    ResourceId represents the ID of the updated dataset.

FileDatasetsUpdated

  • Description: Emitted by the File service to indicate that at least one File dataset in a project has been updated.
  • Sample:

    {
      "specversion": "1.0",
      "customerid": "f0b919d1-80c2-49e4-9e27-31e4e9b9fdfa",
      "projectid": "98da827b-407c-418d-8064-6c27b5417bfb", 
      "userid": "6131709d-3181-4372-8bef-e33498e09333",
      "resourceId": "98da827b-407c-418d-8064-6c27b5417bfb"
      "type": "dhi.waterdata.events.filesdatasetsupdatedevent",
      "source": "/dhi/platform/raw",
      "id": "496c9018-6a79-4e32-8d94-1b9b30643f8b",
      "time": "2021-04-26T08:39:02.5923813Z",
      "subject": "File dataset updated",
      "dataschema": "https://schemas.mike-cloud.com/platform/raw/v1/filedatasetsupdatedevent", 
      "datacontenttype": "application/json",
      "data": {
        "Datasets": [
          {
            "$type": "DHI.WaterData.Events.FileDatasetsUpdatedEventItem, DHI.WaterData.Events",
            "DatasetId": "8737f872-d6c6-4658-bc86-e5aa1cc8b80e",
            "SizeKB": 10112,
            "LastModified": "2021-04-26T08:37:02.5923813Z"
          },
          {
            "$type": "DHI.WaterData.Events.FileDatasetsUpdatedEventItem, DHI.WaterData.Events",
            "DatasetId": "86f9cb4d-3a33-466d-a1de-879e3a77a378",
            "SizeKB": 777,
            "LastModified": "2021-04-26T08:37:02.5923813Z"
          }
        ],
        "CustomerGuid": "f0b919d1-80c2-49e4-9e27-31e4e9b9fdfa",
        "ProjectId": "98da827b-407c-418d-8064-6c27b5417bfb",   
        "UserId": "6131709d-3181-4372-8bef-e33498e09333"
      },
      "offset": "17182746240"
    }
    

    Note:
    ResourceId represents the project ID.