Alert Episode State Timeline
Change state of the alert episodes (Created to Acknowledged for example)
Модель Alert Episode State Timeline
Свойства
- Имя
_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)
- Имя
alertState- Тип
- Alert State
- Описание
Alert State Relation. Which alert state does this episode change to?
- Имя
alertStateId- Тип
- Object IDОбязательно
- Описание
Alert State ID Relation. Which alert state does this episode change to?
- Имя
isOwnerNotified- Тип
- BooleanОбязательно
- Описание
Are owners notified of state change?
- Имя
stateChangeLog- Тип
- JSON
- Описание
- Имя
rootCause- Тип
- Markdown
- Описание
What is the root cause of this status change?
- Имя
endsAt- Тип
- Date
- Описание
When did this status change end?
- Имя
startsAt- Тип
- Date
- Описание
When did this status change?
/api/alert-episode-state-timeline/get-listСписок
Этот метод возвращает постраничный список ваших объектов «Alert Episode State Timeline». По умолчанию на странице до десяти записей.
Необязательные query-параметры
limit- число
- Сколько объектов вернуть. По умолчанию 10, максимум 100
skip- число
- Сколько объектов пропустить (для пагинации)
Необязательное тело запроса
query- Чтобы фильтровать Alert Episode State Timeline, укажите запрос здесь. Подробнее: написание запросов.
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
sort- По умолчанию сортировка по дате создания. Порядок можно изменить — см. раздел «Сортировка» в типах данных.
Запрос списка
POST/api/alert-episode-state-timeline/get-list?skip=0&limit=10Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"alertEpisodeId": true,
"alertStateId": true,
"isOwnerNotified": true,
"projectId": true,
"_id": true
},
"query": {},
"sort": {
"createdAt": -1
}
}Ответ
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "376b9e40-28fe-11f1-b591-3fdcef396aba",
"alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
"alertStateId": "550e8400-e29b-41d4-a716-446655440000",
"isOwnerNotified": true,
"projectId": "550e8400-e29b-41d4-a716-446655440000"
},
{
"_id": "376b9e41-28fe-11f1-b591-3fdcef396aba",
"alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
"alertStateId": "550e8400-e29b-41d4-a716-446655440000",
"isOwnerNotified": true,
"projectId": "550e8400-e29b-41d4-a716-446655440000"
},
{
"_id": "376b9e42-28fe-11f1-b591-3fdcef396aba",
"alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
"alertStateId": "550e8400-e29b-41d4-a716-446655440000",
"isOwnerNotified": true,
"projectId": "550e8400-e29b-41d4-a716-446655440000"
}
]
}/api/alert-episode-state-timeline/:id/get-itemПолучить по ID
Возвращает объект «Alert Episode State Timeline» по идентификатору.
id- строка
- ID объекта
Необязательное тело запроса
select- По умолчанию возвращается только ID; для других полей используйте select. Подробнее: как выбирать поля.
Запрос одного объекта
POST/api/alert-episode-state-timeline/:id/get-itemContent-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"alertEpisodeId": true,
"alertStateId": true,
"isOwnerNotified": true,
"projectId": true,
"_id": true
}
}Ответ
{
"_id": "550e8400-e29b-41d4-a716-446655440000",
"alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
"alertStateId": "550e8400-e29b-41d4-a716-446655440000",
"isOwnerNotified": true,
"projectId": "550e8400-e29b-41d4-a716-446655440000"
}/api/alert-episode-state-timeline/countКоличество
Возвращает количество ваших объектов «Alert Episode State Timeline».
Необязательное тело запроса
query- Чтобы фильтровать Alert Episode State Timeline, укажите запрос здесь. Подробнее: написание запросов.
Запрос количества
POST/api/alert-episode-state-timeline/countContent-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {}
}Ответ
{
"count": 107
}/api/alert-episode-state-timelineСоздать Alert Episode State Timeline
Создаёт новый объект.
Запрос создания
POST/api/alert-episode-state-timelineContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
"alertStateId": "550e8400-e29b-41d4-a716-446655440000",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"alertEpisode": "Example alert episode",
"alertState": "Example alert state"
}
}Ответ
{
"_id": "550e8400-e29b-41d4-a716-446655440000",
"alertEpisodeId": "550e8400-e29b-41d4-a716-446655440000",
"alertStateId": "550e8400-e29b-41d4-a716-446655440000",
"isOwnerNotified": true,
"projectId": "550e8400-e29b-41d4-a716-446655440000"
}/api/alert-episode-state-timeline/:idОбновить по ID
Обновляет объект по ID.
Альтернативные методы
Если клиент не поддерживает PUT, используйте POST или GET с теми же заголовками и телом:
Запрос обновления
PUT/api/alert-episode-state-timeline/:idContent-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"alertStateId": "550e8400-e29b-41d4-a716-446655440000",
"alertState": "Example alert state"
}
}Ответ
{}/api/alert-episode-state-timeline/:idУдалить по ID
Удаляет объект по ID.
Альтернативные методы
Если клиент не поддерживает DELETE, используйте POST или GET с теми же заголовками и телом:
Запрос удаления
DELETE/api/alert-episode-state-timeline/:idContent-Type: application/json ApiKey: YOUR_API_KEY
Ответ
{}Права доступа
Для операций с ресурсом у ключа API должны быть права. При их отсутствии вернётся ответ 4xx.
Права на чтение
Нужны для чтения Alert Episode State Timeline
Project OwnerProject AdminProject MemberRead Alert Episode State TimelineRead All Project Resources
Права на создание
Нужны для создания Alert Episode State Timeline
Project OwnerProject AdminProject MemberCreate Alert Episode State Timeline
Права на обновление
Нужны для обновления Alert Episode State Timeline
Project OwnerProject AdminProject MemberEdit Alert Episode State Timeline
Права на удаление
Нужны для удаления Alert Episode State Timeline
Project OwnerProject AdminProject MemberDelete Alert Episode State Timeline