AI Rule
Which new incidents or alerts OneUptime AI investigates and fixes, and how. A rule investigates what it matches (right away, or only if still open after a wait), and fixes it or not, asking first or not. A fix may run the project's runbooks (only the rule's, when it names some), Bash commands on a Runner the rule picks, the tools of the project's external MCP servers (only the rule's, when it names some), and open fix and telemetry pull requests in the project's code repositories (only the rule's, when it names some). With no rule, OneUptime AI investigates every one, and fixes every one while automatic fixing is on. These were auto remediation rules, and investigation rules are AI rules now too.
Le modèle AI Rule
Propriétés
-
- Nom
_id- Type
- Object ID
- Description
-
ID of this object
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
createdAt- Type
- Date
- Description
-
Date and Time when the object was created.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
updatedAt- Type
- Date
- Description
-
Date and Time when the object was updated.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
criteria- Type
- JSON
- Description
-
Versioned conditions that determine whether this rule matches a resource.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
project- Type
- Project
- Description
-
Relation to Project Resource in which this object belongs
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : Mise à jour impossible
-
- Nom
projectId- Type
- Object ID Obligatoire
- Description
-
ID of your OneUptime Project in which this object belongs
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : Mise à jour impossible
-
- Nom
name- Type
- Text Obligatoire
- Description
-
Name of this AI rule.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
description- Type
- Long Text
- Description
-
Description of this AI rule.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
isEnabled- Type
- Boolean Obligatoire
- Description
-
Whether this rule is enabled.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
triggerEntityType- Type
- Text Obligatoire
- Description
-
Which kind of new signal this rule decides about: Incident or Alert.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : Mise à jour impossible
-
- Nom
investigates- Type
- Boolean Obligatoire
- Description
-
Whether OneUptime AI investigates the incidents or alerts this rule matches. With enabled rules that investigate, only their matches are investigated. Off, the rule only fixes, and does not change which incidents are investigated. The dashboard turns it on for every rule; left out of an API write, it is off.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
onlyIfOpenAfterMinutes- Type
- Number
- Description
-
Investigate only incidents or alerts still open this many minutes after they were created: OneUptime AI waits that long, then investigates if it is still open. Leave empty to investigate right away. When several rules match, the shortest wait decides. At most 1440 minutes (a day).
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
fixes- Type
- Boolean Obligatoire
- Description
-
Whether OneUptime AI fixes the incidents or alerts this rule matches, the way its Execution Mode says. Off, the rule only investigates them. With enabled rules, an incident is fixed only when a rule that fixes matches it. On by default.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
executionMode- Type
- Text Obligatoire
- Description
-
How a rule that fixes asks. Suggest asks before fixing: every fix the rule starts waits for one-click human approval. FullAuto fixes without asking: OneUptime AI fixes on its own where the cluster's or resource's AI agent page allows, a runbook it picks from the ones the rule names starts right away (one it picks from all of the project's runbooks still waits for approval), a change through an MCP server the rule names is made right away (through any of the project's MCP servers, it still waits for approval), and a rule that runs its runbooks every time starts them immediately.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
remediationAction- Type
- Text Obligatoire
- Description
-
OneUptimeAI (the default): OneUptime AI fixes the matched incident or alert - on the Kubernetes clusters and infrastructure it is linked to, the way each one's AI agent page allows, with the project's runbooks (only the rule's Runbooks when it names some) and with commands on the rule's Runner when it picks one. Runbooks: the rule starts every one of its Runbooks for every match, without OneUptime AI deciding. Whether a person approves first is the rule's Execution Mode.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
aiSelectsRunbook- Type
- Boolean Obligatoire
- Description
-
Kept for rules saved before rules were simplified: an AI planning run reads the incident/alert context and picks the most applicable runbook (from the attached candidates, or all enabled runbooks when none are attached), always proposing it for approval, and the rule does nothing else. Every OneUptime AI rule now lets AI pick a runbook on its own, so new rules leave this off.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
aiComposesCommands- Type
- Boolean Obligatoire
- Description
-
Kept for rules saved before rules were simplified: the AI investigates the incident/alert and composes Bash commands for the rule's Runner and Command Runners, and the rule does nothing else. Suggest mode proposes a command plan for one-click approval; FullAuto mode may execute commands inline, but only ones matching the command allowlist. A OneUptime AI rule now composes commands on its Runner when it picks one, so new rules leave this off.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
commandAllowlist- Type
- JSON
- Description
-
Glob patterns for commands the AI may execute WITHOUT human approval under FullAuto (for example: systemctl restart *). Commands that do not match are proposed for one-click approval instead. Destructive commands are always refused by the built-in policy.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
commandRunners- Type
- Runner
- Description
-
Kept for rules saved before rules were simplified: more Runners the AI may target with composed commands, besides the rule's Runner. A Runner runs a rule's commands only when the rule names it.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
monitors- Type
- Monitor
- Description
-
Only trigger for incidents/alerts from these monitors. Leave empty to match any monitor.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
incidentSeverities- Type
- Incident Severity
- Description
-
Only trigger for incidents with these severities (incident rules only). Leave empty to match any severity.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
alertSeverities- Type
- Alert Severity
- Description
-
Only trigger for alerts with these severities (alert rules only). Leave empty to match any severity.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
labels- Type
- Label
- Description
-
Only trigger for incidents/alerts that carry at least one of these labels. Leave empty to match any label.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
monitorLabels- Type
- Label
- Description
-
Only trigger when the incident/alert's monitor carries at least one of these labels — the natural way to scope rules to environments (e.g. staging vs production). Leave empty to match any monitor label.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
titlePattern- Type
- Long Text
- Description
-
Case-insensitive regex matched against the entity's title. Leave empty to match any title.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
descriptionPattern- Type
- Long Text
- Description
-
Case-insensitive regex matched against the entity's description. Leave empty to match any description.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
runbooks- Type
- Runbook
- Description
-
The runbooks OneUptime AI may pick and run for this rule. Leave empty to let it pick any of the project's runbooks. A rule whose Fix With is Runbooks starts every one of them for every match instead.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
externalMcpServers- Type
- External MCP Server
- Description
-
The external MCP servers OneUptime AI may use while it investigates and fixes what this rule matches (an investigation uses only their tools that read). Leave empty to let it use all of the project's MCP servers; changes through them are then always proposed for approval first.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
runner- Type
- Runner
- Description
-
The Runner OneUptime AI runs this rule's Bash commands on, inside your network. Empty means none: OneUptime AI runs no commands of its own for the rule. Commands on the affected Kubernetes cluster or host always go through its AI agent.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
runnerId- Type
- Object ID
- Description
-
ID of the Runner OneUptime AI runs this rule's Bash commands on: one of the project's own Runners. Empty means none: OneUptime AI runs no commands of its own for the rule. Commands on the affected Kubernetes cluster or host always go through its AI agent.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
codeRepositories- Type
- Code Repository
- Description
-
The code repositories OneUptime AI may read while it investigates and fixes what this rule matches, and open the rule's pull requests in. Leave empty to let it use every repository the project has connected.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
llmProvider- Type
- LLM Provider
- Description
-
The LLM provider OneUptime AI uses for everything this rule starts: one of the project's providers or a global one. Empty: the project's default provider, else the global one.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
llmProviderId- Type
- Object ID
- Description
-
ID of the LLM provider OneUptime AI uses for everything this rule starts. Empty: the project's default provider, else the global one.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
openCodeFixPullRequests- Type
- Boolean Obligatoire
- Description
-
When an investigation of an incident or alert this rule matches finds the cause in your code, OneUptime AI opens a pull request with the fix, for review. Nothing is merged. Acts only while fixing new incidents (or alerts) automatically is on. On by default.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
openTelemetryPullRequests- Type
- Boolean Obligatoire
- Description
-
When missing logs, traces or metrics stop an investigation of an incident or alert this rule matches, OneUptime AI opens a pull request that adds them, for review. Nothing is merged. Acts only while fixing new incidents (or alerts) automatically is on. On by default.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
verificationWindowMinutes- Type
- Number
- Description
-
How long after the runbook starts the subject's monitors get to recover before verification fails. Defaults to 15 minutes.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
autoResolveOnVerifiedRecovery- Type
- Boolean Obligatoire
- Description
-
When verification confirms the monitors recovered inside the window, automatically resolve the incident/alert. Off by default — the timeline note is posted either way.
-
Création : ProjectOwner ou ProjectAdmin ou CreateAutoRemediationRuleLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : ProjectOwner ou ProjectAdmin ou EditAutoRemediationRule
-
- Nom
createdByUser- Type
- User
- Description
-
Relation to User who created this object (if this object was created by a User)
-
Création : Généré automatiquementLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : Mise à jour impossible
-
- Nom
createdByUserId- Type
- Object ID
- Description
-
User ID who created this object.
-
Création : Généré automatiquementLecture : ProjectOwner ou ProjectAdmin ou ProjectMember ou Viewer ou ReadAutoRemediationRuleMise à jour : Mise à jour impossible
/api/auto-remediation-rule/get-list
Liste
Ce point de terminaison vous permet de récupérer une liste paginée de tous vos AI Rule. Par défaut, un maximum de dix AI Rule sont affichés par page.
Paramètres de requête facultatifs
-
- Limit
limit- Type
- number
- Description
- Nombre d'objets à récupérer. Par défaut 10, vous pouvez augmenter ce nombre jusqu'à 100
-
- Skip
skip- Type
- number
- Description
- Nombre d'objets à ignorer. Cela peut être utile dans le cadre de la pagination
Corps de requête facultatif
-
- Query
query- Type
- query
- Description
- Si vous souhaitez filtrer sur AI Rule. Vous pouvez préciser une requête ici. Pour plus d'informations, veuillez consulter la rédaction des requêtes ici.
-
- Select
select- Type
- select
- Description
- Par défaut, vous ne récupérerez que l'ID des objets ; pour récupérer davantage de champs, vous devez les sélectionner. Pour plus d'informations, veuillez consulter ici comment effectuer une sélection.
-
- Sort
sort- Type
- sort
- Description
- Les objets seront triés par défaut en fonction de leur date de création. Vous pouvez modifier l'ordre de tri en passant veuillez consulter ici comment effectuer une sélection.
Requête List
POST/api/auto-remediation-rule/get-list?skip=0&limit=10
Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": true
},
"query": {
"executionMode": "Example execution mode"
},
"sort": {
"createdAt": -1
}
}
Réponse
{
"count": 10,
"limit": 10,
"skip": 0,
"data": [
{
"_id": "8412c20b-638a-4359-8efe-a3b3f5502a48",
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": 10
},
{
"_id": "315ae4fc-7b6d-4db9-ae4a-c4456cc46bcf",
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": 10
},
{
"_id": "428dfbfe-af18-4174-b13e-434eb58173d8",
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": 10
}
]
}
/api/auto-remediation-rule/:id/get-item
Obtenir un élément par ID
Ce point de terminaison vous permet de récupérer AI Rule par ID.
Paramètres de requête obligatoires
-
- ID
id- Type
- text
- Description
- ID de l'objet
Corps de requête facultatif
-
- Select
select- Type
- select
- Description
- Par défaut, vous ne récupérerez que l'ID des objets ; pour récupérer davantage de champs, vous devez les sélectionner. Pour plus d'informations, veuillez consulter ici comment effectuer une sélection.
Requête Get Item
POST/api/auto-remediation-rule/:id/get-item
Content-Type: application/json ApiKey: YOUR_API_KEY
{
"select": {
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": true
}
}
Réponse
{
"_id": "8412c20b-638a-4359-8efe-a3b3f5502a48",
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": 10
}
/api/auto-remediation-rule/count
Comptage
Ce point de terminaison vous permet de récupérer le nombre total de tous vos AI Rule.
Corps de requête facultatif
-
- Query
query- Type
- query
- Description
- Si vous souhaitez filtrer sur AI Rule. Vous pouvez préciser une requête ici. Pour plus d'informations, veuillez consulter la rédaction des requêtes ici.
Requête Count
POST/api/auto-remediation-rule/count
Content-Type: application/json ApiKey: YOUR_API_KEY
{
"query": {
"executionMode": "Example execution mode"
}
}
Réponse
{
"count": 107
}
/api/auto-remediation-rule
Créer AI Rule
Ce point de terminaison vous permet de créer un nouvel objet.
Corps de la requête
-
- Data
data- Type
- JSON
- Description
- Objet à créer au format JSON
Requête Create
POST/api/auto-remediation-rule
Content-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": 10
}
}
Réponse
{
"_id": "8412c20b-638a-4359-8efe-a3b3f5502a48",
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true,
"openTelemetryPullRequests": true,
"onlyIfOpenAfterMinutes": 10
}
/api/auto-remediation-rule/:id
Mettre à jour par ID
Ce point de terminaison vous permet de mettre à jour un objet par son ID.
Corps de la requête
-
- Data
data- Type
- JSON
- Description
- Objet à mettre à jour au format JSON
Méthodes alternatives
Pour les clients qui ne prennent pas en charge les requêtes PUT, vous pouvez utiliser POST ou GET avec les mêmes en-têtes de requête et le même corps :
/api/auto-remediation-rule/:id/update-item
Requête Update
PUT/api/auto-remediation-rule/:id
Content-Type: application/json ApiKey: YOUR_API_KEY
{
"data": {
"fixes": true,
"investigates": true,
"openCodeFixPullRequests": true
}
}
Réponse
{}
/api/auto-remediation-rule/:id
Supprimer par ID
Ce point de terminaison vous permet de supprimer un objet par son ID.
Méthodes alternatives
Pour les clients qui ne prennent pas en charge les requêtes DELETE, vous pouvez utiliser POST ou GET avec les mêmes en-têtes de requête et le même corps :
/api/auto-remediation-rule/:id/delete-item
Requête Delete
DELETE/api/auto-remediation-rule/:id
Content-Type: application/json ApiKey: YOUR_API_KEY
Réponse
{}
Autorisations
Votre jeton API a besoin d'autorisations pour créer, mettre à jour, lire ou supprimer cette ressource. Si vous ne disposez pas des autorisations nécessaires pour effectuer une requête, un statut 4xx sera renvoyé en réponse.
Autorisations de lecture
Requises pour lire AI Rule
-
ProjectOwner- Project Owner
- Owner of this project. Does everything Project Admin does, and also manages billing and payment methods, sets up SCIM, and can delete the project.
-
ProjectAdmin- Project Admin
- Admin of this project. Creates, changes and deletes everything in it, including team members and their permissions, API keys, labels, SSO, rules and custom fields, and reads the audit log. Cannot manage billing, set up SCIM or delete the project.
-
ProjectMember- Project Member
- Member of this project. Creates, changes and deletes monitors, incidents, alerts, status pages, on-call policies, scheduled maintenance, services and infrastructure, and runs runbooks. Project settings take Project Admin: team members and permissions, API keys, labels, SSO, rules, custom fields, states, secrets, dashboards, SLOs, and changing workflows and runbooks. Does not see API keys, the audit log, invoices, secrets, session replays or security data.
-
Viewer- Viewer
- Reads the project's resources and changes nothing. Does not see API keys, the audit log, invoices, secrets, session replays, security data, or AI conversations, insights and remediation suggestions.
-
ReadAutoRemediationRule- Read AI Rule
- This permission can read AI Rules in this project.
Autorisations de création
Requises pour créer AI Rule
-
ProjectOwner- Project Owner
- Owner of this project. Does everything Project Admin does, and also manages billing and payment methods, sets up SCIM, and can delete the project.
-
ProjectAdmin- Project Admin
- Admin of this project. Creates, changes and deletes everything in it, including team members and their permissions, API keys, labels, SSO, rules and custom fields, and reads the audit log. Cannot manage billing, set up SCIM or delete the project.
-
CreateAutoRemediationRule- Create AI Rule
- This permission can create AI Rules in this project: which incidents and alerts OneUptime AI investigates and fixes.
Autorisations de mise à jour
Requises pour mettre à jour AI Rule
-
ProjectOwner- Project Owner
- Owner of this project. Does everything Project Admin does, and also manages billing and payment methods, sets up SCIM, and can delete the project.
-
ProjectAdmin- Project Admin
- Admin of this project. Creates, changes and deletes everything in it, including team members and their permissions, API keys, labels, SSO, rules and custom fields, and reads the audit log. Cannot manage billing, set up SCIM or delete the project.
-
EditAutoRemediationRule- Edit AI Rule
- This permission can edit AI Rules in this project.
Autorisations de suppression
Requises pour supprimer AI Rule
-
ProjectOwner- Project Owner
- Owner of this project. Does everything Project Admin does, and also manages billing and payment methods, sets up SCIM, and can delete the project.
-
ProjectAdmin- Project Admin
- Admin of this project. Creates, changes and deletes everything in it, including team members and their permissions, API keys, labels, SSO, rules and custom fields, and reads the audit log. Cannot manage billing, set up SCIM or delete the project.
-
DeleteAutoRemediationRule- Delete AI Rule
- This permission can delete AI Rules in this project.