SpaceONE APIs
Latest Version
Latest Version
  • README
  • Board
    • V1
      • Board
      • Post
  • Config
    • V1
      • Domain Config
      • User Config
  • Core
    • V1
      • Handler
      • Query
      • Server Info
  • Cost Analysis
    • Plugin
      • Cost
      • Data Source
      • Job
    • V1
      • Budget
      • Budget Usage
      • Cost
      • Cost Query Set
      • Custom Widget
      • Data Source
      • Data Source Rule
      • Exchange Rate
      • Job
      • Job Task
      • Public Dashboard
      • Schedule
      • User Dashboard
  • Identity
    • Plugin
      • Auth
    • V1
      • Api Key
      • Authorization
      • Domain
      • Domain Owner
      • Endpoint
      • Policy
      • Project
      • Project Group
      • Provider
      • Role
      • Role Binding
      • Service Account
      • Token
      • User
  • Inventory
    • Plugin
      • Collector
    • V1
      • Change History
      • Cloud Service
      • Cloud Service Type
      • Collector
      • Job
      • Job Task
      • Note
      • Region
      • Resource Group
      • Server
  • Monitoring
    • Plugin
      • Data Source
      • Event
      • Log
      • Metric
      • Webhook
    • V1
      • Alert
      • Data Source
      • Escalation Policy
      • Event
      • Event Rule
      • Log
      • Maintenance Window
      • Metric
      • Note
      • Project Alert Config
      • Webhook
  • Notification
    • Plugin
      • Notification
      • Protocol
    • V1
      • Notification
      • Notification Usage
      • Project Channel
      • Protocol
      • Quota
      • User Channel
  • Plugin
    • V1
      • Plugin
      • Supervisor
  • Repository
    • V1
      • Plugin
      • Policy
      • Repository
      • Schema
  • Sample
    • V1
      • Helloworld
  • Secret
    • V1
      • Secret
      • Secret Group
  • Statistics
    • Plugin
      • Storage
    • V1
      • History
      • Resource
      • Schedule
      • Storage
Powered by GitBook
On this page
  • Event
  • create
  • get
  • list
  • stat
  • Message
  • CreateEventRequest
  • EventInfo
  • EventQuery
  • EventResource
  • EventStatQuery
  • EventsInfo
  • GetEventRequest

Was this helpful?

  1. Monitoring
  2. 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

POST /monitoring/v1/webhook/{webhook_id}/{access_key}/events

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.

Type
Message

Request

Response

get

GET /monitoring/v1/event/{event_id}

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

Type
Message

Request

Response

{
    "event_id": "event-4e16ba3bd384",
    "domain_id": "domain-58010aa2e451"
}
{
    "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"
}

list

GET /monitoring/v1/events

POST /monitoring/v1/events/search

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

Type
Message

Request

Response

{
    "query": {},
    "domain_id": "domain-58010aa2e451"
}
{
    "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
}

stat

POST /monitoring/v1/events/stat

Type
Message

Request

Response

Message

CreateEventRequest

Field
Type
Required
Description

webhook_id

string

✔

access_key

string

✔

data

✔

EventInfo

Field
Type
Description

event_id

string

event_key

string

event_type

string

title

string

description

string

severity

string

rule

string

resource

provider

string

account

string

image_url

string

raw_data

additional_info

alert_id

string

webhook_id

string

project_id

string

domain_id

string

created_at

string

occurred_at

string

EventQuery

Field
Type
Required
Description

query

✘

event_id

string

✘

event_key

string

✘

event_type

string

✘

severity

string

✘

resource_id

string

✘

provider

string

✘

account

string

✘

alert_id

string

✘

webhook_id

string

✘

project_id

string

✘

domain_id

string

✘

EventResource

Field
Type
Description

resource_id

string

resource_type

string

name

string

EventStatQuery

Field
Type
Required
Description

query

✔

domain_id

string

✔

EventsInfo

Field
Type
Description

results

total_count

GetEventRequest

Field
Type
Required
Description

event_id

string

✔

domain_id

string

✔

only

list of string

✘

PreviousEscalation PolicyNextEvent Rule

Last updated 2 years ago

Was this helpful?

google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Struct
google.protobuf.Struct
google.protobuf.Struct
spaceone.api.core.v1.Query
spaceone.api.core.v1.StatisticsQuery
int32
create
CreateEventRequest
get
GetEventRequest
EventInfo
list
EventQuery
EventsInfo
stat
EventStatQuery
CreateEventRequest
GetEventRequest
EventInfo
EventQuery
EventsInfo
EventStatQuery
EventResource
list of EventInfo