cloudforet-apis
  • README
  • content
    • en
      • Cloudforet API Documentation
      • board
        • _index
        • v1
          • Board
          • Post
          • v1
      • config
        • _index
        • v1
          • DomainConfig
          • PublicConfig
          • UserConfig
          • WorkspaceConfig
          • v1
      • core
        • _index
        • v1
          • Handler
          • Query
          • ServerInfo
          • v1
        • v2
          • Handler
          • Plugin
          • Query
          • v2
      • cost_analysis
        • _index
        • plugin
          • Cost
          • DataSource
          • Job
          • plugin
        • v1
          • Budget
          • BudgetUsage
          • Cost
          • CostQuerySet
          • CostReport
          • CostReportConfig
          • CostReportData
          • CustomWidget
          • DataSource
          • DataSourceAccount
          • DataSourceRule
          • ExchangeRate
          • Job
          • JobTask
          • PublicDashboard
          • Schedule
          • UnifiedCost
          • UserDashboard
          • v1
      • dashboard
        • _index
        • v1
          • CustomWidget
          • Dashboard
          • DomainDashboard
          • PrivateDashboard
          • PrivateDataTable
          • PrivateFolder
          • PrivateWidget
          • ProjectDashboard
          • PublicDashboard
          • PublicDataTable
          • PublicFolder
          • PublicWidget
          • v1
      • file_manager
        • _index
        • v1
          • File
          • PublicFile
          • v1
      • identity
        • _index
        • plugin
          • AccountCollector
          • Auth
          • ExternalAuth
          • plugin
        • v1
          • ApiKey
          • Authorization
          • Domain
          • DomainOwner
          • Endpoint
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • ServiceAccount
          • Token
          • User
          • v1
        • v2
          • Agent
          • ApiKey
          • App
          • Authorization
          • Domain
          • Endpoint
          • ExternalAuth
          • Job
          • Package
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • Schema
          • ServiceAccount
          • System
          • Token
          • TrustedAccount
          • TrustedServiceAccount
          • User
          • UserGroup
          • UserProfile
          • Workspace
          • WorkspaceGroup
          • WorkspaceGroupDetails
          • WorkspaceGroupUser
          • WorkspaceUser
          • v2
      • inventory
        • _index
        • plugin
          • Collector
          • Job
          • plugin
        • v1
          • ChangeHistory
          • CloudService
          • CloudServiceQuerySet
          • CloudServiceReport
          • CloudServiceStats
          • CloudServiceType
          • Collector
          • CollectorRule
          • Job
          • JobTask
          • Metric
          • MetricData
          • MetricExample
          • Namespace
          • Note
          • Region
          • ResourceGroup
          • v1
        • v2
          • Region
          • v2
      • monitoring
        • _index
        • plugin
          • DataSource
          • Event
          • Log
          • Metric
          • Webhook
          • plugin
        • v1
          • Alert
          • DataSource
          • EscalationPolicy
          • Event
          • EventRule
          • Log
          • MaintenanceWindow
          • Metric
          • Note
          • ProjectAlertConfig
          • Webhook
          • v1
      • mzc_service_api
        • _index
        • v1
          • Contract
          • Offering
          • Organization
          • v1
      • notification
        • _index
        • plugin
          • Notification
          • Protocol
          • plugin
        • v1
          • Notification
          • NotificationUsage
          • ProjectChannel
          • Protocol
          • Quota
          • UserChannel
          • v1
      • opsflow
        • _index
        • v1
          • Comment
          • Event
          • Task
          • TaskCategory
          • TaskType
          • v1
      • plugin
        • _index
        • v1
          • Plugin
          • Supervisor
          • v1
      • repository
        • _index
        • v1
          • DashboardTemplate
          • Plugin
          • Policy
          • Repository
          • Schema
          • v1
        • v2
          • Common
          • Provider
          • RemoteRepository
          • Schema
          • v2
      • sample
        • _index
        • v1
          • Helloworld
          • v1
      • search
        • _index
        • v1
          • Resource
          • v1
      • secret
        • _index
        • v1
          • Secret
          • SecretGroup
          • TrustedSecret
          • UserSecret
          • v1
      • statistics
        • _index
        • plugin
          • Storage
          • plugin
        • v1
          • History
          • Resource
          • Schedule
          • Storage
          • v1
Powered by GitBook
On this page
  • Event
  • create
  • get
  • list
  • stat
  • Message
  • CreateEventRequest
  • EventInfo
  • EventQuery
  • EventRequest
  • EventStatQuery
  • EventsInfo
  1. content
  2. en
  3. monitoring
  4. v1

Event

An Event is an alarm raised by an external monitoring system and collected by a Cloudforet plugin.

Package : spaceone.api.monitoring.v1

Event

Event Methods:

Method
Request
Response

create

Creates a new Event. The Event creation process starts with validation checking whether the input data is from a webhook or not. After the input data is validated, the data is processed and used to create the Event.

get

Gets a specific Event matching the input parameters, event_id and domain_id. Prints detailed information about the Event.

POST /monitoring/v1/event/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • event_id (string) Required

{{< highlight json >}} { "event_id": "event-4e16ba3bd384", } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • event_id (string) Required

  • event_key (string) Required

  • event_type (string) Required

  • title (string) Required

  • description (string) Required

  • severity (string) Required

  • rule (string) Required

  • image_url (string) Required

  • resources (string) Repeated Required

  • provider (string) Required

  • account (string) Required

  • additional_info (Struct) Required

  • raw_data (Struct) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • alert_id (string) Required

  • webhook_id (string) Required

  • created_at (string) Required

  • occurred_at (string) Required

