question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors exporting alerts during `template export`

See original GitHub issue

seqcli template export -o Seq\test -s *** -a ***

If alert has any recent notifications

Error:

The command failed: Unsupported type: Seq.Api.Model.Shared.DateTimeRange. Use the JsonSerializer class to get the object's JSON representation. Path 'Activity.RecentOccurrences[0]'.

JSON:

{
  "Activity": {
    // ...
    "RecentOccurrences": [
      {
        "DetectedAt": "2022-07-25T11:13:06.9765797Z",
        "DetectedOverRange": {
          "Start": "2022-07-25T11:05:36.9765797Z",
          "End": "2022-07-25T11:12:36.9765797Z"
        },
        "NotificationLevel": "Debug",
        "Notifications": [
          {
            "HistoricalAppInstanceId": "appinstance-261"
          }
        ]
      }
      // ...
    ]
  }
}

If Slack app instance allows Message property override

image Error:

The command failed: Unsupported type: System.Collections.Generic.KeyValuePair`2[System.String,System.String]. Use the JsonSerializer class to get the object's JSON representation. Path 'NotificationChannels[0].NotificationAppSettingOverrides'.

JSON:

"NotificationChannels": [
  {
    "Id": "notificationchannel-ea922d068c29441ab58d6ea411d4d477",
    "NotificationMessage": "This is test alert notification message",
    "IncludeContributingEvents": true,
    "IncludedContributingEventLimit": 1,
    "NotificationAppInstanceId": "appinstance-261",
    "NotificationAppSettingOverrides": {
      "MessageTemplate": "This is test alert message"
    }
  }
],

Seq 2022.1.7929 Seqcli 2022.1.594 Slack Notifier App 1.0.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nblumhardtcommented, Oct 11, 2022

Thanks for checking it out; sounds like a different issue, I’ll take a look 👍

1reaction
nblumhardtcommented, Oct 10, 2022

Hi all! We’ve just merged a fix for this - if you’d like to try out the dev build you can find binaries at:

https://ci.appveyor.com/project/datalust/seqcli/branch/dev/job/1kvhn8j740gbsota/artifacts

Would be great to hear how you go 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when exporting OVF template
Hi guys, I have a need to backup vApp environments for archiving purposes. I had the solution to export the vApp as a...
Read more >
Resolve the "Export EXPORT_NAME cannot be updated ...
You get this error when one or more stacks are importing an exported output value from the stack that you want to update...
Read more >
How to get Xporter errors for exported issues
Solved: Hello, Is there a way to know what errors occured when an issue has been exported by Xporter? For example, if there...
Read more >
Cannot export ARM template for alerts · Issue #39632
Having entered new alerts they cannot be exported in an ARM template, which makes creating alerts in a template much trickier.
Read more >
Export template in Azure portal - Resource Manager
Use Azure portal to export an Azure Resource Manager template from resources in your subscription.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found