Ресурс

Alert Episode Internal Note

Manage internal notes for your alert episodes

Модель Alert Episode Internal Note

Свойства

  • Имя
    _id
    Тип
    Object ID
    Описание

    ID of this object

  • Имя
    createdAt
    Тип
    Date
    Описание

    Date and Time when the object was created.

  • Имя
    updatedAt
    Тип
    Date
    Описание

    Date and Time when the object was updated.

  • Имя
    project
    Тип
    Project
    Описание

    Relation to Project Resource in which this object belongs

  • Имя
    projectId
    Тип
    Object IDОбязательно
    Описание

    ID of your Project in which this object belongs

  • Имя
    alertEpisode
    Тип
    Alert Episode
    Описание

    Relation to Alert Episode in which this resource belongs

  • Имя
    alertEpisodeId
    Тип
    Object IDОбязательно
    Описание

    Relation to Alert Episode ID in which this resource belongs

  • Имя
    createdByUser
    Тип
    User
    Описание

    Relation to User who created this object (if this object was created by a User)

  • Имя
    createdByUserId
    Тип
    Object ID
    Описание

    User ID who created this object (if this object was created by a User)

  • Имя
    note
    Тип
    Markdown
    Описание

    Notes in markdown

  • Имя
    attachments
    Тип
    File
    Описание

    Files attached to this note

  • Имя
    isOwnerNotified
    Тип
    BooleanОбязательно
    Описание

    Are owners notified of this resource ownership?

  • Имя
    postedFromSlackMessageId
    Тип
    Long Text
    Описание

    Unique identifier for the Slack message this note was created from (channel_id:message_ts). Used to prevent duplicate notes when multiple users react to the same message.

GETorPOST/api/alert-episode-internal-note/get-list

Список

Этот метод возвращает постраничный список ваших объектов «Alert Episode Internal Note». По умолчанию на странице до десяти записей.

Необязательные query-параметры

  • limit
    число
    Сколько объектов вернуть. По умолчанию 10, максимум 100
  • skip
    число
    Сколько объектов пропустить (для пагинации)

Необязательное тело запроса

Запрос списка

POST
/api/alert-episode-internal-note/get-list?skip=0&limit=10
Заголовки
Content-Type: application/json
ApiKey: YOUR_API_KEY
Тело
{
  "select": {
    "postedFromSlackMessageId": true,
    "alertEpisodeId": true,
    "isOwnerNotified": true,
    "projectId": true,
    "_id": true
  },
  "query": {
    "postedFromSlackMessageId": "C1234567890:1234567890.123456"
  },
  "sort": {
    "createdAt": -1
  }
}

Ответ

{
  "count": 10,
  "limit": 10,
  "skip": 0,
  "data": [
    {
      "_id": "376b5020-28fe-11f1-b591-3fdcef396aba",
      "postedFromSlackMessageId": "C1234567890:1234567890.123456",
      "alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
      "isOwnerNotified": true,
      "projectId": "550e8400-e29b-41d4-a716-446655440000"
    },
    {
      "_id": "376b5021-28fe-11f1-b591-3fdcef396aba",
      "postedFromSlackMessageId": "C1234567890:1234567890.123456",
      "alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
      "isOwnerNotified": true,
      "projectId": "550e8400-e29b-41d4-a716-446655440000"
    },
    {
      "_id": "376b5022-28fe-11f1-b591-3fdcef396aba",
      "postedFromSlackMessageId": "C1234567890:1234567890.123456",
      "alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
      "isOwnerNotified": true,
      "projectId": "550e8400-e29b-41d4-a716-446655440000"
    }
  ]
}
GETorPOST/api/alert-episode-internal-note/:id/get-item

Получить по ID

Возвращает объект «Alert Episode Internal Note» по идентификатору.

  • id
    строка
    ID объекта

Необязательное тело запроса

  • select
    По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.

Запрос одного объекта

POST
/api/alert-episode-internal-note/:id/get-item
Заголовки
Content-Type: application/json
ApiKey: YOUR_API_KEY
Тело
{
  "select": {
    "postedFromSlackMessageId": true,
    "alertEpisodeId": true,
    "isOwnerNotified": true,
    "projectId": true,
    "_id": true
  }
}

Ответ

{
  "_id": "550e8400-e29b-41d4-a716-446655440000",
  "postedFromSlackMessageId": "C1234567890:1234567890.123456",
  "alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
  "isOwnerNotified": true,
  "projectId": "550e8400-e29b-41d4-a716-446655440000"
}
POST/api/alert-episode-internal-note/count

Количество

Возвращает количество ваших объектов «Alert Episode Internal Note».

Необязательное тело запроса

Запрос количества

POST
/api/alert-episode-internal-note/count
Заголовки
Content-Type: application/json
ApiKey: YOUR_API_KEY
Тело
{
  "query": {
    "postedFromSlackMessageId": "C1234567890:1234567890.123456"
  }
}

Ответ

{
  "count": 107
}
POST/api/alert-episode-internal-note

Создать Alert Episode Internal Note

Создаёт новый объект.

Запрос создания

POST
/api/alert-episode-internal-note
Заголовки
Content-Type: application/json
ApiKey: YOUR_API_KEY
Тело
{
  "data": {
    "postedFromSlackMessageId": "C1234567890:1234567890.123456",
    "alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
    "projectId": "550e8400-e29b-41d4-a716-446655440000",
    "alertEpisode": "Example alert episode",
    "attachments": []
  }
}

Ответ

{
  "_id": "550e8400-e29b-41d4-a716-446655440000",
  "postedFromSlackMessageId": "C1234567890:1234567890.123456",
  "alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
  "isOwnerNotified": true,
  "projectId": "550e8400-e29b-41d4-a716-446655440000"
}
PUT/api/alert-episode-internal-note/:id

Обновить по ID

Обновляет объект по ID.

Альтернативные методы

Если клиент не поддерживает PUT, используйте POST или GET с теми же заголовками и телом:

POST/api/alert-episode-internal-note/:id/update-item
GET/api/alert-episode-internal-note/:id/update-item

Запрос обновления

PUT
/api/alert-episode-internal-note/:id
Заголовки
Content-Type: application/json
ApiKey: YOUR_API_KEY
Тело
{
  "data": {
    "attachments": [],
    "note": "Example note content"
  }
}

Ответ

{}
DELETE/api/alert-episode-internal-note/:id

Удалить по ID

Удаляет объект по ID.

Альтернативные методы

Если клиент не поддерживает DELETE, используйте POST или GET с теми же заголовками и телом:

POST/api/alert-episode-internal-note/:id/delete-item
GET/api/alert-episode-internal-note/:id/delete-item

Запрос удаления

DELETE
/api/alert-episode-internal-note/:id
Заголовки
Content-Type: application/json
ApiKey: YOUR_API_KEY

Ответ

{}

Права доступа

Для операций с ресурсом у ключа API должны быть права. При их отсутствии вернётся ответ 4xx.

Права на чтение

Нужны для чтения Alert Episode Internal Note

  • Project Owner
  • Project Admin
  • Project Member
  • Read Alert Episode Internal Note
  • Read All Project Resources

Права на создание

Нужны для создания Alert Episode Internal Note

  • Project Owner
  • Project Admin
  • Project Member
  • Create Alert Episode Internal Note

Права на обновление

Нужны для обновления Alert Episode Internal Note

  • Project Owner
  • Project Admin
  • Project Member
  • Edit Alert Episode Internal Note

Права на удаление

Нужны для удаления Alert Episode Internal Note

  • Project Owner
  • Project Admin
  • Project Member
  • Delete Alert Episode Internal Note