# Gets the monthly ott metrics asynchronous.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1",
    "title": "Channels API"
  },
  "paths": {
    "/channels/v1/accounts/{accountId}/channels/ottmetrics/year/{year}/month/{month}": {
      "get": {
        "tags": [
          "Channels"
        ],
        "summary": "Gets the monthly ott metrics asynchronous.",
        "operationId": "Channels_GetMonthlyOttMetricsAsync",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "The account identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "year",
            "in": "path",
            "description": "The year.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "month",
            "in": "path",
            "description": "The month.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.Channels.ApiChannelAnalyticsBaseResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.Channels.ApiChannelAnalyticsBaseResponse"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.Channels.ApiChannelAnalyticsBaseResponse"
                }
              },
              "multipart/form-data": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.Channels.ApiChannelAnalyticsBaseResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "components": {
    "schemas": {
      "CM.Platform.Channels.Models.Channels.ApiChannelAnalyticsBaseResponse": {
        "type": "object",
        "properties": {
          "activeBundle": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.Channels.ApiAnalyticsOttMessagesBundle"
          },
          "ottMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.Channels.ApiOttMetrics"
            }
          },
          "ottMetricsRetrievalException": {
            "enum": [
              "API_UNAVAILABLE",
              "API_NO_RESULTS"
            ],
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.Channels.ApiAnalyticsOttMessagesBundle": {
        "required": [
          "bundleType",
          "bundleSpecifics",
          "effectiveOnUtc"
        ],
        "type": "object",
        "properties": {
          "bundleType": {
            "enum": [
              "MAU",
              "CONVERSATIONS",
              "MESSAGES"
            ],
            "type": "string"
          },
          "bundleSpecifics": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.Internal.Analytics.ApiInternalAnalyticsOttMessagesBundleSpecifics"
          },
          "effectiveOnUtc": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.Channels.ApiOttMetrics": {
        "required": [
          "type",
          "typeName",
          "typePrettyName",
          "typeIconClass"
        ],
        "type": "object",
        "properties": {
          "type": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "typeName": {
            "type": "string"
          },
          "typePrettyName": {
            "type": "string"
          },
          "typeIconClass": {
            "type": "string"
          },
          "requestId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "amount": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "CM.Platform.Channels.Models.Internal.Analytics.ApiInternalAnalyticsOttMessagesBundleSpecifics": {
        "type": "object",
        "properties": {
          "dimension": {
            "enum": [
              "PAYASYOUGO",
              "BUNDLE"
            ],
            "type": "string"
          },
          "dimensionValue": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 190,
      "2": 212,
      "3": 166,
      "4": 50,
      "5": 7,
      "6": 123,
      "7": 0,
      "8": 17,
      "9": 137,
      "10": 237,
      "11": 0
    }
  }
}
```