{{< highlight json >}} { "event_id": "event-4e16ba3bd384", "event_key": "cfbdd0cee08f0f2664dbef297c370017", "event_type": "ALERT", "title": "Notification of access to the SpaceONE bastion Host", "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm", "severity": "INFO", "resource": { "resource_id": "server-1187737cc0d9", "resource_type": "inventory.Server", "name": "stargate-dev-kubectl-amzl2" }, "raw_data": { "resource": { "name": "stargate-dev-kubectl-amzl2", "resource_id": "server-1187737cc0d9", "resource_type": "inventory.Server" }, "event_key": "cfbdd0cee08f0f2664dbef297c370017", "title": "Notification of access to the SpaceONE bastion Host", "severity": "INFO", "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm", "event_type": "ALERT", "additional_info": { "host": [], "user": "spaceoneadm" } }, "additional_info": { "host": "[]", "user": "spaceoneadm" }, "alert_id": "alert-06462f6cb54e", "webhook_id": "webhook-ff9e2eda678a", "project_id": "project-18655561c535", "domain_id": "domain-58010aa2e451", "created_at": "2022-06-21T00:34:58.034Z" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

Gets a list of all Events. You must specify the domain_id. You can use a query to get a filtered list of Events.

POST /monitoring/v1/event/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • query (Query)

  • event_id (string)

  • event_key (string)

  • event_type (string)

  • severity (string)

  • resource (string)

  • provider (string)

  • account (string)

  • workspace_id (string)

  • project_id (string)

  • alert_id (string)

  • webhook_id (string)

{{< highlight json >}} { "query": {}, "domain_id": "domain-58010aa2e451" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • results (EventInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "results": [ { "event_id": "event-4e16ba3bd384", "event_key": "cfbdd0cee08f0f2664dbef297c370017", "event_type": "ALERT", "title": "Notification of access to the SpaceONE bastion Host", "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm", "severity": "INFO", "resource": { "resource_id": "server-1187737cc0d9", "resource_type": "inventory.Server", "name": "stargate-dev-kubectl-amzl2" }, "raw_data": { "resource": { "name": "stargate-dev-kubectl-amzl2", "resource_type": "inventory.Server", "resource_id": "server-1187737cc0d9" }, "event_key": "cfbdd0cee08f0f2664dbef297c370017", "additional_info": { "user": "spaceoneadm", "host": [] }, "severity": "INFO", "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm", "title": "Notification of access to the SpaceONE bastion Host", "event_type": "ALERT" }, "additional_info": { "user": "spaceoneadm", "host": "[]" }, "alert_id": "alert-06462f6cb54e", "webhook_id": "webhook-ff9e2eda678a", "project_id": "project-18655561c535", "domain_id": "domain-58010aa2e451", "created_at": "2022-06-21T00:34:58.034Z" }, { "event_id": "event-b178e1b71daf", "event_key": "abc16e5455c26ab7611bf8aa8d1020cc", "event_type": "ALERT", "title": "Notification of access to the SpaceONE bastion Host", "description": "SSH Access to stargate-dev-kubectl-amzl2 from glee@mz.co.kr", "severity": "INFO", "resource": { "resource_id": "server-1187737cc0d9", "resource_type": "inventory.Server", "name": "stargate-dev-kubectl-amzl2" }, "raw_data": { "additional_info": { "host": [ "125.131.104.40" ], "user": "glee@mz.co.kr" }, "description": "SSH Access to stargate-dev-kubectl-amzl2 from glee@mz.co.kr", "severity": "INFO", "event_type": "ALERT", "title": "Notification of access to the SpaceONE bastion Host", "resource": { "resource_type": "inventory.Server", "name": "stargate-dev-kubectl-amzl2", "resource_id": "server-1187737cc0d9" }, "event_key": "abc16e5455c26ab7611bf8aa8d1020cc" }, "additional_info": { "user": "glee@mz.co.kr", "host": "['125.131.104.40']" }, "alert_id": "alert-332617cf2894", "webhook_id": "webhook-ff9e2eda678a", "project_id": "project-18655561c535", "domain_id": "domain-58010aa2e451", "created_at": "2022-06-21T00:34:52.822Z" } ], "total_count": 2 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /monitoring/v1/event/stat

Message

CreateEventRequest

  • webhook_id (string) Required

  • access_key (string) Required

  • data (Struct) Required

EventInfo

  • event_id (string) Required

  • event_key (string) Required

  • event_type (string) Required

  • title (string) Required

  • description (string) Required

  • severity (string) Required

  • rule (string) Required

  • image_url (string) Required

  • resources (string) Repeated Required

  • provider (string) Required

  • account (string) Required

  • additional_info (Struct) Required

  • raw_data (Struct) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • alert_id (string) Required

  • webhook_id (string) Required

  • created_at (string) Required

  • occurred_at (string) Required

EventQuery

  • query (Query)

  • event_id (string)

  • event_key (string)

  • event_type (string)

  • severity (string)

  • resource (string)

  • provider (string)

  • account (string)

  • workspace_id (string)

  • project_id (string)

  • alert_id (string)

  • webhook_id (string)

EventRequest

  • event_id (string) Required

EventStatQuery

  • query (StatisticsQuery) Required

EventsInfo

  • results (EventInfo) Repeated Required

  • total_count (int32) Required

PreviousEscalationPolicyNextEventRule

Last updated 9 months ago

EventRequest
EventQuery
EventInfo
EventsInfo
create
CreateEventRequest
Empty
get
EventRequest
EventInfo
list
EventQuery
EventsInfo
stat
EventStatQuery
Struct