openapi: 3.0.0 info: version: '2014-06-05' x-release: v4 title: Amazon Mobile Analytics description: 'Amazon Mobile Analytics is a service for collecting, visualizing, and understanding app usage data at scale.' x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: mobileanalytics x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/mobileanalytics-2014-06-05.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/mobileanalytics/' servers: - url: 'http://mobileanalytics.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon Mobile Analytics multi-region endpoint - url: 'https://mobileanalytics.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon Mobile Analytics multi-region endpoint - url: 'http://mobileanalytics.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon Mobile Analytics endpoint for China (Beijing) and China (Ningxia) - url: 'https://mobileanalytics.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon Mobile Analytics endpoint for China (Beijing) and China (Ningxia) paths: /2014-06-05/events#x-amz-Client-Context: post: operationId: PutEvents description: 'The PutEvents operation records one or more events. You can have up to 1,500 unique custom events per app, any combination of up to 40 attributes and metrics per custom event, and any number of attribute or metric values.' responses: '202': description: Success '400': description: BadRequestException x-aws-exception: true content: application/json: schema: $ref: '#/components/schemas/BadRequestException' parameters: - name: x-amz-Client-Context in: header required: true description: 'The client context including the client ID, app title, app version and package name.' schema: type: string - name: x-amz-Client-Context-Encoding in: header required: false description: The encoding used for the client context. schema: type: string requestBody: required: true content: application/json: schema: type: object required: - events properties: events: description: An array of Event JSON objects type: array items: $ref: '#/components/schemas/Event' parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' components: parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 schemas: Event: type: object required: - eventType - timestamp properties: eventType: allOf: - $ref: '#/components/schemas/String50Chars' - description: A name signifying an event that occurred in your app. This is used for grouping and aggregating like events together for reporting purposes. timestamp: allOf: - $ref: '#/components/schemas/ISO8601Timestamp' - description: 'The time the event occurred in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z' session: allOf: - $ref: '#/components/schemas/Session' - description: 'The session the event occured within. ' version: allOf: - $ref: '#/components/schemas/String10Chars' - description: The version of the event. attributes: allOf: - $ref: '#/components/schemas/MapOfStringToString' - description:
A collection of key-value pairs that give additional context to the event. The key-value pairs are specified by the developer.
This collection can be empty or the attribute object can be omitted.
metrics: allOf: - $ref: '#/components/schemas/MapOfStringToNumber' - description: 'A collection of key-value pairs that gives additional, measurable context to the event. The key-value pairs are specified by the developer.
This collection can be empty or the attribute object can be omitted.
' description: A JSON object representing a batch of unique event occurrences in your app. BadRequestException: type: object properties: message: allOf: - $ref: '#/components/schemas/String' - description: A text description associated with the BadRequestException object. description: An exception object returned when a request fails. String: type: string Double: type: number format: double String50Chars: type: string minLength: 1 maxLength: 50 ISO8601Timestamp: type: string Session: type: object properties: id: allOf: - $ref: '#/components/schemas/String50Chars' - description: A unique identifier for the session duration: allOf: - $ref: '#/components/schemas/Long' - description: The duration of the session. startTimestamp: allOf: - $ref: '#/components/schemas/ISO8601Timestamp' - description: 'The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z' stopTimestamp: allOf: - $ref: '#/components/schemas/ISO8601Timestamp' - description: 'The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z' description: Describes the session. Session information is required on ALL events. String10Chars: type: string minLength: 1 maxLength: 10 MapOfStringToString: type: object minProperties: 0 maxProperties: 50 additionalProperties: $ref: '#/components/schemas/String0to1000Chars' MapOfStringToNumber: type: object minProperties: 0 maxProperties: 50 additionalProperties: $ref: '#/components/schemas/Double' EventListDefinition: type: array items: $ref: '#/components/schemas/Event' Long: type: integer String0to1000Chars: type: string minLength: 0 maxLength: 1000 PutEventsInput: type: object required: - events title: PutEventsInput properties: events: allOf: - $ref: '#/components/schemas/EventListDefinition' - description: An array of Event JSON objects description: A container for the data needed for a PutEvent operation security: - hmac: []