Module Values.CreateCampaignRequestSource

Creates an orchestration of data collection rules. The Amazon Web Services IoT FleetWise Edge Agent software running in vehicles uses campaigns to decide how to collect and transfer data to the cloud. You create campaigns in the cloud. After you or your team approve campaigns, Amazon Web Services IoT FleetWise automatically deploys them to vehicles. For more information, see Collect and transfer data with campaigns in the Amazon Web Services IoT FleetWise Developer Guide. Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see Amazon Web Services Region and feature availability in the Amazon Web Services IoT FleetWise Developer Guide.

Sourcetype nonrec t = {
  1. name : CampaignName.t;
    (*

    The name of the campaign to create.

    *)
  2. description : Description.t option;
    (*

    An optional description of the campaign to help identify its purpose.

    *)
  3. signalCatalogArn : Arn.t;
    (*

    The Amazon Resource Name (ARN) of the signal catalog to associate with the campaign.

    *)
  4. targetArn : Arn.t;
    (*

    The ARN of the vehicle or fleet to deploy a campaign to.

    *)
  5. startTime : Timestamp.t option;
    (*

    The time, in milliseconds, to deliver a campaign after it was approved. If it's not specified, 0 is used. Default: 0

    *)
  6. expiryTime : Timestamp.t option;
    (*

    The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). Vehicle data isn't collected after the campaign expires. Default: 253402214400 (December 31, 9999, 00:00:00 UTC)

    *)
  7. postTriggerCollectionDuration : Uint32.t option;
    (*

    How long (in milliseconds) to collect raw data after a triggering event initiates the collection. If it's not specified, 0 is used. Default: 0

    *)
  8. diagnosticsMode : DiagnosticsMode.t option;
    (*

    Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise. If you want to send diagnostic trouble codes, use SEND_ACTIVE_DTCS. If it's not specified, OFF is used. Default: OFF

    *)
  9. spoolingMode : SpoolingMode.t option;
    (*

    Determines whether to store collected data after a vehicle lost a connection with the cloud. After a connection is re-established, the data is automatically forwarded to Amazon Web Services IoT FleetWise. If you want to store collected data when a vehicle loses connection with the cloud, use TO_DISK. If it's not specified, OFF is used. Default: OFF

    *)
  10. compression : Compression.t option;
    (*

    Determines whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If you don't want to compress the signals, use OFF. If it's not specified, SNAPPY is used. Default: SNAPPY

    *)
  11. priority : Priority.t option;
    (*

    A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet. A campaign with the lowest value is deployed to vehicles before any other campaigns. If it's not specified, 0 is used. Default: 0

    *)
  12. signalsToCollect : SignalInformationList.t option;
    (*

    A list of information about signals to collect. If you upload a signal as a condition in a data partition for a campaign, then those same signals must be included in signalsToCollect.

    *)
  13. collectionScheme : CollectionScheme.t;
    (*

    The data collection scheme associated with the campaign. You can specify a scheme that collects data based on time or an event.

    *)
  14. dataExtraDimensions : DataExtraDimensionNodePathList.t option;
    (*

    A list of vehicle attributes to associate with a campaign. Enrich the data with specified vehicle attributes. For example, add make and model to the campaign, and Amazon Web Services IoT FleetWise will associate the data with those attributes as dimensions in Amazon Timestream. You can then query the data against make and model. Default: An empty array

    *)
  15. tags : TagList.t option;
    (*

    Metadata that can be used to manage the campaign.

    *)
  16. dataDestinationConfigs : DataDestinationConfigs.t option;
    (*

    The destination where the campaign sends data. You can send data to an MQTT topic, or store it in Amazon S3 or Amazon Timestream. MQTT is the publish/subscribe messaging protocol used by Amazon Web Services IoT to communicate with your devices. Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics. Amazon Web Services IoT FleetWise supports at-least-once file delivery to S3. Your vehicle data is stored on multiple Amazon Web Services IoT FleetWise servers for redundancy and high availability. You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns.

    *)
  17. dataPartitions : DataPartitions.t option;
    (*

    The data partitions associated with the signals collected from the vehicle.

    *)
  18. signalsToFetch : SignalFetchInformationList.t option;
    (*

    A list of information about signals to fetch.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?startTime:??? -> ?expiryTime:??? -> ?postTriggerCollectionDuration:??? -> ?diagnosticsMode:??? -> ?spoolingMode:??? -> ?compression:??? -> ?priority:??? -> ?signalsToCollect:??? -> ?dataExtraDimensions:??? -> ?tags:??? -> ?dataDestinationConfigs:??? -> ?dataPartitions:??? -> ?signalsToFetch:??? -> name:CampaignName.t -> signalCatalogArn:Arn.t -> targetArn:Arn.t -> collectionScheme:CollectionScheme.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Priority.t | `List of [> `String of NodePath.t | `Structure of (string * [> `Integer of LanguageVersion.t | `List of [> `String of ActionEventExpression.t ] list | `Long of MaxSampleCount.t | `String of WildcardSignalName.t | `Structure of (string * [> `Enum of string | `Integer of LanguageVersion.t | `String of S3BucketArn.t | `Structure of (string * [> `Enum of string | `Integer of StorageMaximumSizeValue.t | `Long of PositiveLong.t | `String of FetchConfigEventExpression.t ]) list ]) list ]) list ] list | `Long of Uint32.t | `String of CampaignName.t | `Structure of (string * [> `Structure of (string * [> `Enum of string | `Integer of LanguageVersion.t | `Long of CollectionPeriodMs.t | `String of EventExpression.t ]) list ]) list | `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t