Coder Social home page Coder Social logo

Comments (4)

mihirsoni avatar mihirsoni commented on June 8, 2024 1

@shreyu86 entire monitor object is available in ctx. so you can extract id from there.

override val id: String = NO_ID,
override val version: Long = NO_VERSION,
override val name: String,
override val enabled: Boolean,
override val schedule: Schedule,
override val lastUpdateTime: Instant,
override val enabledTime: Instant?,
val inputs: List<Input>,

Closing this for now, feel free to open this in case you face any other issue.

from alerting.

mihirsoni avatar mihirsoni commented on June 8, 2024

@shreyu86 Thanks for the request.

Trying to understand more, so this is still possible by adding it as part of action message itself while creating the trigger and providing the monitor URL in action message.

Are you suggesting to have this as default message or always append to the action message automatically ?

In case of appending always could cause some issues. Imagine, someone wants to use display monitor using some different way or one is using custom webhook. In that case user might want to send JSON in the message v/s just a text.

from alerting.

shreyaskarnik avatar shreyaskarnik commented on June 8, 2024

@mihirsoni Thanks for reply, can you please elaborate on how I go about providing the monitor URL in the message, is it attached to ctx or I hard code it from the Alerts app like app/opendistro-alerting#/monitors/Z5YyE2oBvmugrp4G5caq

Trying to understand more, so this is still possible by adding it as part of action message itself while creating the trigger and providing the monitor URL in action message.

Alternatively, I was able to get around this by saving my search for the monitor (exact query as the monitor) and attaching that URL in the message to help the receiver go directly to Kibana to triage the issue. For example:

Monitor Free taco Monitor just entered alert status. Please investigate the issue.
- Trigger: Taco Parrot is Hungry
- Severity: 5
- Period start: 2019-04-25T18:32:14.670Z
- Period end: 2019-04-25T18:33:14.670Z
- Dashboard URL: <KIBANA_URL>/_plugin/kibana/goto/eb2831a2c822ff4db9e9f2fdf978a547

from alerting.

shreyaskarnik avatar shreyaskarnik commented on June 8, 2024

Great, thanks for the information @mihirsoni

from alerting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.