Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Assignment2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bad
Assignment2
Commits
ac5af842
Commit
ac5af842
authored
5 days ago
by
BigDude
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.au.dk/bad1/assignment2
parents
a4dc5f82
72c042f2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Controllers/LogController.cs
+1
-0
1 addition, 0 deletions
Controllers/LogController.cs
Models/LogEntry.cs
+4
-1
4 additions, 1 deletion
Models/LogEntry.cs
Models/LogInfo.cs
+1
-1
1 addition, 1 deletion
Models/LogInfo.cs
Models/LogProperties.cs
+1
-1
1 addition, 1 deletion
Models/LogProperties.cs
with
7 additions
and
3 deletions
Controllers/LogController.cs
+
1
−
0
View file @
ac5af842
...
...
@@ -16,6 +16,7 @@ namespace assignment2.Controllers
private
readonly
ILogService
_logsService
;
public
LogController
(
ILogService
logsService
)
=>
_logsService
=
logsService
;
//[Authorize(Roles = "Admin")]
[
HttpGet
]
public
async
Task
<
IActionResult
>
GetAsync
(
string
?
user
,
string
?
operation
,
DateTime
?
startDate
,
DateTime
?
endTime
)
{
...
...
This diff is collapsed.
Click to expand it.
Models/LogEntry.cs
+
4
−
1
View file @
ac5af842
using
MongoDB.Bson
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
assignment
1
.Models
namespace
assignment
2
.Models
{
[
BsonIgnoreExtraElements
]
public
class
LogEntry
...
...
@@ -11,6 +11,9 @@ namespace assignment1.Models
[
BsonElement
(
"Level"
)]
public
int
Level
{
get
;
set
;
}
[
BsonElement
(
"UtcTimeStamp"
)]
public
DateTime
UtcTimeStamp
{
get
;
set
;
}
[
BsonElement
(
"Properties"
)]
public
required
LogProperties
Properties
{
get
;
set
;
}
...
...
This diff is collapsed.
Click to expand it.
Models/LogInfo.cs
+
1
−
1
View file @
ac5af842
...
...
@@ -4,7 +4,7 @@ using System.Linq;
using
System.Threading.Tasks
;
using
MongoDB.Bson.Serialization.Attributes
;
namespace
assignment
1
.Models
namespace
assignment
2
.Models
{
public
class
LogInfo
{
...
...
This diff is collapsed.
Click to expand it.
Models/LogProperties.cs
+
1
−
1
View file @
ac5af842
using
MongoDB.Bson.Serialization.Attributes
;
namespace
assignment
1
.Models
namespace
assignment
2
.Models
{
[
BsonIgnoreExtraElements
]
public
class
LogProperties
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment