Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chaosframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
chaos-lnf-control
chaosframework
Commits
0b680960
"git@baltig.infn.it:infn-cloud/paas-ci.git" did not exist on "bb362dd637c7a214a43bfd68ec950d459daf7dcd"
Commit
0b680960
authored
2 years ago
by
Andrea Michelotti
Browse files
Options
Downloads
Patches
Plain Diff
added deleteLog
parent
4945b0db
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
chaos_metadata_service_client/api_proxy/logging/DeleteLog.cpp
+44
-0
44 additions, 0 deletions
...s_metadata_service_client/api_proxy/logging/DeleteLog.cpp
chaos_metadata_service_client/api_proxy/logging/DeleteLog.h
+63
-0
63 additions, 0 deletions
chaos_metadata_service_client/api_proxy/logging/DeleteLog.h
with
107 additions
and
0 deletions
chaos_metadata_service_client/api_proxy/logging/DeleteLog.cpp
0 → 100644
+
44
−
0
View file @
0b680960
/*
* Copyright 2012, 2017 INFN
*
* Licensed under the EUPL, Version 1.2 or – as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of the Licence at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in
* writing, software distributed under the Licence is
* distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied.
* See the Licence for the specific language governing
* permissions and limitations under the Licence.
*/
#include
<chaos_metadata_service_client/api_proxy/logging/DeleteLog.h>
#include
<chaos/common/message/MultiAddressMessageRequestFuture.h>
using
namespace
chaos
;
using
namespace
chaos
::
common
::
data
;
using
namespace
chaos
::
metadata_service_client
::
api_proxy
;
using
namespace
chaos
::
metadata_service_client
::
api_proxy
::
logging
;
API_PROXY_CD_DEFINITION
(
DeleteLog
,
MetadataServerLoggingDefinitionKeyRPC
::
ACTION_NODE_LOGGING_RPC_DOMAIN
,
"deleteLog"
)
ApiProxyResult
DeleteLog
::
execute
(
const
std
::
string
&
search_string
,
const
std
::
string
&
domain_list
,
const
uint64_t
start_ts
)
{
CDWUniquePtr
pack
(
new
CDataWrapper
());
pack
->
addStringValue
(
MetadataServerLoggingDefinitionKeyRPC
::
PARAM_NODE_LOGGING_LOG_SOURCE_IDENTIFIER
,
search_string
);
pack
->
addStringValue
(
MetadataServerLoggingDefinitionKeyRPC
::
PARAM_NODE_LOGGING_LOG_DOMAIN
,
domain_list
);
pack
->
addInt64Value
(
MetadataServerLoggingDefinitionKeyRPC
::
PARAM_NODE_LOGGING_LOG_TIMESTAMP
,
start_ts
);
return
callApi
(
pack
);
}
This diff is collapsed.
Click to expand it.
chaos_metadata_service_client/api_proxy/logging/DeleteLog.h
0 → 100644
+
63
−
0
View file @
0b680960
/*
* Copyright 2012, 2017 INFN
*
* Licensed under the EUPL, Version 1.2 or – as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of the Licence at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in
* writing, software distributed under the Licence is
* distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied.
* See the Licence for the specific language governing
* permissions and limitations under the Licence.
*/
#ifndef __CHAOSFramework__DeleteLog_h
#define __CHAOSFramework__DeleteLog_h
#include
<chaos_metadata_service_client/api_proxy/ApiProxy.h>
#include
<chaos_metadata_service_client/api_proxy/logging/logging_types.h>
#include
<chaos_metadata_service_client/api_proxy/logging/GetLogForSourceUID.h>
#include
<chaos/common/chaos_types.h>
namespace
chaos
{
namespace
metadata_service_client
{
namespace
api_proxy
{
namespace
logging
{
//! get log entries for a source
class
DeleteLog
:
public
chaos
::
metadata_service_client
::
api_proxy
::
ApiProxy
{
API_PROXY_CLASS
(
DeleteLog
)
protected:
API_PROXY_CD_DECLARATION
(
DeleteLog
)
public:
//! Perform an advanced search specifind also the range of ts
/*!
\param search_string is the string that is search with a 'like' procedure in all fields
\param domain is the lis tof domain to wich need to belog the result entry
\param start_ts if > 0 is used has start timestamp
\param end_ts if > 0 is used as end timestamp
\param last_sequence_id is the id of the last returned entries in the past query
\param page_length is the length of the returned element
*/
ApiProxyResult
execute
(
const
std
::
string
&
uid
,
const
std
::
string
&
dom
,
const
uint64_t
start_ts
);
};
}
}
}
}
#endif
/* __CHAOSFramework__DeleteLog_h */
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